-
question_answer1)
What will be the output of the following program?
\[\begin{array}{*{35}{l}} age\text{ }=\text{ }10 \\ DO \\ PRINT\text{ }age \\ age\text{ }=\text{ }age\text{ }+\text{ }1 \\ LOOP\text{ }WHILE\text{ }age\text{ }<10 \\ \end{array}\] |
A)
9 done
clear
B)
11 done
clear
C)
10 done
clear
D)
12 done
clear
View Solution play_arrow
-
question_answer2)
Which of the following is NOT a valid step value for a loop?
A)
2 done
clear
B)
-2 done
clear
C)
0.03 done
clear
D)
None of these done
clear
View Solution play_arrow
-
question_answer3)
Write the following expression in QBASIC.
\[Y=X+\frac{{{R}^{2}}}{C.B}+S.R-B\] |
A)
\[Y=X+{{R}^{\wedge }}2/(C*B)+S*R-B\] done
clear
B)
\[Y=X+{{R}^{2}}/(C*B)+S*R-B\] done
clear
C)
\[Y=X+{{R}^{2}}/C*B+S*R-B\] done
clear
D)
\[Y=X+R*2/C*B+S*R-B\] done
clear
View Solution play_arrow
-
question_answer4)
What would be the output of the following program?
A$ = MID$("Absolute Jelly Add" , 10, 5)
|
PRINT A$
|
A)
elly A done
clear
B)
Absolute done
clear
C)
Jelly done
clear
D)
Absolute done
clear
View Solution play_arrow
-
question_answer5)
In this mode, a QBASIC statement is executed as soon as you press the
key. It is the ___________.
A)
Program Mode done
clear
B)
Status Mode done
clear
C)
Intermediate Mode done
clear
D)
Immediate Mode done
clear
View Solution play_arrow
-
question_answer6)
What will be the output of the given QBASIC codes?
Code A |
Code B |
FOR I = 1 TO 5 STEP 2 |
FOR I =1 TO 5 STEP 1 |
PRINT I |
PRINT I |
NEXT I |
I=I+1 |
|
NEXT I |
A)
B)
C)
D)
View Solution play_arrow
-
question_answer7)
What is the CORRECT code to set the whole background to red and foreground color to yellow?
A)
B)
C)
D)
View Solution play_arrow
-
question_answer8)
What will be the output of the following QBASIC code?
\[\begin{array}{*{35}{l}} x\text{ }=\text{ }8 \\ IF\text{ (}x\text{ }=\text{ }5\text{) }THEN \\ ~~~~~PRINT\text{ }''You\text{ }selected\text{ }5'' \\ ELSEIF\text{ (}x\text{ }=\text{ 6) }THEN \\ ~~~~~PRINT\text{ }''You\text{ }selected\text{ }6'' \\ ELSEIF\text{ (}x\text{ }=\text{ 7) }THEN \\ ~~~~~PRINT\text{ }''You\text{ }selected\text{ }7'' \\ ELSE \\ ~~~~~PRINT\text{ }''You\text{ }made\text{ }an\text{ }invalid\text{ }choice'' \\ END\text{ }IF \\ \end{array}\] |
A)
You selected 5 done
clear
B)
You selected 6 done
clear
C)
You selected 7 done
clear
D)
You made an invalid choice done
clear
View Solution play_arrow
-
question_answer9)
Match the QBASIC operator names given in Column-I with their corresponding operators given in Column-II.
Column-I |
Column-II |
(a) Logical Operators |
(i) +, -, *, /, ^ |
(b) Relation Operators |
(ii) AND, OR, NOT |
(c) Arithmetic Operators |
(iii) =, <>, >, <, <=, >= |
A)
(a) - (i), (b) - (ii), (c) - (iii) done
clear
B)
(a) - (ii), (b) - (i), (c) - (iii) done
clear
C)
(a) - (ii), (b) - (iii), (c) - (i) done
clear
D)
(a) - (iii), (b) - (i), (c) - (ii) done
clear
View Solution play_arrow
-
question_answer10)
What is the output of the following QBASIC code?
\[\begin{array}{*{35}{l}}
NAME\${{=}^{\prime\prime}}ProjectScop{e}''\\PRINT\,\,LEN\left(NAME\$\right)\\\end{array}\].
|
A)
10 done
clear
B)
11 done
clear
C)
12 done
clear
D)
13 done
clear
View Solution play_arrow
-
question_answer11)
Which of the following commands is used to display the graphics on the screen?
A)
CANVAS done
clear
B)
RESOLUTION done
clear
C)
LOCATE done
clear
D)
SCREEN done
clear
View Solution play_arrow
-
question_answer12)
A GOTO statement __________.
A)
Instructs the computer to goto a specific statement associated with a label done
clear
B)
Can be used to skip some statements done
clear
C)
Can be used to repeat some statements done
clear
D)
All of these done
clear
View Solution play_arrow
-
question_answer13)
What will be the value of the variable 'a' after executing the statement, a = abs (-6)?
A)
-6 done
clear
B)
0 done
clear
C)
6 done
clear
D)
1 done
clear
View Solution play_arrow
-
question_answer14)
What would happen with the given lines of code?
\[\begin{array}{*{35}{l}} ~~~~~~~~~CLS \\ ~~~~~~~~~COLOR\text{ }14,\text{ }2 \\ \end{array}\] |
A)
Foreground color is set to yellow and background color is set to green. done
clear
B)
Foreground color is set to green and background color is set to yellow. done
clear
C)
Foreground color is set to green and background color is set to default. done
clear
D)
Foreground color is set to blue and background color is set to green. done
clear
View Solution play_arrow
-
question_answer15)
Which of the following commands can be used to put a dot on screen with specified coordinate values when a graphics screen mode is used?
A)
GOSUB done
clear
B)
PSET done
clear
C)
SCREEN done
clear
D)
LINE done
clear
View Solution play_arrow
-
question_answer16)
Select the CORRECT match.
A)
PSET (12, 4), 2 - Display a pixel at coordinates (12, 4) in dark green color done
clear
B)
Line (5, 10) - (100, 50), 15, B - Make a box with white outline border done
clear
C)
Circle (20, 25), 5 - Display a red circle with diameter 5 done
clear
D)
Color 14, 15 - Set the foreground color to yellow and background color to purple done
clear
View Solution play_arrow
-
question_answer17)
Which of the given line of codes will cause the computer to produce the following result? |
'If the value of a string variable is YES, then transfer the control to the line labelled ONE' |
A)
IF A - "YES" THEN GOSUB ONE done
clear
B)
IF A\[\$\]= "YES" THEN GOSUB ONE done
clear
C)
GOSUB ONE IF A\[\$\] = "YES" done
clear
D)
IF A = "YES" TRANSFER ONE done
clear
View Solution play_arrow
-
question_answer18)
Read the following program and identify the line number with an error.
A)
Line 1 done
clear
B)
Line 2 done
clear
C)
Line 3 done
clear
D)
Line 4 done
clear
View Solution play_arrow
-
question_answer19)
Match the QBASIC variable names given in Column-I with their variable types given in Column-II.
Column - I |
Column - II |
(a) vara% |
(i) String type |
(b) varb& |
(ii) Integer type |
(c) varc# |
(iii) Long type |
(d) vard$ |
(iv) Double type |
A)
(a) - (i), (b) - (iii), (c) - (iv), (d) - (ii) done
clear
B)
(a) - (i), (b) - (ii), (c) - (iv), (d) - (iii) done
clear
C)
(a) - (iii), (b) - (ii), (c) - (iv), (d) - (i) done
clear
D)
(a) - (ii), (b) - (iii), (c) - (iv), (d) - (i) done
clear
View Solution play_arrow
-
question_answer20)
Which of the following is the CORRECT command to make a box filled with yellow color in QBASIC?
A)
B)
C)
D)
View Solution play_arrow