Font size
WorksheetsJunior Quiz - Tuệ Anh
Total questions: 108
Worksheet time: 1hrs 28mins
A keyboard.
Identify if the device is an Input, Process or Output device.
Input
Process
Output
Both Input & Output
A microphone.
Identify if the device is an Input, Process or Output device.
Input
Process
Output
Both Input & Output
A monitor.
Identify if the following device is an Input, Process or Output device.
Input
Process
Output
Both Input & Output
A mouse.
Identify if the device is an Input, Process or Output device.
Input
Process
Output
Both Input & Output
A printer.
Identify if the device is an Input, Process or Output device.
Input
Process
Output
Both Input & Output
A scanner.
Identify if the device is an Input, Process or Output device.
Input
Process
Output
Both Input & Output
What is this?
Mouse
Keyboard
CPU
Monitor
What function does Ctrl+C perform?
Copy
Save
Undo
Paste
What function does Ctrl+V perform?
Copy
Save
Undo
Paste
The _________________ is a worldwide collection of computer networks that connects millions of businesses, government agencies, educational institutions, and individuals.
web
network
internet
browser
A ________________ is an electronic device, operating under the control of instructions stored in its own memory.
Server
Laptop
Computer
Tablet
What is an algorithm?
Patterns and trends used to solve a problem
A set of step-by-step instructions to resolve a problem
A programming language
When can an algorithm be used?
Only with computers
For programming
To design a solution to any problem
What is decomposition?
Searches the computer's memory for data
Repeats a program
Getting small part of a problem and adding them together
Breaking down a complex problem
If it is AFTER 7am, what do you need to do?
Take the bus
Take the subway
Check the time
Leave home
Match the puzzle to the blocks
The action of doing something over and over again.
Looping
Bugging
Programming
What does this code do?
Moves forward, turns, moves forward
Moves forward 2 times, turns left, moves forward 2 more times
Moves forward 4 times and turns left
Moves and turns
What does this code do?
Moves forward 1 time
Moves forward forever
Moves forward 5 times
Moves left
What shape does this code make?
Rectangle
Triangle
Square
Circle
Which is the correct code for this puzzle?
Which block would you use to replace the "?" in the code?
(click the picture to make it bigger)
What in the name of the variable in this Python code?
name
input
("What is your name")
Why is it important that was use comments in our code?
They help the program run smoothly
So that when we come back to the code we can understand what it is doing
To help other people understand what is going on in our code
To add more colours into our code
print"What football team do you support?"
colour = input(“Enter a colour”)
What does WWW stand for?
World Wide Web
World Weather Web
Web Web Web
Wide World Web
What information should you share on the Internet?
Your school address
Your full name
Your phone number
Your favourite color
What are they?
URL
Web browser
Internet
Web address
Based on the graph, how many more students are in the science club than the book club?
20
16
46
18
What is the total time?
24 seconds
24 hours
24 minutes
$0.92
Who should know your passwords?
Only you!
Your best friends
Anyone
What is Phishing?
Fishing while talking on the phone.
Fake emails or websites that look like real emails and websites and try to steal your data.
When do you need to use AntiVirus software?
When you first get your computer.
All the time, on your laptop only -and make sure it is updated!
All the time, on ALL digital devices -and make sure it is updated!
As soon as you start to feel sick.
Which of these is NOT a good password?
#LooneyToons23
Ilovecats!95
password
#Iasw,aA!
What is Spam?
Canned meat.
Unsolicited emails sent to many email addresses that try to get you buy something or share private information.
A computer virus that will hack your account.
name = 'Dave'
print (name)
team = input(“Enter a team”)
if answer == (“Man United”)
colour = input(“Enter a colour”)
print("Hello world!\nHello world!")
Hello world!
What syntax can you use to insert a line break between strings so that they appear over new lines?
/
\n
\l
n
print("Hello world!" * 2)
We can use the block (a) to make something repeat during all the time.
Coding can be used to
Program robots
create websites, games & apps
tell computers what to do
all of these
print("Hello world!\nHello world!")
Hello world!
print(Hello world!)
What is the correct code to ask for a user’s favourite animal and store it in memory?
animal = input(“What is your favourite animal?”)
input = animal(“What is your favourite animal?”)
animal(“What is your favourite animal?”)
input(What is your favourite animal?)
What would be the output of the following code? - print(3 + 5)
No output
8
3+5
Error message
Which of these statements about while loops is true?
While loops always execute the same number of times
While loops always execute at least once
While loops must have a condition
While loops must not contain an “if” statement
12. In Python, "Seventeen" is an example of what data type?
string
integer
boolean
float
12. In Python, 17 is an example of what data type?
string
integer
boolean
float
12. In Python, 1.5 is an example of what data type?
string
integer
boolean
float
12. In Python, True or False is an example of what data type?
string
integer
boolean
float
print(3*4+5)
Which one will display when this code is run?
What result will display in the shell if 15 and 20 is entered by the user?
"num1 + num2"
1520
35
Which of the following is the correct extension of the Python file?
a) .python
b) .pl
c) .py
d) .p
What is the order of precedence in python?
a) Exponential, Parentheses, Multiplication, Division, Addition, Subtraction
b) Exponential, Parentheses, Division, Multiplication, Addition, Subtraction
c) Parentheses, Exponential, Multiplication, Division, Subtraction, Addition
d) Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
Thực hiện chương trình sau đây, nhận được kết quả trên màn hình là gì?
6
0
7.5
0.8333334
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. 3
B. 4
C. 5
D. 6
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à:
print(‘dien tich hinh vuong la:’,a*a)
print(‘dien tich hinh vuong la:a*a’)
print(dien tich hinh vuong la:a*a)
print ‘dien tich hinh vuong la:’,a*a
What is the purpose of loops in Python?
Loops in Python are used for sorting data
The purpose of loops in Python is to iterate over sequences or execute a block of code repeatedly.
Loops in Python are designed to skip over code blocks
The purpose of loops in Python is to print statements only once
Explain the difference between 'for' and 'while' loops in Python.
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.
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.
Why are comments important in programming?
Comments are used to hide malicious code within the program.
Comments are only for experienced programmers and not beginners.
Comments are unnecessary and slow down the code execution.
Comments provide clarity and context to the code.
What degree of turn needs to be added to the 'turn right' block to draw a triangle?
60
90
100
120
What is this a definition of: To carry out each instruction in the order they appear?
A. Selection
B. Iteration
C. Sequencing
D. Variable
What is this type of code known as?
A. Text based code
B. English code
C. Block Based code
D. Program language code
A
B
C
D
E
The output of the following program is?
10
2
8
16
The output of the following program is?
5
6
7
14
The output of the following program is?
2
5
7
No Output
Which of the following is a valid variable name?
AAABBB
____DDD
$$$$ABC
All of the above
Which of the following is which Blockly cannot do?
Programming
Making games
Machine learning
Wash dishes
Which of the following block categories does not exist in Blockly?
Math
Logic
Loops
None of the above
What is the expected output of the following code?
3
9
150
170
The code doesn’t output anything, why?
Actually ‘0’ is printed but it’s 0 so we cannot see
There is an error because number does not have function ‘charAt’
“Hello World” is too long
Variable “text” is spelled wrong and the code cannot interpret variable with wrong names
What is the difference between the two blocks?
No difference
One would print another would not print
One would print twice another would only print once
Both code do nothing because 2 never equals to 1 nor 3
What is the output of the following program?
2
3
4
8
Blockly doesn't have which of the following operations?
Multiplication
Subtraction
Declaring variable
Blockly has all of the above operations
What’s the expected result of x?
24.8
1
The is no solution
77
What is the printed output?
0
1
3
A
What’s the output of the following code?
No output because colour cannot be printed
100 50 0
#rrggbb
A random color is represented as text of the form "#rrggbb
How many characters is the following “item” string ?
10
12
14
16
What is the expected output?
#0000
#000000
#0000000
#000
An error in a program that prevents the program from running as expected.
bug
debugging
workplane
code
