wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

nestedif _ And _ Or

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Any statements inside an IF clause (section) can be executed multiple times.

a)

FALSE

b)

TRUE

2.

It is possible to execute both the (block of) statements under if and the else clauses at the same time.

a)

Yes

b)

No

3.

What is the output?

a)

True

b)

False

c)

condition1

d)

condition2

4.

elif can be considered to be abbreviation of

a)

nested if

b)

if..else

c)

else if

d)

if..elif

5.

What will be the output of above program

a)

OLDDY

b)

NEWDY

c)

Error

d)

None

6.

To ensure that both conditions are true

a)

Or

b)

And

c)

if

d)

else

7.

To ensure that one or both of the two conditions are true

a)

Or

b)

And

c)

if

d)

else

8.

Choose the correct command to start the analog communication

a)

Serial.Begin(9600)

b)

Serial.begin(9600)

c)

serial.Begin(9600)

d)

serialBegin(9600)

9.

How to read from a button

a)

val=serialRead(A0)

b)

val=analogRead(A0)

c)

val=digitalRead(A0)

10.

What is the output?

a)

NUMBER is bigger than 3

b)

nymber is bigger than 3

c)

NUMBER is less than 3

d)

nymber is less than 3