python basics

python basics

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Programming Output Worksheet

Programming Output Worksheet

10th Grade

22 Qs

G9CS - Pseudocode Quiz1

G9CS - Pseudocode Quiz1

9th Grade

25 Qs

Effects of ICT on Society

Effects of ICT on Society

11th Grade

15 Qs

Excel Basics - MCQs

Excel Basics - MCQs

11th Grade

15 Qs

Marketing Quiz

Marketing Quiz

12th Grade

15 Qs

Виртуальная и дополненная реальность

Виртуальная и дополненная реальность

11th Grade

15 Qs

A1 How does technology impact us

A1 How does technology impact us

12th Grade

16 Qs

Understanding Levels of Measurement

Understanding Levels of Measurement

12th Grade - University

21 Qs

python basics

python basics

Assessment

Quiz

Information Technology (IT)

9th - 12th Grade

Medium

Created by

Filzah Amjad

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol is used in python to assign values to a variable?
equals =
plus + 
forward slash /
asterisk *

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
In the following code, "city" is an example of a what?
List
Loop
Variable
Array

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

x = 5

y = 6

print(x*y)


The code above displays the following:

11

x*y

Syntax Error

30

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following code do? myAge = int (myAge)

Converts the var (variable) myAge to a string

Converts the var (variable) myAge to a integer

Converts the var (variable) myAge from a integer to a string

Converts the var (variable) myAge to if statement

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the output be from the following code?
print("Hello world!" * 2)
TypeError
Hello world world!
Hello world!Hello world!
Hello world! * 2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

people = ["John", "Rob", "Bob"]

print (people[-1])

what would this result be?

John
Rob
Bob

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of program below?


mariana_islands = ['Saipan', 'Tinian', 'Rota']

mariana_islands.remove('Tinian')

print(mariana_islands)

['Saipan', 'Tinian', 'Rota']

['Tinian', 'Rota']

['Saipan', 'Tinian']

['Saipan', 'Rota']

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?