PCEP Practice Test - Python

PCEP Practice Test - Python

Professional Development

30 Qs

quiz-placeholder

Similar activities

HRIS Slides 1

HRIS Slides 1

Professional Development

25 Qs

Year 7 Computer Science Baseline

Year 7 Computer Science Baseline

KG - Professional Development

31 Qs

CONTROL STRUCTURES - LIST

CONTROL STRUCTURES - LIST

Professional Development

25 Qs

Cyber Security (Cyber security KS4 1-3)

Cyber Security (Cyber security KS4 1-3)

9th Grade - Professional Development

28 Qs

ICT

ICT

Professional Development

25 Qs

Aptitude King

Aptitude King

University - Professional Development

25 Qs

CodeHS Basic Data Structures in Python

CodeHS Basic Data Structures in Python

University - Professional Development

26 Qs

ISC2 - CC - Chapter 3 - Module 2

ISC2 - CC - Chapter 3 - Module 2

Professional Development

28 Qs

PCEP Practice Test - Python

PCEP Practice Test - Python

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Prakash Ash

Used 7+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which of the following expressions evaluate to a non-zero result ? (Select two answers)

4 / 2 - 2 ** 1

4 / 2 + 2 ** 1

1 // 2 + 3 * 4

1 ** 2 - 4 // 3

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which one of the following asks the user for a string value and assigns it to the variable password ?

input = password ("Enter password")

password = input(Enter password)

password = input("Enter password")

password = str("Enter password")

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Refer to code image. Which one of the following code snippets prints the width and height variables separated by a multiplication sign (*) ?

print(width, height, *)

print(width, *, height)

print(width, height, sep='*')

print(width, height, multiply() )

Answer explanation

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Given the literal "False", identify the correct data type.

Boolean

String

Integer

Float

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Given the literal True, identify the correct data type.

Boolean

String

Integer

Float

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A process in which the source code is immediately executed without translating into machine code is called

linking

compilation

interpretation

debugging.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Identify the operation that has the highest priority according to the operator precedence table in python.

Exponentiation

Multiplication

Subtraction

Floor Division

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?