Quiz 2

Quiz 2

University

25 Qs

quiz-placeholder

Similar activities

1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni

1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni

University - Professional Development

20 Qs

Closing entries

Closing entries

University

20 Qs

Digital introductions

Digital introductions

University

20 Qs

PARC Linux Basic Part 2

PARC Linux Basic Part 2

University

20 Qs

CSS Pseudo dan CSS Grid System

CSS Pseudo dan CSS Grid System

University

20 Qs

CORLANG Week6-7

CORLANG Week6-7

10th Grade - University

20 Qs

Chapter 8. Securing Network Media and Devices

Chapter 8. Securing Network Media and Devices

University

20 Qs

Quiz No. 3 (Finals)

Quiz No. 3 (Finals)

University

20 Qs

Quiz 2

Quiz 2

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Vineela Allada

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

  1. What will be the output of the following Python program?

8

2

1

5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code snippet?

z=set('abc$def')

'a' in z

Error

No output

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

print("Hello {0[0]} and {0[1]}".format(('foo', 'bin')))

Hello (‘foo’, ‘bin’) and (‘foo’, ‘bin’)

Hello foo and bin

Error

None of the mentioned

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to read all the characters?

Read()

Readcharacters()

Readall()

readchar()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following are the modes of both writing and reading in binary format in file?

wb

w

wb+

w+

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what does ~~~~~~~5 evaluate to ?

+11

-5

+5

-11

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what will be the output of the following code?

x=1234

reg="integers:....%d...%-6d...%06d"%(x,x,x)

print(reg)

error

integers:....1234...1234  ...123400
integers:....1234...1234  ...001234
integers:....1234...1234...1234

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?