Intro to Python-Quiz 2-INT-2240

Intro to Python-Quiz 2-INT-2240

Intro to Python-Quiz 2

Attempt History

Attempt Time Score
LATEST Attempt 1 2 minutes 20 out of 20

Score for this attempt: 20 out of 20

Submitted Jul 11 at 2:53pm

This attempt took 2 minutes.

Question 1

Which of the following is correct about Python? Python is a high-level, interpreted, interactive and object-oriented scripting language.rr

All of the above.

Python is designed to be highly readable.

It uses English keywords frequently where as other languages use punctuation, and it has fewer syntactical constructions than other languages.

Question 2

Is python a case sensitive language?Correct!

True

False

Question 3

What is the output of print str * 2 if str = ‘Hello World!’?

None of the above.

Hello World!

Hello World! Hello World!

Hello World! * 2

Question 4

What is the output of print str[2:5] if str = ‘Hello World!’?Correct!

llo

H

None of the above.

llo World!

Question 5

Which of the following function convert a string to a float in python?!

float(x)

long(x [,base] )

int(x [,base])

str(x)

Answer Preview-Intro to Python-Quiz 2-INT-2240

Intro to Python-Quiz 2-INT-2240

$3.00

Posted

in

by

Tags: