[Python For All] Quiz 2 - Rewind.py

[Python For All] Quiz 2 - Rewind.py

University

20 Qs

quiz-placeholder

Similar activities

Programming in C language

Programming in C language

12th Grade - University

18 Qs

Artificial Intelligence CT-1

Artificial Intelligence CT-1

University

20 Qs

Computational Thinking in Python[Quiz 3]

Computational Thinking in Python[Quiz 3]

University

15 Qs

Python Basics

Python Basics

KG - University

16 Qs

โทโพโลยีเครือข่าย

โทโพโลยีเครือข่าย

University

20 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

SECOND QUIZ

SECOND QUIZ

University

20 Qs

Atividade de Fixação - Python

Atividade de Fixação - Python

University

20 Qs

[Python For All] Quiz 2 - Rewind.py

[Python For All] Quiz 2 - Rewind.py

Assessment

Quiz

Computers

University

Medium

Created by

Karunya Hacks

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Guess the correct output of the following program:

str1="6/4"

print("str1")

6/4

1

str1

1.5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of below Python code?

str1="Information"

print(str1[2:8])

format

ormat

formatio

orma

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What arithmetic operators cannot be used with strings?

+

*

-

All of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would the following code print?

Mali = 5

print("Mali" + " is " + str(Mali))

Mali is 5

Mali is Mali

5 is Mali

5 is 5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will following Python code return?

str1="Stack of books"

print(len(str1))

13

14

15

16

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following

aList = [5, 10, 15, 25]

print(aList[::-2])

[15, 10, 5]

[10, 5]

[25, 10]

[2, 25, 15]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Find the Output

joinList = “Welcome,to,Python”

List = joinList.split(‘,’)

print(List)

[‘WelcometoPython’]

[‘Welcome’, ‘to’, ‘Python’]

Error

[‘Welcome’]

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?