MIND-SWEEPER

MIND-SWEEPER

Assessment

Quiz

Computers

University

Hard

Created by

sadanand Lalagi

Used 5+ times

FREE Resource

Student preview

quiz-placeholder

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What is the maximum length of a python identifier ?

16

128

32

no fixed length is specified

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What will be the output of the following code snippet ?

a=[1,2,3]

a=tuple(a)

a[0]=2

print(a)

(1,2,3)

[2,2,3]

(2,2,3)

Error

3.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

what will be the output of the following code snippet ?

print(2**3 + (5+6)**(1+1))

129

8

121

None of the above

4.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

which of the following statement runs infinitely?

i) for(;;)

ii) for(;true;)

iii) for(;false;)

iv) for(;2==2;)

v) for(int i=1;i>=1;i++)

only i

ii and v

i,ii,and iii

i,ii,iv,and v

i,ii,iii,iv,and v

5.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Tanya is older than Eric.

Cliff is older than Tanya.

Eric is older than cliff.

If the first two statements are true, the third statement is

true

false

uncertain

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

In a four-day period Monday through Thursday each of the following temporary office workers worked only one day, each a different day. Ms. Johnson was scheduled to work on Monday, but she traded with Mr. carter, who was originally scheduled to work on Wednesday. Ms. Falk traded with Mr. Kirk, who was originally scheduled to work on Thursday. After all the switching was done, who worked on Tuesday ?

Ms. Falk

Ms. carter

Mr. kirk

Ms. Johnson

7.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Tickets numbered 1 to 20 are mixed up and then a ticket is drawn at random. what is the probability that the ticket drawn has a number which is a multiple of 3 or 5 ?

2/5

1/2

9/20

8/15

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?