Search Header Logo

Python Certification: Objective 1&2

Authored by Brian Nanns

Other

12th Grade

Used 3+ times

Python Certification: Objective 1&2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to print "Hello, World!" in Python?

echo("Hello, World!")

System.out.println("Hello, World!")

print("Hello, World!")

printf("Hello, World!")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following file extensions is used for Python files?

.ppy

.python

.py

.pt

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of indentation in Python?

To align the code for better readability

To define code blocks

To make Python look different from other languages

It has no purpose

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of `print(10 // 3)`?

3.33

3

4

10

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does `print(2 ** 3)` output?

5

6

8

9

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to compare two values?

a) `=`

b) `==`

c) `!=`

d) `<>`

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does `not True` evaluate to?

True

False

None

Error

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?