Search Header Logo
PCEP Section 1A: Understand fundamental terms and definitions

PCEP Section 1A: Understand fundamental terms and definitions

Assessment

Flashcard

Computers

12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

15 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following is a correct file extension for a Python source file? Options: .py, .java, .exe, .txt

Back

.py

2.

FLASHCARD QUESTION

Front

Which of the following is NOT a valid Python identifier? my_variable, 2ndValue, _temp, value2

Back

2ndValue

3.

FLASHCARD QUESTION

Front

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

Back

Hello, World!

4.

FLASHCARD QUESTION

Front

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

Back

A container for storing data values

5.

FLASHCARD QUESTION

Front

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

Back

x = 10

6.

FLASHCARD QUESTION

Front

Which of the following is a fundamental data type in Python? Options: integer, string, list, All of the above

Back

All of the above

7.

FLASHCARD QUESTION

Front

Which of the following statements will output the value of a variable `name` in Python? Options: print(name), echo name, display(name), show name

Back

print(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?