PYTHON REVISION

PYTHON REVISION

11th Grade

20 Qs

quiz-placeholder

Similar activities

Computer Security Measure

Computer Security Measure

11th Grade - University

19 Qs

STS Informatika

STS Informatika

10th Grade - University

20 Qs

การประมวลผลข้อมูล

การประมวลผลข้อมูล

11th Grade

20 Qs

Multimedia Interaktif

Multimedia Interaktif

KG - 12th Grade

20 Qs

PAS Ganjil Animasi 2D3D

PAS Ganjil Animasi 2D3D

11th Grade

20 Qs

Security and Ethics

Security and Ethics

9th - 12th Grade

17 Qs

Design your website

Design your website

7th - 12th Grade

20 Qs

Tin học 11 chương I

Tin học 11 chương I

1st - 12th Grade

20 Qs

PYTHON REVISION

PYTHON REVISION

Assessment

Quiz

Computers

11th Grade

Hard

Created by

Prema Selvam

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the output be from the following code?
print("Hello" + str(2) + "world!")
Hello world! Hello world!
Hello2world!
Hello Hello world! world!
SyntaxError

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print("12"*3)
What would this print?
36
121212
24
12*3

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would this out put? print(users[2][1])

error

16

brown

smith

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

30

200

1020

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose a function called add() is defined in a module called adder.py. Which of the following code snippets correctly show how to import and use the add() function? Select all that apply.

import add from adder

result = add(2, 3)

from adder import add

result = add(2, 3)

from adder import add

result = adder.add(2, 3)

import add

result = adder.add(2, 3)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This command will open MyFile = open("MyText.txt")

To read the file

To append to the file

To write to the file

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python shell can be in ________________ways

2

3

1

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?