Please login

Prime

Prepinsta Prime

Video courses for company/skill based Preparation

(Check all courses)
Get Prime Video
Prime

Prepinsta Prime

Purchase mock tests for company/skill building

(Check all mocks)
Get Prime mock

InfytQ Introduction to Programming-Quiz 4

Question 1

Time: 00:00:00
print(r'prep\ninsta')

What will be output of the above statement

prep \insta

prep \insta

prep\ninsta

prep\ninsta

prep insta

prep insta

prep insta

prep insta

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 2

Time: 00:00:00
“The Python interpreter takes the code that you write and converts it to the language that the computer’s hardware understands”.

Comment on the above statement.

always true

always true

always false

always false

Sometimes true based on interpreter used

Sometimes true based on interpreter used

Sometimes false based on interpreter used

Sometimes false based on interpreter used

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 3

Time: 00:00:00
What are python scripts?

collection of commands in a file designed to be executed like a program

collection of commands in a file designed to be executed like a program

collection of programs in a file designed to be executed

collection of programs in a file designed to be executed

collection of commands in a file designed that can't be executed

collection of commands in a file designed that can't be executed

All the above

All the above

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 4

Time: 00:00:00
a=x+y+12

What is x and y in the above statement?

operators

operators

operands

operands

expression

expression

terms

terms

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 5

Time: 00:00:00
a=x+y+12

What is x+y+12 in the above statement?

operators

operators

operands

operands

expression

expression

terms

terms

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 6

Time: 00:00:00
What is the difference between “/” and “//” in python?

/ is for integer division and // is for float division

/ is for integer division and // is for float division

/ is for float division and // is for integer division

/ is for float division and // is for integer division

There is no difference between / and //

There is no difference between / and //

There is no // in python

There is no // in python

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 7

Time: 00:00:00
What will be the output of following line

print(1.1+2.2==3.3)

True

True

False

False

1

1

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 8

Time: 00:00:00

a=100
b=0
print(bool(b and a/b))


What will be output?

1

1

zero division error

zero division error

False

False

True

True

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 9

Time: 00:00:00
Which operator has lowest precedence ?

not

not

++

++

and

and

/

/

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 10

Time: 00:00:00
What is the value of x if x=2**3-5*5+100+5-9/3

83

83

35.33

35.33

85

85

85.0

85.0

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

["0","40","60","80","100"]
["Need more practice!","Keep trying!","Not bad!","Good work!","Perfect!"]

Completed

0/0

Accuracy

0%

Personalized Analytics only Availble for Logged in users

Analytics below shows your performance in various Mocks on PrepInsta

Your average Analytics for this Quiz

Rank

-

Percentile

0%

Comments