Python Quiz Day-4

Python Quiz Day-4

University

15 Qs

quiz-placeholder

Similar activities

Round 1

Round 1

University

15 Qs

Python Functions and File Operations Quiz cyber 2025

Python Functions and File Operations Quiz cyber 2025

University

18 Qs

Geeks for Geeks PCCOER Info Session CP Quiz

Geeks for Geeks PCCOER Info Session CP Quiz

University

20 Qs

PROGRAMMING IN PYTHON - UNIT II - TEST 2 - MCQS

PROGRAMMING IN PYTHON - UNIT II - TEST 2 - MCQS

University

15 Qs

Quiz 1 Functions

Quiz 1 Functions

University

10 Qs

PROYECTOS CON MICROCONTROLADORES_Semana09

PROYECTOS CON MICROCONTROLADORES_Semana09

University

10 Qs

Self development

Self development

University

10 Qs

Praktisi Mengajar - Python

Praktisi Mengajar - Python

University

12 Qs

Python Quiz Day-4

Python Quiz Day-4

Assessment

Quiz

Computers

University

Hard

Created by

SANJANA TUMPATI

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

python

print("Hello, World!"[7])

H

W

o

,

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method can be used to convert a string to lowercase?

lowercase()

toLower()

lower()

downcase()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the `split()` method do?

Splits the string into a list where each word is a list item

Splits the string into a list where each character is a list item

Splits the string into a list based on a delimiter

Both a and c

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code?

"hello".capitalize()

Hello

HELLO

hello

HeLLo

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid string method in Python?

find()

replace()

append()

strip()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code?

s = "Python Programming"

print(s[2:8])

thon P

ython P

thon Pr

ython Pr

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax to define a function in Python?

function myFunction():

def myFunction:

def myFunction():

function myFunction()

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?