PCEP Section 1C: Understanding Data Types and Variables

Quiz
•
Computers
•
12th Grade
•
Easy
Misti McDaniel
Used 13+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid Boolean value in Python?
TRUE
True
"True"
1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of the variable `x` after executing the following code? ```python x = 0b1010 ```
2
8
10
5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a floating-point literal in Python?
42
3.14
"3.14"
0b101
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following variable names follows PEP-8 naming conventions for variables?
myVariable
My_variable
my_variable
myVariable1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the decimal value of the hexadecimal number `0x1F`?
15
16
31
30
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4.2e3
4.2^3
4.2*10^3
4.2e-3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid string assignment in Python?
name = "Alice"
name = 'Alice'
name = Alice
name = """Alice"""
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python String

Quiz
•
12th Grade
15 questions
Python Quiz

Quiz
•
9th - 12th Grade
10 questions
Python Variables

Quiz
•
7th - 12th Grade
15 questions
Python Built-in Functions

Quiz
•
11th - 12th Grade
15 questions
Grade 8 End of Unit Revision

Quiz
•
8th Grade - University
15 questions
Programming python review

Quiz
•
9th - 12th Grade
10 questions
l.7. PYTHON FUNCTIONS

Quiz
•
12th Grade
15 questions
Creating and using classes in Python

Quiz
•
9th - 12th 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
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
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