unit 1 and 2 - Quiz

unit 1 and 2 - Quiz

11th Grade

30 Qs

quiz-placeholder

Similar activities

[AP CSP] Programming Lesson 1 - Input/Output, Data Types

[AP CSP] Programming Lesson 1 - Input/Output, Data Types

9th - 12th Grade

25 Qs

8th Grade (Programming B)

8th Grade (Programming B)

8th - 12th Grade

25 Qs

CPM2 Quiz Review

CPM2 Quiz Review

10th - 12th Grade

25 Qs

Python

Python

11th Grade

26 Qs

Python Basics-01

Python Basics-01

9th - 12th Grade

32 Qs

Python Lessons 1 & 2 Review

Python Lessons 1 & 2 Review

9th - 12th Grade

26 Qs

Python L1 Programming Challenge

Python L1 Programming Challenge

1st - 12th Grade

30 Qs

Python for Absolute Beginners

Python for Absolute Beginners

8th - 12th Grade

25 Qs

unit 1 and 2 - Quiz

unit 1 and 2 - Quiz

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Dr. 973

Used 2+ times

FREE Resource

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

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?