PCEP Section 1C: Understanding Data Types and Variables

PCEP Section 1C: Understanding Data Types and Variables

12th Grade

15 Qs

quiz-placeholder

Similar activities

CodeHS - Intro to Python - Basics and Console Interaction

CodeHS - Intro to Python - Basics and Console Interaction

9th Grade - Professional Development

20 Qs

Unit 3 Python TEST

Unit 3 Python TEST

11th - 12th Grade

20 Qs

SIS_Computer Science

SIS_Computer Science

10th Grade - University

18 Qs

INTRODUCITON TO PYTHON

INTRODUCITON TO PYTHON

11th - 12th Grade

20 Qs

Python Basics (CodeHS)

Python Basics (CodeHS)

7th - 12th Grade

20 Qs

For Loop Method in Python

For Loop Method in Python

9th Grade - University

20 Qs

Python Variables and Properties

Python Variables and Properties

9th - 12th Grade

16 Qs

Unit 3 Review

Unit 3 Review

9th - 12th Grade

11 Qs

PCEP Section 1C: Understanding Data Types and Variables

PCEP Section 1C: Understanding Data Types and Variables

Assessment

Quiz

Computers

12th Grade

Easy

Created by

Misti McDaniel

Used 11+ 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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?