Introduction to Python

Introduction to Python

KG - University

25 Qs

quiz-placeholder

Similar activities

machineLearning Test

machineLearning Test

Professional Development

20 Qs

STANLEY PUBQUIZ

STANLEY PUBQUIZ

1st Grade

20 Qs

Grade 5: Unit 13 - Lesson 1

Grade 5: Unit 13 - Lesson 1

3rd Grade

20 Qs

Pra UPS 2

Pra UPS 2

University

20 Qs

Class 1 L-  3 & 4.  CW Practice questions

Class 1 L- 3 & 4. CW Practice questions

1st Grade

20 Qs

ICT and SST Week Quiz_Grade 6

ICT and SST Week Quiz_Grade 6

6th Grade

20 Qs

Yr7- Understanding computers Lessons 1-3

Yr7- Understanding computers Lessons 1-3

7th - 11th Grade

20 Qs

DWDM-2

DWDM-2

University

20 Qs

Introduction to Python

Introduction to Python

Assessment

Quiz

Computers

KG - University

Practice Problem

Hard

Created by

Tim Miller

Used 742+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

What kind of programming language is Python?

High Level  & Object Orientated
Low Level & Object Orientated
High Level & Procedural
Low Level & Procedural

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

How would would you print a text string?

output "Hello!"
print "Hello!"
print (Hello!)
output (Hello!)

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

How would you assign an integer to a variable?

new_var = 4
new_var == 4
new_var = "4"
new var "4"

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

What are the 4 main datatypes used in python?

Text, Image, Boolean & Number
Number, String, Text & Boolean
String, Integer, Float & Boolean
Text, String, Integer & Float

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

Changing the value of a variable e.g. from new_var = 5 to new_var = 10 is called?

Reassignment
Switching
Initiating
Re-initiating 

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

The variable new_var = 7.  To print the value of new_var, which statement would you use?

output "new_var"
print new_var
print "new_var"
output "7"

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

Your code will not work unless you indent and format code properly.  Another word used for indenting is..?

whitespace
alignment
assignment
initiation

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?