
PCEP Practice 1
Authored by John Chapman
Computers
9th Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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`
Access all questions and much more by creating a free account
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
20 questions
TIK KD 3
Quiz
•
1st - 12th Grade
20 questions
APCSP Unit 1
Quiz
•
9th - 12th Grade
21 questions
Одномерные массивы в Python (9 класс)
Quiz
•
9th Grade
20 questions
NP IT Quiz ปริศนาไอที #4
Quiz
•
9th - 12th Grade
20 questions
EXAMEN DE WORD 2010
Quiz
•
9th Grade
22 questions
ASK Tingkatan 2 -(3.2 Struktur Kod Arahan - Ralat)
Quiz
•
1st - 12th Grade
20 questions
Konsep Asas Pemikiran Komputasional- T3
Quiz
•
9th Grade
20 questions
Asesmen TIK - Integrasi Aplikasi Perkantoran 9
Quiz
•
9th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade