Python - Worksheet-2

Python - Worksheet-2

Professional Development

10 Qs

quiz-placeholder

Similar activities

Python Final Quiz

Python Final Quiz

Professional Development

13 Qs

M1_Week1_Time_Machine

M1_Week1_Time_Machine

Professional Development

11 Qs

Python Class 1

Python Class 1

Professional Development

15 Qs

PYTHON VOCABULARY

PYTHON VOCABULARY

Professional Development

10 Qs

Avaliação Pensamento Computacional - Prático

Avaliação Pensamento Computacional - Prático

1st Grade - Professional Development

10 Qs

PYTHON JUNIOR QUIZ-3

PYTHON JUNIOR QUIZ-3

KG - Professional Development

10 Qs

Python Turtle

Python Turtle

KG - Professional Development

11 Qs

Python Training Day-4 Quiz-4

Python Training Day-4 Quiz-4

Professional Development

10 Qs

Python - Worksheet-2

Python - Worksheet-2

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Ms.Akilandeswari B

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 'hello' + 'world'?

hello world

helloworld

worldhello

helloworldd

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you check the length of a list in Python?

count(your_list)

len(your_list)

length(your_list)

size(your_list)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for a 'for' loop in Python?

for i in range(10):

for element in list:

for x in iterable:

for item in iterable:

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'elif' keyword in Python?

The 'elif' keyword in Python is used to skip the current iteration of a loop

The 'elif' keyword in Python is used to end the program execution

The 'elif' keyword in Python is used to define a new function

The purpose of the 'elif' keyword in Python is to check multiple expressions for TRUE and execute a block of code as soon as one of the conditions is TRUE.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'break' keyword do in a Python loop?

It skips the current iteration and continues with the next one.

It ends the loop and continues with the next statement after the loop.

It breaks out of the loop completely.

It restarts the loop from the beginning.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you remove an element from a Python list?

remove(element)

delete(element)

pop(index)

discard(element)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'in' keyword in Python?

The 'in' keyword is used to check if a value exists in a list or sequence.

The 'in' keyword is used to define a new variable.

The 'in' keyword is used to concatenate strings.

The 'in' keyword is used to perform bitwise operations.

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?