Computers-Programming in Qbasic (NCO- Cyber Olympiad Class 7): Questions 1 - 4 of 6

Get 1 year subscription: Access detailed explanations (illustrated with images and videos) to 416 questions. Access all new questions we will add tracking exam-pattern and syllabus changes. View Sample Explanation or View Features.

Rs. 300.00 or

Question number: 1

» Computers » Programming in Qbasic

Appeared in Year: 2011

MCQ▾

Question

You are given a result wanted from the computer. Select the line of code that will cause the computer to produce this result.

“Print the sum of two integer variables. ”

Choices

Choice (4) Response

a.

PRINT SUM (X,Y)

b.

PRINT Z=X+Y

c.

PRINT (X+Y)

d.

PRINT Z=X+Y

Question number: 2

» Computers » Programming in Qbasic

Appeared in Year: 2011

MCQ▾

Question

You are given a segment of code. Choose the answer that describes the result when this segment of code is executed.

LET S =0

FOR C =1 TO 10

LET S =S+C

NEXT C

PRINT S

Choices

Choice (4) Response

a.

An error message is displayed.

b.

The integers from 1 to 10 are printed.

c.

The letter S is printed.

d.

The sum of the integers from 1 to 10 is printed,

Question number: 3

» Computers » Programming in Qbasic

MCQ▾

Question

The following segment of code contains an error. Choose the answer that corrects the error.

FOR I =1 TO 3

READ N$

PRINT N$

NEXT N

DATA “TOM”, “DICK”, “HARRY”

Choices

Choice (4) Response

a.

FOR F# =1 TO 3

b.

NEXT I

c.

PRINT “N$”

d.

DATA TOM DICK HARRY

Question number: 4

» Computers » Programming in Qbasic

MCQ▾

Question

In this question you will be given a segment of code. Choose the answer that describes the result when this segment of code is executed.

LET C =0

DO WHILE C <=5

LET C =C+1

LOOP

PRINT C

Choices

Choice (4) Response

a.

1

b.

0

c.

6

d.

5

f Page
Sign In