
Yr 10 Python PreTest Term 1

Flashcard
•
Computers
•
10th Grade
•
Hard
Mr. Dunne
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the primary purpose of the print() function in Python?
Back
To display text on the screen
Answer explanation
The primary purpose of the print() function in Python is to display text on the screen. It is used to output messages, variables, or any other information to the console.
2.
FLASHCARD QUESTION
Front
Which of the following is a correct variable declaration in Python? var x = 10, int x = 10, x = 10, x : 10
Back
x = 10
Answer explanation
The correct variable declaration in Python is 'x = 10'. This assigns the value 10 to the variable x without specifying the data type.
3.
FLASHCARD QUESTION
Front
What symbol is used to start a comment in Python?
Back
#
Answer explanation
In Python, the symbol used to start a comment is '#' which indicates that the following text is a comment and will not be executed as code.
4.
FLASHCARD QUESTION
Front
Which function is used to get input from the user in Python? Options: input(), get(), read(), fetch()
Back
input()
Answer explanation
The correct function used to get input from the user in Python is input(). This function reads input from the user as a string.
5.
FLASHCARD QUESTION
Front
What will be the output of print(3 + 4 * 2)?
Back
11
Answer explanation
The output of print(3 + 4 * 2) is calculated based on the order of operations (PEMDAS/BODMAS). Multiplication is done first, so 4 * 2 = 8, then add 3, resulting in 11. Therefore, the correct answer is 11.
6.
FLASHCARD QUESTION
Front
Which of these is a valid Python function? function myFunc() {}, def myFunc():, myFunc() ->, function: myFunc()
Back
def myFunc():
Answer explanation
The valid Python function syntax is defined using 'def' keyword followed by the function name and parentheses. Therefore, 'def myFunc():' is the correct choice.
7.
FLASHCARD QUESTION
Front
What will be the output of the following code? print("Hello" + "World")
Back
HelloWorld
Answer explanation
The correct output will be 'HelloWorld' because the two strings are concatenated together using the '+' operator.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Colons, Semicolons, and Commas

Flashcard
•
9th - 10th Grade
10 questions
Python Data Structures

Flashcard
•
10th Grade
18 questions
Python Basics Review

Flashcard
•
10th Grade
19 questions
Python Lists

Flashcard
•
11th Grade
15 questions
Python

Flashcard
•
10th - 12th Grade
16 questions
Comma Rules

Flashcard
•
10th - 11th Grade
10 questions
Python Loops Flashcard

Flashcard
•
10th Grade
20 questions
P5 WBMS 8th Grade Final

Flashcard
•
9th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade