Search Header Logo

PCEP Section 1A: Understand fundamental terms and definitions

Authored by Misti McDaniel

Computers

12th Grade

Used 25+ times

PCEP Section 1A: Understand fundamental terms and definitions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?