Search Header Logo
Python quiz

Python quiz

Assessment

Presentation

Computers

6th - 12th Grade

Practice Problem

Medium

Created by

Ahmed Samy

Used 37+ times

FREE Resource

3 Slides • 8 Questions

1

Python quiz

by ahmed samy

Slide image

2

Multiple Choice

1. What is the word used to display numbers and text on the screen?

1

print

2

input

3

output

4

command

3

Multiple Choice

2. What is a variable?

1

A box(memory location) where you store values

2

a type of graphics

3

Data type

4

a type of memory

4

Multiple Choice

4. What is the name of the programming language we are learning?

1

Scratch

2

Python

3

Pie thin

4

Scribble

5

Multiple Choice

6. What will be the output?

name = 'Dave'

greeting = "Good morning" + name

print (greeting)

1

Good morning 'Dave'

2

Good morning Dave

3

Good morning name

4

Good morning + Dave

6

Multiple Choice

Question image
1

You can buy some chocolate

2

You are rich!

3

Get a job!

4

You almost have enoughGet a job!

7

Multiple Choice

The following code is used to create a variable and store a value. Why will it NOT work?

my number = 36

1

The variable can't store a number

2

A variable name cannot have any spaces

3

There variable name can't be called my number

4

The equals symbol should be at the beginning of the line

8

Multiple Choice

What is the output of following code?

list = [ 'Tech', 404, 3.03, 'Beamers', 33.3 ]

print list[1:3]

1

['Tech', 'Beamers']

2

[404, 3.03]

3

[ 'Tech', 404, 3.03, 'Beamers', 33.3 ]

9

Multiple Choice

What is the value of colors[2]?

colors = ['red', 'orange', 'yellow', 'green', 'blue', 'indigo', 'violet']

1

orange

2

yellow

3

blue

4

indigo

10

Create list to have the prime numbers and create for loop to print all the items

Output :


These are the first four prime numbers

2

3

5

7


11

Good Luck

Ahmed Samy

Python quiz

by ahmed samy

Slide image

Show answer

Auto Play

Slide 1 / 11

SLIDE