wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Session_3 Quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

How many errors are present in the code given below?

الكود ده فيه ايرورز اي عددهم؟

a)

1

b)

2

c)

3

d)

0

2.

How many errors are present in the code given below?

الكود ده فيه ايرورز اي عددهم؟

a)

1

b)

2

c)

3

d)

0

3.

What is the operating frequency of the Arduino UNO Board?

اي هي سرعة الاردوينو؟

a)

20 MHz

b)

6 MHz

c)

10 MHz

d)

16 Mhz

4.

Which one of the control structures is similar to the if-else statement?

اي اللي شبه ال if-else?

a)

Switch-case

b)

For loop

c)

While loop

d)

Continue

5.

What signal is generated when a push-button connected in a Pull-Down configuration is pressed?

اي الاشاره اللي هتطلع لما اوصل سويتش بطريقه pull down?

a)

LOW (0)

b)

HIGH (1)

6.

What is the syntax of a basic if statement in programming?

اي الطريقه الصح لكتابه ال if-statement?

a)

if (condition)

{ code to execute }

b)

if condition

{ code to execute

c)

if condition code to execute

7.

What is the purpose of a break statement in a switch statement?

يستخدم ال break ف اي؟

a)

To repeat a block of code

b)

To skip a block of code

c)

To exit the switch statement

8.

What is the value of “val” in the following program if the pin 12 is given 5V 3 times?

لو دخلت اشاره 5 فولت تلات مرات على بن 12 يعني دخلت 1 تلات مرات

اي القيمه الاخيره للمتغير val?

a)

113

b)

3

c)

2

9.

Is there a difference between the = and the == operators?

فيه فرق بين الاتنين دول ولا لا

= و ==

؟

a)

yes

b)

No

10.

How many errors are present in the code given below?

الكود ده فيه ايرورز اي عددهم؟

a)

1

b)

2

c)

3

d)

0