
PCEP Practice 1

Quiz
•
Computers
•
9th Grade
•
Medium
John Chapman
Used 6+ times
FREE Resource
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a variable in Python?
`int x = 10`
`x = 10`
`declare x = 10`
`var x = 10`
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a mutable data type in Python?
`tuple`
`list`
`str`
`int`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet? ```python x = 5 y = 10 print(x + y) ```
`15`
`510`
`5 + 10`
`Error`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct `if` statement in Python?
`if x = 5:`
`if (x == 5)`
`if x == 5:`
`if x = 5 then`
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? ```python for i in range(3): print(i) ```
`0 1 2`
`1 2 3`
`0 1 2 3`
`3 2 1`
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a function in Python?
`func`
`define`
`def`
`function`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? ```python def add(a, b): return a + b print(add(2, 3)) ```
`5`
`23`
`2 + 3`
`Error`
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Cyber Quiz Round 2

Quiz
•
9th - 12th Grade
20 questions
Python Recap

Quiz
•
7th Grade - University
19 questions
Programming Techniques Survey

Quiz
•
8th - 12th Grade
20 questions
Token in Python

Quiz
•
9th Grade
20 questions
Python 1

Quiz
•
7th - 9th Grade
20 questions
Python Functions

Quiz
•
9th Grade
25 questions
Python 4 🐍 incomplete

Quiz
•
9th Grade
22 questions
Round 1: Hack The Quest

Quiz
•
8th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)

Quiz
•
9th Grade
15 questions
MLA Formatting

Quiz
•
9th Grade
20 questions
Typing Practice

Quiz
•
7th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Google Sheets Quiz

Quiz
•
9th Grade