wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Programming knowledge contest ( 1st level )

Total questions: 20

Worksheet time: 20mins

Name
Class
Date
1.

Which of the following statements assigns the value 100 to the variable x in Python:

a)

x << 100

b)

x = 100

c)

x := 100

d)

x ← 100

2.

Which of the following are valid Python variable names:

a)

route66

b)

4square

c)

return

d)

home_address

e)

Age

3.

The type of the variable here is --------

char letter = 'a';

a)

Integer

b)

Float

c)

Character

d)

Boolean

4.

The type of the variable here is --------

bool state = true;

a)

Integer

b)

Float

c)

Character

d)

Boolean

5.

How would you define the variable y=5.3 in Arduino coding?

a)

int y=5.3;

b)

char y=5.3;

c)

float y=5.3;

d)

bool y=5.3;

6.

Which of the following is correct to write your name as a comment in Arduino coding?

a)

/ Myname

b)

//Myname

c)

/*Myname

d)

<Myname>

7.

For the following code, which statement (s) will be executed? (Multiple choice)


int x=3;

int y=4;

if(x>y)

{ statement A;}

else {Statement B;}

Statement C;

a)

A

b)

B

c)

C

8.

for the following code, What is the right output?


for(int i=1;i<3;i++)

{Serial.begin(9600);

Serial.print("Hello");

}

a)

Hello

b)

Hello

Hello

c)

HelloHello

d)

Hello Hello

9.

Physical parts of a computer...such as the keyboard and monitor.

a)

software

b)

hardware

10.

What does RAM stand for?

a)

Random Accurate Maps

b)

Really Awesome Memory

c)

Read Only Memory

d)

Random Access Memory

11.

All memory is measured in what?

a)

Meters (m)

b)

Giga Bytes (GB)

c)

Volume (v)

d)

Inches (in)

12.

Which of the following is an Input device?

a)

Printer

b)

Monitor

c)

Speakers

d)

Keyboard

13.

hat does a computer, phone, or tablet HAVE to have for it to run.

a)

Operating System

b)

Available System

c)

Operating Table

d)

Sound System

14.

How much is 1024 bytes?

a)

gigabyte

b)

kilobyte

c)

megabyte

15.

What does the term "bug" mean for technology?

a)

problem

b)

an insect

c)

not enough memory

16.

a device having a designed resistance to the passage of an electric current.

a)

LED light

b)

Resistor

c)

USB cord

d)

Raspbian

17.

A letter or symbol to which a some value can be assigned.

a)

Print

b)

Output

c)

Variable

d)

Bug

18.

What do you call this electronic part?

a)

Arduino Duo

b)

Arduino Uno

c)

Are do we know

d)

Breadboard

19.

Identify the electronic component shown.

a)

Light emotion diode

b)

Liquid emitting display

c)

Light emotion display

d)

Light emitting diode

20.

Python is an example of a....

a)

Text-based programming language

b)

Object orientated programming language

c)

language written in java script

d)

Visual-based programming language