Page 77 - Digicode_AI_class_7
P. 77
TeCh Ready
A. Tick ( ) the correct option.
1. Which operator is used to assign a value to a variable?
(i) Arithmetic operator (ii) Assignment operator
(iii) Relational operator (iv) Comparison operator
2. What is a bug in programming?
(i) A fault in a program that causes it to run correctly.
(ii) A fault in a program that can predict output.
(iii) A fault in a program that generates incorrect output.
(iv) All of these
3. Which of the following statement describes the collection?
(i) Collections group multiple elements into a common set
(ii) It increases the performance of the program
(iii) Consume less memory
(iv) All of these
4. Which loop triggers the inner loop, when the outer loop condition is ‘true’?
(i) While (ii) For
(iii) Nested (iv) If
5. Which of the following is required to declare a variable?
(i) Name of the variable (ii) Data type
(iii) Both (i) and (ii) (iv) None of these
B. Fill in the blanks using the words given below.
exit event handler data bug undefined
1. A variable is declared but is not initialized has an value.
2. Every value needs to be assigned to a specific type.
3. is used to describe any unexpected problem.
4. An criteria is a condition which must be met before completing a specific task.
5. is a block of code which get executed when the event occurs and it is associated
with the event.
More on MakeCode Arcade 75

