PCEP Section 1A: Understand fundamental terms and definitions

PCEP Section 1A: Understand fundamental terms and definitions

12th Grade

15 Qs

quiz-placeholder

Similar activities

Python Programming 1: print, strings, variables, casting

Python Programming 1: print, strings, variables, casting

9th Grade - University

15 Qs

Python 2

Python 2

9th - 12th Grade

10 Qs

PCEP Section 4B: the function and its environment

PCEP Section 4B: the function and its environment

12th Grade

10 Qs

Python Basics

Python Basics

6th Grade - University

10 Qs

GCSE Computer Science - Programming Keywords

GCSE Computer Science - Programming Keywords

9th - 12th Grade

15 Qs

Coding and Robotics

Coding and Robotics

8th - 12th Grade

12 Qs

Python U2M3 Test

Python U2M3 Test

9th - 12th Grade

16 Qs

PYTHON PROGRAMMING

PYTHON PROGRAMMING

11th - 12th Grade

15 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 24+ 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?