Python Essentials 1 - Exam

Python Essentials 1 - Exam

Professional Development

40 Qs

quiz-placeholder

Similar activities

Code A Thone Finals

Code A Thone Finals

Professional Development

45 Qs

PHP Dev

PHP Dev

Professional Development

44 Qs

Java Screening Test

Java Screening Test

Professional Development

40 Qs

polymorphism, exception and packages

polymorphism, exception and packages

Professional Development

40 Qs

JS array & object

JS array & object

Professional Development

37 Qs

Java Control Structures

Java Control Structures

11th Grade - Professional Development

39 Qs

Teacher Assessment (Scratch) Quiz -2

Teacher Assessment (Scratch) Quiz -2

Professional Development

40 Qs

Data Structures

Data Structures

Professional Development

40 Qs

Python Essentials 1 - Exam

Python Essentials 1 - Exam

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Ademola Damilola

Used 8+ times

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Media Image

How many element does the lst list contain?

zero

three

one

two

2.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Media Image

What is the output of the following piece of code if the user enters two lines containing 3 and 2 respectively?

3

0

2

1

3.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Which of the following snippet shows the correct way of handling multiple exceptions in a single except clause?

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE SELECT QUESTION

20 sec • 5 pts

Media Image

Which of the following lines correctly invoke the function defined below?

(Select TWO answers)

fun (b=1)

fun (b=0, a=1)

fun (0,1,2)

fun(0)

5.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Media Image

Assuming that my_tuple is a correctly created tuple, the fact that tuples are immutable means that the following instructions:

may be illegal if the tuple contains strings

can be executed if and only if the tuple contains at least two elements

is illegal

is fully correct

6.

MULTIPLE SELECT QUESTION

20 sec • 5 pts

Which of the following variable names are ILLEGAL and will cause the SyntaxError exception?

(Select TWO answer)

In

for

print

in

7.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Media Image

What is the output of the following snippet?

(4,)

44

(4)

4

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?