MCQsFoundry.com brings to you 500+ 10th Standard Computer Science Mcqs which are new and latest. These Mcqs are never published on internet so far. For full information about all PPSC / FPSC / CSS / PMS latest jobs visit theiteducation.com
CHAPTER NO : 3
Control Structure
Encircle the most appropriate answer among the following option
1 How many types of control statements?
(a) 2
(b) 3
(c) 4
(d) 5
2 Which of the following control structure is used for making decision?
(a) Sequence
(b) Selection
(c) Loop
(d) None
3 Which of the following is used to control the flow of execution of a program?
(a) Control structure
(b) Program
(c) Module
(d) All
4 Control structures
(a) Loop
(b) Selection
(c) Sequence
(d) All
5 By using GOTO statement and loops, we can make the computer to perform tasks
(a) Repeatedly
(b) Quickly
(c) Efficiently
(d) All
6 Which loops makes by WHILE…..WEND?
(a) Conditional loop
(b) Controlled
(c) Counter Loop
(d) None
7 When we are not sure about the number of iteration we use
(a) GOTO
(b) IF…. THEN
(c) IF… THEN. ELSE
(d) WHILE…WEND
8 Which is the BASIC command to make decision
(a) READ
(b) GOTO
(C) IF
(d) Loop In
9 BASIC the loop FOR I = 2 to 20 step 4 will be executed for
(a) 6 times
(b) 4 times
(c) 5 times
(d) It is unending loop\
10 Which of the following is unconditional control transfer statement?
(a) FOR
(b) GOTO
(c) IF
(d) WHILE
11 Which one is a multiple branching statement?
(a) IF….. ELSE
(b) GOTO
(c) ON….. GOTO
(d) ON ERROR GOTO
12 Loop inside loop is called
(a) FOR… NEXT Loop
(b) WHILE..WEND Loop
(c) Nested Loop
(d) Loop
13 Go to loop break through the key
(a) CTRL +C
(b) CTRL + P
(c) CTRL + B
(d) CTRL + V
14 If nested loops have the same end point.
(a) A single NEXT statement for all loops
(b) No NEXT statement is needed
(c) All loops must have their own next statement
(d) Nested loop does not use
15 IF….. THEN are which kind of commands in BASIC
(a) Arithmetic
(b) Decision
(c) Input
(d) Process
16 Which of the following BASIC statement is used to transfer the control to the specified line number of program if any error occurs during the execution of program?
(a) ON….. GOTO
(b) ON ERROR GOTO
(c) GOTO
(d) None
17 Which among the following is not a logical operator?
(a) AND
(b) OR
(C) NEITHER
(d) NOT
18 Types of transfer program are
(a) 2
(b) 4
(c) 6
(d) 8
19 Statement is uses to transfer the control of program without any condition is called
(a) GOTO
(b) IF….THEN
(C) FOR…NEXT
(d) WHILE.WEND
20 In Which of the following control structure instructions are executed according to the increasing order of their line numbers?
(a) Loop
(b) Selection
(c) Sequence
(d) All
21 The value after the STEP parameter in the FOR….NEXT statement may be
(a) Positive
(b) Negative
(c) Both a & b
(d) None
22 Which among the following is the last statement in BASIC program?
(a) QUIT
(b) SYSTEM
(c) END
(d) BYE
23 Which of the following cannot be used to exit from an error handling routine?
(a) `RESUME
(b) RESUME NEXT
(C) END
(d) STOP
24 There are three logical operators
(a) Yes or Not
(b) And or not
(c) Now or and
(d) None
25 Which of the following causes a move of the control from one part of the program to the other without any condition?
(a) Conditional transfer of control
(b) Un conditional transfer of control
(c) Mix transfer of control
(d) Both a & b
26 Which of the following BASIC statement contains one condition and two branches?
(a) IF…..THEN
(b) IF.. THEN..ELSE
(C) GOTO
(d) None
27 Which of the following BASIC statement is a conditional loop statement?
(a) FOR….NEXT
(b) ON….GOTO
(C) GOTO
(d) WHILE… WEND
28 Which of the following statement is avoided in the programming?
(a) GOTO
(b) ON…. GOTO
(C) ON ERROR GOTO
(d) IF… THEN
29 How many maximum transfer points can be specified with ON… GOTO statement?
(a) 240
(b) 245 II
(c) 250 S
(d) 255
30 Which of the following statement is used for error trapping purpose in GW-BASIC?
(a) GOTO statement
(b) FOR….NEXT
(C) WHILE…. WEND
(d) ON ERROR GOTO
31 How many statements can be placed between FOR and NEXT statement in BASIC?
(a) None
(b) One
(c) Two
(d) As many as required
32 Which of the following word specifies the end of WHILE loop?
(a) WEND
(b) NEXT
(c) RETURN
(d) END
33 Which of the following BASIC loop statement is used to execute a set of statements for a specified number of times?
(a) FOR….NEXT
(b) ON….GOTO
(C) GOTO
(d) WHILE… WEND
34 To specify two different alternatives with if statement the key word is used
(a) WHILE
(b) WEND
(c) IF
(d) ELSE
35 The ERR and ERL are words each other
(a) Opposite
(b) Same
(c) Zero
(d) Cancelled
36 In GW-BASIC every error is assigned
(a) Error Code
(b) Name
(c) Syntax
(d) None
37 Which of the following is a special variable used assign an error code on occurrence of an error in BASIC?
(a) ERL
(b) ERC
(C) ERR
(d) REN
38 Which of the following is a special variable used to assign the error line number where an error occurs?
(a) ERL
(b) ERC
(C) ERR
(d) REN
39 In BASIC statement FOR A=1 to 20, A is known as
(a) Subscript
(b) Pointer
(c) Counter
(d) Variable
40 In BASIC , if a loop A is lies entirely within loop B, loops A and B are called
(a) Inner loop
(b) Outer loop
(c) Nested loop
(d) None
41 Which of the following resumes the execution at the specified line number?
(a) RESUME
(b) RESUME NEXT
(c) Resume line no
(d) STOP
42 How many types of loop statements in BASIC?
(a) 2
(b) 3
(c) 4
(d) 5 FOR….
43 NEXT is used to implement
(a) Iteration
(b) Selection
(c) Sequence
(d) All
44 Which of the following keyword is not related to ON ERROR GOTO statement?
(a) ERR
(b) ERL –
(C) STOP
(d) RESUME
45 Which of the following is an expression that evaluates to true or false?
(a) Loop
(b) Selection
(c) Sequence
(d) Condition
46 Which of the following is used to represent the true condition?
(a) 0
(b) 1
(c) 2
(d) 3
47 GW-BASIC, each possible error has been assigned
(a) A unique code
(b) Two codes
(c) Various codes
(d) Both ‘a’ and ‘b’
48 Reserved words are
(a) ERR
(b) ERL
(C) ERP
(d) Both ‘a’ and ‘b’
49 The while loop keeps repeating an action until an associated condition becomes
(a) True
(b) False
(c) Error free
(d) Both ‘b’ and ‘c’
50 Which of the following can not be used to exit from an error handling routine
(a) RESUME
(b) RESUME NEXT
(c) END
(d) STOP