PCEP Practice Exam 1

PCEP Practice Exam 1

10th Grade

30 Qs

quiz-placeholder

Similar activities

GLobal Politics IR

GLobal Politics IR

10th - 11th Grade

25 Qs

DUSSHERA QUIZ

DUSSHERA QUIZ

1st - 10th Grade

25 Qs

Year 9 Term 2 (Al-Baqarah) Section 5 TEST

Year 9 Term 2 (Al-Baqarah) Section 5 TEST

9th Grade - University

25 Qs

RELIGIONES DEL MUNDO 4º ESO C CLARET SG

RELIGIONES DEL MUNDO 4º ESO C CLARET SG

1st - 12th Grade

25 Qs

BOOK OF EXODUS (15-11-2020)

BOOK OF EXODUS (15-11-2020)

KG - Professional Development

25 Qs

Bible Quiz (July 9,2021)

Bible Quiz (July 9,2021)

KG - Professional Development

25 Qs

Bible Quiz (July 2, 2021)

Bible Quiz (July 2, 2021)

KG - Professional Development

25 Qs

Quiz 2 Reviewer

Quiz 2 Reviewer

10th Grade

25 Qs

PCEP Practice Exam 1

PCEP Practice Exam 1

Assessment

Quiz

Religious Studies

10th Grade

Medium

Created by

Henry Vo

Used 54+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will the output be after executing the following code snippet?

3

9

1

18

Answer explanation

The ** operator is used to raise the number on the left to the power of the exponent of the right. The expression is evaluated from the right to left, and therefore it results in 9**0, which is 9.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will the output be, if we run the following code?

Monday, Tuesday, Wednesday, Thursday

Friday

None

AttributeError: 'tuple' object has no attribute 'append'

Answer explanation

Tuples are immutable and cannot be amended once created.

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

How many times will it print "#"?

1

2

3

4

Answer explanation

The program will print '#' 3 times. The outer most if statement is false, so the if block is ignored, and the else block (print ("#"*3)) is executed.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of this code when "robert" is entered by the user when prompted?

True

error

Robert

False

Answer explanation

The == operator compares two values. Python is case-sensitive. The value robert is not the same as Robert.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What would be printed to the console after the following code is executed?

Hello

"Hello", World

Hello World

Hello, World

Answer explanation

The loop will print Hello once before entering into else clause, after i has is incremented by 1.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will the output be after executing the following code?

('Python', 'Tuple')

[Python, Tuple]

['Python', 'Tuple']

(Python, Tuple)

Answer explanation

The answer is ('Python', 'Tuple') because the tuple() coverts the list to type tuple, keeping the same list elements.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output when the following code snippet is run:

Error

None

Let's enjoy a bowl of cereals

Groceries trip pending

Answer explanation

If the value of a variable is non-zero or non-empty, bool(non_empty_variable) will evaluate to True. Hence the if clause is passed ( bool ("None") = True ) and 'Groceries trip pending' is printed to the console.

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?