wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Junior Quiz - Tuệ Anh

Total questions: 108

Worksheet time: 1hrs 28mins

Name
Class
Date
1.

A keyboard.

Identify if the device is an Input, Process or Output device.

a)

Input

b)

Process

c)

Output

d)

Both Input & Output

2.

A microphone.

Identify if the device is an Input, Process or Output device.

a)

Input

b)

Process

c)

Output

d)

Both Input & Output

3.

A monitor.

Identify if the following device is an Input, Process or Output device.

a)

Input

b)

Process

c)

Output

d)

Both Input & Output

4.

A mouse.

Identify if the device is an Input, Process or Output device.

a)

Input

b)

Process

c)

Output

d)

Both Input & Output

5.

A printer.

Identify if the device is an Input, Process or Output device.

a)

Input

b)

Process

c)

Output

d)

Both Input & Output

6.

A scanner.

Identify if the device is an Input, Process or Output device.

a)

Input

b)

Process

c)

Output

d)

Both Input & Output

7.

What is this?

a)

Mouse

b)

Keyboard

c)

CPU

d)

Monitor

8.

What function does Ctrl+C perform?

a)

Copy

b)

Save

c)

Undo

d)

Paste

9.

What function does Ctrl+V perform?

a)

Copy

b)

Save

c)

Undo

d)

Paste

10.

The _________________ is a worldwide collection of computer networks that connects millions of businesses, government agencies, educational institutions, and individuals.

a)

web

b)

network

c)

internet

d)

browser

11.

A ________________ is an electronic device, operating under the control of instructions stored in its own memory.

a)

Server

b)

Laptop

c)

Computer

d)

Tablet

12.
Which axis runs horizontally?
a)
x
b)
y
13.
How do you write an ordered pair?
a)
(X,X)
b)
(Y,X)
c)
(X,Y)
d)
(Y,Y)
14.
In the ordered pair (4,9), which number is the y-coordinate?
a)
4
b)
9
c)
neither
d)
both
15.
Where is point E located?
a)
( 2, 0 )
b)
( 2 , 2 )
c)
( 0 , 2 )
d)
( 0 , 0 )
16.
What is the ordered pair?
a)
(8, 2)
b)
(2,7)
c)
(2,8)
d)
(8,3)
17.
What is at (1,2)?
a)
the moon
b)
the sun
c)
a blue planet
d)
a robot
18.

What is an algorithm?

a)

Patterns and trends used to solve a problem

b)

A set of step-by-step instructions to resolve a problem

c)

A programming language

19.

When can an algorithm be used?

a)

Only with computers

b)

For programming

c)

To design a solution to any problem

20.

What is decomposition?

a)

Searches the computer's memory for data

b)

Repeats a program

c)

Getting small part of a problem and adding them together

d)

Breaking down a complex problem

21.

If it is AFTER 7am, what do you need to do?

a)

Take the bus

b)

Take the subway

c)

Check the time

d)

Leave home

22.

Match the puzzle to the blocks

a)
b)
c)
23.
What do we call an error in a program that prevents the program from running as expected? 
a)
Bug
b)
Debugging
c)
Loop
d)
Programming
24.

The action of doing something over and over again.

a)

Looping

b)

Bugging

c)

Programming

25.

What does this code do?

a)

Moves forward, turns, moves forward

b)

Moves forward 2 times, turns left, moves forward 2 more times

c)

Moves forward 4 times and turns left

d)

Moves and turns

26.

What does this code do?

a)

Moves forward 1 time

b)

Moves forward forever

c)

Moves forward 5 times

d)

Moves left

27.

What shape does this code make?

a)

Rectangle

b)

Triangle

c)

Square

d)

Circle

28.

Which is the correct code for this puzzle?

a)
b)
29.

Which block would you use to replace the "?" in the code?

(click the picture to make it bigger)

a)
b)
c)
d)
30.

What in the name of the variable in this Python code?

a)

name

b)

input

c)

print

d)

("What is your name")

31.

Why is it important that was use comments in our code?

a)

They help the program run smoothly

b)

So that when we come back to the code we can understand what it is doing

c)

To help other people understand what is going on in our code

d)

To add more colours into our code

32.
What function would I use to display text?
a)
sum
b)
import
c)
print
d)
display
33.
What does int() represent?
a)
internet
b)
input
c)
intel
d)
integer
34.
What is an integer?
a)
half a number
b)
a fraction
c)
decimal number
d)
whole number
35.
Choose what * performs.
a)
multiplication
b)
addition
c)
division
d)
subtraction
36.
Why do we use variables in programming?
a)
edit data
b)
store data
c)
integer
d)
to look good
37.
What three things make up an if statement?
a)
if, egg, else
b)
if, elif, else
c)
if, elif, egg
d)
if, excited, scream
38.
What are these () called in programming?
a)
brackets
b)
quotation marks
c)
half circles
d)
parenthesis
39.
What is wrong with this code?

print"What football team do you support?"
a)
no quotation marks
b)
no parentheses
c)
no commas
d)
no capital letters
40.
What does “input()” represent in this code?

colour = input(“Enter a colour”)
a)
prompts the user to enter an input
b)
it gives the user a colour
c)
it turns the text that colour
41.

What does WWW stand for?

a)

World Wide Web

b)

World Weather Web

c)

Web Web Web

d)

Wide World Web

42.

What information should you share on the Internet?

a)

Your school address

b)

Your full name

c)

Your phone number

d)

Your favourite color

43.

What are they?

a)

URL

b)

Web browser

c)

Internet

d)

Web address

44.
How much does it cost to have your lawn mowed for 2 hours?
a)
$16
b)
$17
c)
$18
d)
$19
45.

Based on the graph, how many more students are in the science club than the book club?

a)

20

b)

16

c)

46

d)

18

46.
How many total people took the survey?
a)
50
b)
150
c)
100
d)
200
47.
Find the sequence 10, 20, 30, 40.........
a)
Multiply by 10
b)
Add 10  
c)
Multiply by 2
48.
Find the sequence;  2, 4, 6, 8,...........
a)
add 2
b)
multiply by 2
49.

What is the total time?

a)

24 seconds

b)

24 hours

c)

24 minutes

d)

$0.92

50.

Who should know your passwords?

a)

Only you!

b)

Your best friends

c)

Anyone

51.

What is Phishing?

a)

Fishing while talking on the phone.

b)

Fake emails or websites that look like real emails and websites and try to steal your data.

52.

When do you need to use AntiVirus software?

a)

When you first get your computer.

b)

All the time, on your laptop only -and make sure it is updated!

c)

All the time, on ALL digital devices -and make sure it is updated!

d)

As soon as you start to feel sick.

53.

Which of these is NOT a good password?

a)

#LooneyToons23

b)

Ilovecats!95

c)

password

d)

#Iasw,aA!

54.

What is Spam?

a)

Canned meat.

b)

Unsolicited emails sent to many email addresses that try to get you buy something or share private information.

c)

A computer virus that will hack your account.

55.
A data type consisting of numbers, letters and symbols.
a)
String
b)
Integer
c)
Float
d)
Boolean
56.
What will be the output?
name = 'Dave'
print (name)
a)
Dave
b)
'Dave'
c)
name
d)
(name)
57.
What does the equal sign mean in this code?

team = input(“Enter a team”)
a)
variable
b)
equal to
c)
greater than
d)
interger
58.
What is wrong with this code?

if answer == (“Man United”)
a)
no quotation marks
b)
no parentheses
c)
no capital letters
d)
No colon
59.
What does “input()” represent in this code?

colour = input(“Enter a colour”)
a)
prompts the user to enter an input
b)
it gives the user a colour
c)
it turns the text that colour
60.
What will the output be from the following code?
print("Hello world!\nHello world!")
a)
Hello world! Hello world!
b)
Hello world!
Hello world!
c)
SyntaxError
d)
Hello world!
61.
What does the term 'debug' mean?
a)
Identify errors and fix them.
b)
Making a calculation
c)
A set of instructions
d)
Looking at code
62.

What syntax can you use to insert a line break between strings so that they appear over new lines?

a)

/

b)

\n

c)

\l

d)

n

63.
What will the output be from the following code?
print("Hello world!" * 2)
a)
TypeError
b)
Hello world world!
c)
Hello world!Hello world!
d)
Hello world! * 2
64.

We can use the block (a)   to make something repeat during all the time.


65.

Coding can be used to

a)

Program robots

b)

create websites, games & apps

c)

tell computers what to do

d)

all of these

66.
What will the output be from the following code?
print("Hello world!\nHello world!")
a)
Hello world! Hello world!
b)
Hello world!
Hello world!
c)
SyntaxError
d)
Hello world!
67.
What is syntax?
a)
Syntax is the word used to describe an error
b)
Syntax is the rules of the programming language
c)
It is used to read information
d)
It is used to output information 
68.
What will the output be from the following code?
print(Hello world!)
a)
Hello world!
b)
SyntaxError
c)
Hello world
d)
print(Hello world!)
69.

What is the correct code to ask for a user’s favourite animal and store it in memory?

a)

animal = input(“What is your favourite animal?”)

b)

input = animal(“What is your favourite animal?”)

c)

animal(“What is your favourite animal?”)

d)

input(What is your favourite animal?)

70.

What would be the output of the following code? - print(3 + 5)

a)

No output

b)

8

c)

3+5

d)

Error message

71.

Which of these statements about while loops is true?

a)

While loops always execute the same number of times

b)

While loops always execute at least once

c)

While loops must have a condition

d)

While loops must not contain an “if” statement

72.

12. In Python, "Seventeen" is an example of what data type?

a)

string

b)

integer

c)

boolean

d)

float

73.

12. In Python, 17 is an example of what data type?

a)

string

b)

integer

c)

boolean

d)

float

74.

12. In Python, 1.5 is an example of what data type?

a)

string

b)

integer

c)

boolean

d)

float

75.

12. In Python, True or False is an example of what data type?

a)

string

b)

integer

c)

boolean

d)

float

76.
What symbol do you use to make a comment in Python?
a)
@
b)
¬
c)
;
d)
#
77.
What will the output be from the following code?
print(3*4+5)
a)
27
b)
17
c)
12
d)
SyntaxError
78.

Which one will display when this code is run?

a)
b)
c)
d)
79.

What result will display in the shell if 15 and 20 is entered by the user?

a)

"num1 + num2"

b)

1520

c)

35

80.

Which of the following is the correct extension of the Python file?

a)

a) .python

b)

b) .pl

c)

c) .py

d)

d) .p

81.

What is the order of precedence in python?

a)

a) Exponential, Parentheses, Multiplication, Division, Addition, Subtraction

b)

b) Exponential, Parentheses, Division, Multiplication, Addition, Subtraction

c)

c) Parentheses, Exponential, Multiplication, Division, Subtraction, Addition

d)

d) Parentheses, Exponential, Multiplication, Division, Addition, Subtraction

82.

Thực hiện chương trình sau đây, nhận được kết quả trên màn hình là gì?

a)

6

b)

0

c)

7.5

d)

0.8333334

83.

Cho đoạn chương trình sau:

a=b=1

c=1

d=2

print(a+b+c+d)

Kết quả trên màn hình là:

a)

A. 3

b)

B. 4

c)

C. 5

d)

D. 6

84.

Hình vuông có cạnh là 10(cm). Ta có thể dùng Python để viết chương trình tính diện tích hình vuông là:

a)

print(‘dien tich hinh vuong la:’,a*a)

b)

print(‘dien tich hinh vuong la:a*a’)

c)

print(dien tich hinh vuong la:a*a)

d)

print ‘dien tich hinh vuong la:’,a*a

85.

What is the purpose of loops in Python?

a)

Loops in Python are used for sorting data

b)

The purpose of loops in Python is to iterate over sequences or execute a block of code repeatedly.

c)

Loops in Python are designed to skip over code blocks

d)

The purpose of loops in Python is to print statements only once

86.

Explain the difference between 'for' and 'while' loops in Python.

a)

The 'for' loop is used for executing a block of code repeatedly as long as a specified condition is true, while the 'while' loop is used for iterating over a sequence (like a list, tuple, string, etc.) or a range of numbers.

b)

The 'for' loop is used for iterating over a sequence (like a list, tuple, string, etc.) or a range of numbers, while the 'while' loop is used for executing a block of code repeatedly as long as a specified condition is true.

87.

Why are comments important in programming?

a)

Comments are used to hide malicious code within the program.

b)

Comments are only for experienced programmers and not beginners.

c)

Comments are unnecessary and slow down the code execution.

d)

Comments provide clarity and context to the code.

88.

What degree of turn needs to be added to the 'turn right' block to draw a triangle?

a)

60

b)

90

c)

100

d)

120

89.

What is this a definition of: To carry out each instruction in the order they appear?

a)

A. Selection

b)

B. Iteration

c)

C. Sequencing

d)

D. Variable

90.

What is this type of code known as?

a)

A. Text based code

b)

B. English code

c)

C. Block Based code

d)

D. Program language code

91.
a)

A

b)

B

c)

C

d)

D

e)

E

92.

The output of the following program is?

a)

10

b)

2

c)

8

d)

16

93.

The output of the following program is?

a)

5

b)

6

c)

7

d)

14

94.

The output of the following program is?

a)

2

b)

5

c)

7

d)

No Output

95.

Which of the following is a valid variable name?

a)

AAABBB

b)

____DDD

c)

$$$$ABC

d)

All of the above

96.

Which of the following is which Blockly cannot do?

a)

Programming

b)

Making games

c)

Machine learning

d)

Wash dishes

97.

Which of the following block categories does not exist in Blockly?

a)

Math

b)

Logic

c)

Loops

d)

None of the above

98.

What is the expected output of the following code?

a)

3

b)

9

c)

150

d)

170

99.

The code doesn’t output anything, why?

a)

Actually ‘0’ is printed but it’s 0 so we cannot see

b)

There is an error because number does not have function ‘charAt’

c)

“Hello World” is too long

d)

Variable “text” is spelled wrong and the code cannot interpret variable with wrong names

100.

What is the difference between the two blocks?

a)

No difference

b)

One would print another would not print

c)

One would print twice another would only print once

d)

Both code do nothing because 2 never equals to 1 nor 3

101.

What is the output of the following program?

a)

2

b)

3

c)

4

d)

8

102.

Blockly doesn't have which of the following operations?

a)

Multiplication

b)

Subtraction

c)

Declaring variable

d)

Blockly has all of the above operations

103.

What’s the expected result of x?

a)

24.8

b)

1

c)

The is no solution

d)

77

104.

What is the printed output?

a)

0

b)

1

c)

3

d)

A

105.

What’s the output of the following code?

a)

No output because colour cannot be printed

b)

100 50 0

c)

#rrggbb

d)

A random color is represented as text of the form "#rrggbb

106.

How many characters is the following “item” string ?

a)

10

b)

12

c)

14

d)

16

107.

What is the expected output?

a)

#0000

b)

#000000

c)

#0000000

d)

#000

108.

An error in a program that prevents the program from running as expected.

a)

bug

b)

debugging

c)

workplane

d)

code