Cybersecurity Pre-Test Questions
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Medium
Kendra Wilkins
Used 1+ times
FREE Resource
Enhance your content in a minute
76 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the term “variable” refer to in programming?
A fixed value
A container for storing data
A type of loop
A function name
Answer explanation
In programming, a "variable" is a container for storing data. It allows you to hold values that can change during the execution of a program, unlike a fixed value which cannot be altered.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
(True/False) Python is a compiled language.
True
False
Answer explanation
False. Python is primarily an interpreted language, meaning it executes code line by line at runtime rather than compiling it into machine code beforehand.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol is used to start a comment in Python?
# (hash symbol)
// (double slash)
/* (slash asterisk)
-- (double dash)
Answer explanation
In Python, comments are initiated with the # (hash symbol). This symbol indicates that the rest of the line is a comment and will not be executed as code, making it the correct choice among the options provided.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a data type in Python?
Integer
Loop
Execute
Answer explanation
In Python, 'Integer' is a fundamental data type used to represent whole numbers. The other options, 'Loop', 'Print', and 'Execute', are not data types but rather concepts or functions in programming.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the `if` statement do in a program?
Repeats code
Defines a function
Makes decisions
Declares a variable
Answer explanation
The `if` statement evaluates a condition and executes code based on whether the condition is true or false. This allows the program to make decisions, which is why the correct answer is 'Makes decisions'.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A `while` loop continues until a condition becomes false.
True
False
Answer explanation
A `while` loop executes repeatedly as long as its condition is true. It stops when the condition evaluates to false, confirming that the statement is true.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write a simple Python line that prints “Hello, World!”
print("Hello, World!")
echo "Hello, World!"
printf("Hello, World!")
System.out.println("Hello, World!");
Answer explanation
The correct choice is print("Hello, World!") because it uses Python's print function to output text. The other options are from different programming languages: echo (PHP), printf (C), and System.out.println (Java).
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
80 questions
ASK TINGKATAN 2 BAB 3 2025
Quiz
•
9th - 12th Grade
77 questions
PENGETUHUAN DASAR TKJ
Quiz
•
12th Grade
71 questions
CMU AP CSP - Student Created Questions WHS
Quiz
•
9th - 12th Grade
75 questions
Career Development Semester Exam 2025
Quiz
•
8th Grade - University
79 questions
Ôn tập cuối kì Tin 11 24-25
Quiz
•
11th Grade
80 questions
โครงสร้างข้อมูลและอัลกอริทึม
Quiz
•
University
71 questions
CS- Q1 Revision
Quiz
•
12th Grade
71 questions
PROTOCOLOS-2-ESPAÑOL
Quiz
•
University - Professi...
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
