Python Training Day-4 Quiz-4

Python Training Day-4 Quiz-4

Professional Development

10 Qs

quiz-placeholder

Similar activities

Streams

Streams

Professional Development

10 Qs

Abstract Class #1

Abstract Class #1

Professional Development

10 Qs

Python-Quiz-Basic-Datatypes

Python-Quiz-Basic-Datatypes

12th Grade - Professional Development

10 Qs

C Programming

C Programming

Professional Development

10 Qs

CodeTigers Python 101

CodeTigers Python 101

KG - Professional Development

10 Qs

everisCodeFest 4

everisCodeFest 4

Professional Development

10 Qs

¡Frontend check!

¡Frontend check!

Professional Development

10 Qs

C Looping/Conditional MCQs

C Looping/Conditional MCQs

Professional Development

10 Qs

Python Training Day-4 Quiz-4

Python Training Day-4 Quiz-4

Assessment

Quiz

Computers

Professional Development

Hard

Created by

kamaljeet singh kalsi

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will be the output of the following Python code?

>>>print (r"\nhello")

a new line and hello

\nhello

the letter r and then hello

error

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will be the output of the following Python statement?

>>>print('new' 'line')

Error

Output equivalent to print ‘new\nline’

newline

new line

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will be the output of the following Python code?

>>>str1="helloworld"

>>>str1[::-1]

dlrowolleh

hello

world

helloworld

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will be the output of the following Python code?

print(0xA + 0xB + 0xC)

0xA0xB0xC

Error

0x22

33

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will be the output of the following Python code?

>>>example = "snow world"

>>>example[3] = 's'

>>>print example

snow

snow world

Error

snos world

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What function do you use to read a string?

input(“Enter a string”)

eval(input(“Enter a string”))

enter(“Enter a string”)

eval(enter(“Enter a string”))

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What keyword would you use to add an alternative condition to an if statement?

else if

elseif

elif

None

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?