Control Structures Online Exam Quiz
Control Structures GK Quiz. Question and Answers related to Control Structures. MCQ (Multiple Choice Questions with answers about Control Structures
Can the break statement be used to abort a program?
Options
A : Yes
B : Yes, but only if it is used within the global scope
C : No
D : Yes, but only for some Arduino Boards
How many bits of memory does the bool datatype occupy?
Options
A : 2
B : 4
C : 6
D : 8
How many bits of memory does the Short datatype take up?
Options
A : 17
B : 15
C : 16
D : 14
What datatype should one use to represent 2147483610?
Options
A : Int
B : Byte
C : Short
D : Long
Which one of the control structures is similar to the if-else statement?
Options
A : Switch-case
B : For loop
C : While loop
D : Continue