WorksheetsGrade 11 & 12_ General Review 1
Total questions: 15
Worksheet time: 10mins
int Z = 5; this variable declared uses:
Arithmetic Operator
Rational Operator
Boolean Operator
Compound Operator
A -= 3; this is an example of
Arithmetic Operator
Rational Operator
Boolean Operator
Compound Operator
In an Arduino program, a missing _________ will not cause a compiler error.
curly bracket
comment
semicolon
variable declaration
In an Arduino program, the _______________function runs only once.
gets()
loop()
setup()
put()
Which of the following command only prints whatever is present inside the brackets?
Serial.begin(9600);
Serial.print();
Serial.println();
setup();
bool x = false; x is an example of a / an _________________ data type
float
float
character
boolean
The ON LED turns off when the Arduino board is powered up.
True
False
Seatbelt warning system is an example of an embedded system.
True
False
Which the following is correct:
INT y = 8;
Int y = 9;
int y = 2;
int y = 6.3;
Visual representation of the sequence of the process is:
Algorithm
flowchart
pseudocode
code
Consider the code below:
int a =10;
int c = 9;
A rational operator can compare the values of ‘a’ and ‘c’ to find the greater number between them.
True
False
Consider the code below:
int a = 80;
int b = 5;
c = a%b;
Serial.print(c);
What will the value of c be printed if the above code is written under the setup() function?
16
8
40
0
Logical OR operator is represented by && symbol.
True
False
Logical NOT operator is an example of boolean operator.
True
False
(A==7) assigns the value 7 to the variable A.
True
False
