Python Essentials 1 - Exam

Python Essentials 1 - Exam

Professional Development

40 Qs

quiz-placeholder

Similar activities

MS office 2016

MS office 2016

1st Grade - Professional Development

40 Qs

RA2 (HyS) - Examen 1

RA2 (HyS) - Examen 1

Professional Development

40 Qs

AZ-900 2  de 3

AZ-900 2 de 3

Professional Development

40 Qs

Java Feature

Java Feature

Professional Development

42 Qs

Module 3 Quiz Simulation

Module 3 Quiz Simulation

Professional Development

35 Qs

sains komputer tingkatan 4

sains komputer tingkatan 4

Professional Development

45 Qs

Block chain

Block chain

University - Professional Development

35 Qs

Информатика 6-нұсқа

Информатика 6-нұсқа

Professional Development

35 Qs

Python Essentials 1 - Exam

Python Essentials 1 - Exam

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Ademola Damilola

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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?