Search Header Logo

unit 1 and 2 - Quiz

Authored by Dr. 973

Computers

11th Grade

Used 2+ times

unit 1 and 2 - Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Predict the output of the following Python Program.

ELPPA

elppa

apple

APPLE

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

  1. d = {"john":40, "peter":45}

  2. print(list(d.keys()))

[“john”, “peter”]

[“john”:40, “peter”:45]

(“john”, “peter”)

(“john”:40, “peter”:45)

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(('Rose', 'Jasmine')))

None

Hello Rose and Jasmine

Error

Hello (‘Rose’, ‘Jasmine’) and (‘Jasmine’, ‘Rose’)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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


  1. d1 = {"john":40, "peter":45}

  2. d2 = {"john":466, "peter":45}

  3. d1 == d2

False

True

None

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Recognize the output of the following Python Program

I am good student good of Karunya University

I am good student of Karunya University

I am good good student of Karunya University

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Find the operator used to verify the absence of a substring in a Python string.

!contains

notcontains

! in

not in

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Find the file method that is used to read the entire contents of a file in a single operation?

read

readline

open

for loop

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?

Discover more resources for Computers