-
question_answer1)
What do you call the repetition of a set of statements?
A)
Condition done
clear
B)
Loop done
clear
C)
Execution done
clear
D)
Program done
clear
View Solution play_arrow
-
question_answer2)
Study the given commands.
What is their output?
A)
5 done
clear
B)
6 done
clear
C)
56 done
clear
D)
1 done
clear
View Solution play_arrow
-
question_answer3)
Which line of code produces the result of the statement, "Print the sum of two integer variables".
A)
PRINT Z = X + Y done
clear
B)
PRINT "Z = X + Y" done
clear
C)
PRINT (X + Y) done
clear
D)
PRINT SUM (X, Y) done
clear
View Solution play_arrow
-
question_answer4)
What does the given command do?
A)
The expression A$, B, C is printed. done
clear
B)
The variable Q receives the value of A$ + C. done
clear
C)
Two numerical values and two string values are printed. done
clear
D)
An error message is displayed, because 3 variables cannot be printed with one command. done
clear
View Solution play_arrow
-
question_answer5)
. . What is the process of joining two strings using '+' sign called?
A)
Execution done
clear
B)
Adding done
clear
C)
Concatenation done
clear
D)
Merging done
clear
View Solution play_arrow
-
question_answer6)
Which of the following symbol is used to replace REM statement?
A)
: done
clear
B)
; done
clear
C)
, done
clear
D)
- done
clear
View Solution play_arrow
-
question_answer7)
What are the statements between WHILE and WEND in a WHILE ...WEND loop called?
A)
Loop head done
clear
B)
Program done
clear
C)
Statement done
clear
D)
Loop body done
clear
View Solution play_arrow
-
question_answer8)
What is the result obtained when the given code is executed?
A)
The letter x is printed. done
clear
B)
The sum of 1 and 100 is obtained. done
clear
C)
The integers from 1 to 100 are obtained. done
clear
D)
An error message is displayed. done
clear
View Solution play_arrow
-
question_answer9)
What is the output of the given program?
A)
B)
C)
D)
View Solution play_arrow
-
question_answer10)
What is the result of the basic program given?
A)
The numbers from 1 to 20 are printed. done
clear
B)
The numbers and the squares of the numbers from 1 to 20 are printed. done
clear
C)
The sum of numbers from 1 to 20 are printed. done
clear
D)
An error message is displayed. done
clear
View Solution play_arrow
-
question_answer11)
Nihal wrote the following program in BASIC window. What is its output?
A)
Even numbers from 2 to 100 are printed. done
clear
B)
Odd numbers from 2 to 100 are printed. done
clear
C)
The numbers from 2 to 100 are printed. done
clear
D)
An error message is displayed. done
clear
View Solution play_arrow
-
question_answer12)
Identify the error in the given statement.
A)
STEP is not used in a FOR statement. done
clear
B)
After printing 20, it will increment to 25 but given range is 20 to1. done
clear
C)
The range should be from 1 to 100. done
clear
D)
There is no error in the statement. done
clear
View Solution play_arrow
-
question_answer13)
What is the result of the given code?
A)
Even numbers from 1 to 100 are displayed. done
clear
B)
Even numbers from 1 to 50 are displayed. done
clear
C)
Odd numbers from 1 to 100 are displayed. done
clear
D)
Odd numbers from 1 to 50 are displayed. done
clear
View Solution play_arrow
-
question_answer14)
What is the command to change the screen mode in QBASIC?
A)
Screen [screen mode number] done
clear
B)
[Screen number] done
clear
C)
[Screen mode number] done
clear
D)
Screen, [screen mode number] done
clear
View Solution play_arrow
-
question_answer15)
Write the command to set the foreground colour as screen display.
A)
COLOR [foreground color] done
clear
B)
Screen [foreground color] done
clear
C)
COLOR [screen mode number] done
clear
D)
Screen [screen mode number] done
clear
View Solution play_arrow
-
question_answer16)
Raghu wants his QBASIC window to be colorful. In order to change the whole background, what is the command he should try in QBASIC?
A)
COLOR 13, 15 done
clear
B)
COLOR 13, 15 CLS done
clear
C)
SCREEN 13 CLS done
clear
D)
SCREEN 13, 15 done
clear
View Solution play_arrow
-
question_answer17)
In Q-BASIC, which statement is used to plot a dot or pixel on the screen?
A)
PSET done
clear
B)
REM done
clear
C)
COLOR done
clear
D)
SCREEN done
clear
View Solution play_arrow
-
question_answer18)
What is the general form of the statement used for drawing a line from one coordinate to the other?
A)
LINE [X-coordinate, Y-coordinate] done
clear
B)
LINE [X-coordinate, Y-coordinate] - (X-coordinate, Y- coordinate), [COLOR] done
clear
C)
LINE [X-coordinate] - [Y-coordinate], [COLOR] done
clear
D)
LINE [X-coordinate], [Y-coordinate] done
clear
View Solution play_arrow
-
question_answer19)
What is the result of the given program?
A)
It will plot a pixel on screen at (5, 50) in black color. done
clear
B)
It will plot a line on screen at (5, 50) in black color. done
clear
C)
It will plot a box on screen at (5, 50) in black color. done
clear
D)
It will plot a circle on screen at (5, 50) in black color. done
clear
View Solution play_arrow
-
question_answer20)
What is the radius of the circle obtained by the given command?
A)
250 done
clear
B)
100 done
clear
C)
25 done
clear
D)
10 done
clear
View Solution play_arrow
-
question_answer21)
How many screen modes are available in QBASIC?
A)
13 done
clear
B)
14 done
clear
C)
5 done
clear
D)
10 done
clear
View Solution play_arrow
-
question_answer22)
What command will produce sound in QBASIC?
A)
BEEP done
clear
B)
SOUND done
clear
C)
PLAY done
clear
D)
All of these done
clear
View Solution play_arrow
-
question_answer23)
What is the range of the pitch and the duration to produce sound?
A)
0 to 25 and 0 to 255 done
clear
B)
37 to 32767 and 0 to 65535 done
clear
C)
1 to 255 and 1 to 65535 done
clear
D)
45 to 47325 and 32 to 256 done
clear
View Solution play_arrow
-
question_answer24)
What is the frequency of the beep produced by the given statement?
A)
2500 Hz done
clear
B)
2000 Hz done
clear
C)
15 Hz done
clear
D)
10 Hz done
clear
View Solution play_arrow
-
question_answer25)
Which of the following is the correct format of the PLAY command?
A)
PLAY done
clear
B)
PLAY [pitch], [duration] done
clear
C)
PLAY "string" done
clear
D)
PLAY "sound" done
clear
View Solution play_arrow
-
question_answer26)
Which of the following is used to program music?
A)
SOUND done
clear
B)
PLAY done
clear
C)
BEEP done
clear
D)
STRING done
clear
View Solution play_arrow
-
question_answer27)
Which of the following statement is used to plot a dot on the screen?
A)
PIXEL done
clear
B)
PSET done
clear
C)
DOT done
clear
D)
SCREEN done
clear
View Solution play_arrow
-
question_answer28)
What is the output of the following QBASIC code?
A)
The letter S is printed. done
clear
B)
The sum of integers from 1 to 20 is printed. done
clear
C)
The integers from 1 to 20 are printed. done
clear
D)
An error message is displayed. done
clear
View Solution play_arrow
-
question_answer29)
What is the output obtained for the given segment of code?
A)
One string value is printed. done
clear
B)
Seven integer values are printed. done
clear
C)
Seven string values are printed. done
clear
D)
One integer values is printed. done
clear
View Solution play_arrow
-
question_answer30)
What does the given command do?
A)
It prints the first three characters SCR. done
clear
B)
It prints the third character R. done
clear
C)
It prints last three characters EEN. done
clear
D)
An error message is displayed. done
clear
View Solution play_arrow