PCEP Section 1A: Understand fundamental terms and definitions

PCEP Section 1A: Understand fundamental terms and definitions

Assessment

Flashcard

Computers

12th Grade

Hard

Created by

Quizizz 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)

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?