InfyTQ Introduction to Programming Quiz 2

Question 1

Time: 00:00:00
What will be the range of the for loop:
for _ in range(10):

0-9

0-9

1-10

1-10

0-10

0-10

Error in code:

Error in code:

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

Start

Question 2

Time: 00:00:00

```a = 16.16
b = len('abcdefgh')
print(a/b)```

What will be the output of the following code:

2.02

2.02

2

2

2.0

2.0

2.2

2.2

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

Start

Question 3

Time: 00:00:00

```x = True

y = False

z = False

if x or y and z:

print("PrepInsta")

else:

print("Python")```

For the given code predict the output:

Python

Python

PrepInsta

PrepInsta

PrepInsta Python

PrepInsta Python

Error

Error

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

Start

Question 4

Time: 00:00:00
Predict the output:
print(ord('b'))

99

99

98

98

97

97

96

96

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

Start

Question 5

Time: 00:00:00
1st released version of python programming was:

0.9.0

0.9.0

1.0.0

1.0.0

0.1.0

0.1.0

1.1.1

1.1.1

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

Start

Question 6

Time: 00:00:00
The output of the given code is:

Tuple = (10, 02, 30, 40)

Tuple.append( (50, 60, 70) )

print(len(Tuple))

4

4

7

7

Error

Error

8

8

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

Start

Question 7

Time: 00:00:00

```t = (1, 2)
print(2 * t) ```

The output of the above code

t t

t t

1, 2

1, 2

(1, 2, 1, 2)

(1, 2, 1, 2)

[1, 2, 1, 2]

[1, 2, 1, 2]

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

Start

Question 8

Time: 00:00:00
```d1 = [1,2,3,4]

d2 = [5,6,7,8]

print(d2>d1)```

Predict output

True

True

False

False

Error

Error

Cannot Compare.

Cannot Compare.

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

Start

Question 9

Time: 00:00:00
The return type for the function id() is

Str

Str

Float

Float

Bool

Bool

Int

Int

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

Start

Question 10

Time: 00:00:00
For the expression 18^19, what will be the output?

16

16

1

1

2

2

19

19

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

Start

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

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%

Completed

0/0

Accuracy

0%