[go: up one dir, main page]

0% found this document useful (0 votes)
59 views4 pages

QBasic Assignment 1 and 2 2022

The document outlines the assignments for the Diploma in Information Technology, level 5, specifically focusing on QBasic Programming for Semester 2 of 2022. It includes details on due dates, assignment structure, and specific questions covering programming concepts, language types, error types, and practical coding tasks. The assignments are designed to assess students' understanding of QBasic programming and related computational concepts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views4 pages

QBasic Assignment 1 and 2 2022

The document outlines the assignments for the Diploma in Information Technology, level 5, specifically focusing on QBasic Programming for Semester 2 of 2022. It includes details on due dates, assignment structure, and specific questions covering programming concepts, language types, error types, and practical coding tasks. The assignments are designed to assess students' understanding of QBasic programming and related computational concepts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Monitronic Success College

SETTING GLOBAL STANDARDS

ASSIGNMENTS 2022 SEMESTER 2

Diploma in Information Technology, level 5.

QBasic Programming

Due dates
Assignment 1 25 August 2022 Semester 2
Assignment 2 22 September 2022 Semester 2

Lecturer Ms Cynthia Mwashita

Examination Officer Ms Tresia Ekandjo 061232652 examonitroniccollege@gmail.com

Page 1 of 4
Assignment 1 [100 marks]
Question 1 [30 marks]
a. State and explain the two types of languages in computers. [8 marks]
b. Explain what a source code and object code is and differentiate them. [10 marks]
c. Demonstrate the differences between syntax errors and logical errors. [5 marks]
d. State advantages of using QBasic. [5 marks]
e. List 2 different versions Basic besides QBasic. [2 marks]

Question 2 [25 marks]


a. Write a code that enters your name and prints it. [5 marks]
b. Produce a short meaningful program to find the area of rectangle using QBasic
programming. [10 marks]
c. List and explain steps involved in programming [10 marks]

Question 3 [15 marks]


a. Identify 3 types of language processors and describe them. [6 marks]
b. Describe the characteristics of a binary system. [4marks]
c. Describe the components of the CPU with their functions. [5 marks]

Question 4 [30 marks]


Showing calculations, answer the following questions:
a. Convert the following numbers to base 10
 101110
 1100
 111000 [6 marks]
b. Convert the following numbers to base 2
 80
 15
 167 [6 marks]
c. Convert the following numbers to base 10
 ABC
 C98
 DCA [6 marks]
Page 2 of 4
d. Convert the following numbers from base 8 to base 2
 701
 532
 452 [12 marks]

End of Assignment 1

QBASIC- Assignment 2 [100 Marks]


Answer All question in both sections
Section A [50 Marks]
1. Identify and describe any 4 rules for defining variables. Give an example for each rule.
[8]
2. Explain the purpose of comments in Qbasic. Illustrate, with example, 2 ways of putting
comments in a Qbasic program. [6]
3. Demonstrate with examples how the following commands are used in Qbasic.
a. DIM [3]
b. PRINT [3]
c. INPUT [4]

4. Distinguish between the DO WHILE and DO UNTIL loops, giving examples. [10]
5. Demonstrate the use of the following decision-making structures:
a. IF-THEN-ELSE structure [5]
b. CASE structure [5]
6. Explain the three main types of errors found in Qbasic programming. [6]

Page 3 of 4
Section B Practical Questions [40 Marks]
[NB: please provide printouts of your programs for EACH question.]

9. Write a program which multiplies 2 float values and displays the result. The program
should also calculate the average and displays the result. [25]

Algorithm, Pseudocode and Flowchart [25]


10. Given a program which computes the sum and average of three integers, complete the
following:
a. Algorithm for the given program
b. Pseudocode for the given program
c. Draw a well labelled flowchart for the given program.

Page 4 of 4

You might also like