WorksheetsG6-Comp. Sci. Review Semester 2
Total questions: 42
Worksheet time: 1hrs 24mins
What is the extention of a QBASIC Program
.exe
.bas
.cpp
.py
The QBASIC Statement for accepting the values from the user.
LET
REM
INPUT
Which out of the following is a valid variable to hold the text in QBASIC.
LET
$S
S$
SS
Statement in QBASIC to clear the output screen
CLS
CLEAR
CLEAR SCREEN
CLRSCR
String Variable
Click$
Valid
invalid
String Variable
3Start$
Valid
invalid
A data value that does not change during the execution of a program is _____.
Variable
Constant
Character
The statement used to display the output on the screen is _______.
INPUT
LET
REM
In PRINT command, the message is closed in ______.
Double Quotes
Semicolons
Single Quotes
None of the above
What is the full form of QBASIC?
Quick Beginner All-Purpose Symbolic Instructed Code
Quick Beginner Purpose Symbolic Instruction Code
Quick Beginner All-Purpose Symbol Instruction Code
Quick Beginner All-Purpose Symbolic Instruction Code
Qbasic is a ----------------- programming language
high level
low level
assembly level
hard level
---------- means removing errors.
Inputting
Debugging
Bug
syntax
3. Print "HELLO WORLD" will print ?
HELLOWORLD
HLLOWORD
WORLD HELLO
HELLO WORLD
what will be the output:
PRINT "24 + 5 - 9"
24+5
20
24+5-9
What is the output for the following program?
num
Name$
35
David
35
"David"
Syntax Error
A command/statement used to give certain notes to your program and it will not be executed by the program.
REM
INPUT
LET
Which Function key is used to run a program in QBasic?
F2
F3
F5
F7
What is the name of the component shown on no. 5
Program area
Title bar
Status area
Scroll bar
What is the name of the component shown on no. 2
Menu bar
Program area
Status area
Scroll bar
What is the name of the component shown on no. 3
Menu bar
Program area
Program name
Scroll bar
What is the name of the component shown on no. 7
Menu bar
Program area
Program name
Status area
An area in QBasic where you can see Find option to search for the text in program area.
Menu area
Program area
Relaxing area
Status area
PRINT "6+56"
the code above will display?
62
6+56
Syntax error
none of the above
Alphanumeric variables always end with a -------.
Semi - colon (;)
Dollar sign ($)
Hash (#)
Variables always begin with -----------.
Number
Alphabet
Constant
A45 is a valid numeric variable.
True
False
The appropriate variable for "Understanding Information Technology" is
B$
B
None of the above
what will be the output:
PRINT "24 + 5 - 9"
24+5
20
24+5-9
What is the Output:
PRINT "9 - 9"
(a)
What is the output of the given code in QBASIC
10 5
5 10
10 15
15 10
Which out of the following is a valid variable to hold the text in QBASIC.
LET
$S
S$
SS
LET a = 5
IF a MOD 2 = 1 THEN
PRINT a + 1
ELSE
PRINT a - 1
END IF
6
4
5
3
'<' (less than) is a --------- Operator
Relational
Logical
Arithmetical
'AND' is a ---------- operator.
Relational
Arithmetical
Logical
A>=B means
A is greater than or equal to B
B is greater than or equal to A
A is less than or equal to B
Statement in QBASIC to clear the output screen
CLS
CLEAR
CLEAR SCREEN
CLRSCR
5. HOW TO WRITE an in QBasic?
a*n
a^n
a/n
n^a
6. What is the meaning of mod in QBasic??
to calculate the remainder value
to calculate submission value
both
none
F3 key is pressed to execute or run the program to get the result.
True
False
Suraj wants to add two numbers using QBASIC. Suggest him the operator needed for this purpose.
*
>=
%
+
1
2
3
Syntax Error
10
Yes
No
Syntax Error
