PCEP Section 1A: Understand fundamental terms and definitions

PCEP Section 1A: Understand fundamental terms and definitions

12th Grade

15 Qs

quiz-placeholder

Similar activities

Basic Python Coding

Basic Python Coding

11th - 12th Grade

15 Qs

python quiz

python quiz

12th Grade

20 Qs

Scope of Variables in Python

Scope of Variables in Python

1st Grade - Professional Development

15 Qs

PYTHON PROGRAMMING

PYTHON PROGRAMMING

11th - 12th Grade

15 Qs

Basic Python

Basic Python

10th - 12th Grade

20 Qs

Processing Basics

Processing Basics

7th - 12th Grade

20 Qs

2.5 Translators & Facilities - OCR GCSE Computer Science

2.5 Translators & Facilities - OCR GCSE Computer Science

7th - 12th Grade

13 Qs

Strings, Lists & Tuples

Strings, Lists & Tuples

9th - 12th Grade

20 Qs

PCEP Section 1A: Understand fundamental terms and definitions

PCEP Section 1A: Understand fundamental terms and definitions

Assessment

Quiz

Computers

12th Grade

Easy

Created by

Misti McDaniel

Used 21+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct file extension for a Python source file?

.py

.java

.exe

.txt

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid Python identifier?

my_variable

2ndValue

_temp

value2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following Python code? ```python print("Hello, World!") ```

Hello World!

"Hello, World!"

Hello, World!

print("Hello, World!")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best defines a variable in Python?

A reserved word used to perform a specific function

A container for storing data values

A type of loop structure

A built-in function

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct way to assign the value 10 to a variable named `x` in Python?

x == 10

x := 10

x = 10

10 = x

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a fundamental data type in Python?

integer

string

list

All of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements will output the value of a variable `name` in Python?

print(name)

echo name

display(name)

show name

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?