Fundamentals of Python

Fundamentals of Python

9th - 12th Grade

13 Qs

quiz-placeholder

Similar activities

Python

Python

7th - 9th Grade

12 Qs

Python basics

Python basics

9th - 12th Grade

16 Qs

Python - Quiz

Python - Quiz

9th - 11th Grade

17 Qs

year 8 lesson 2 quiz - python

year 8 lesson 2 quiz - python

8th - 10th Grade

14 Qs

Foundations of Programming

Foundations of Programming

9th - 10th Grade

18 Qs

python String and comment

python String and comment

3rd Grade - University

13 Qs

Python

Python

9th Grade

15 Qs

Python Basics

Python Basics

KG - University

16 Qs

Fundamentals of Python

Fundamentals of Python

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Evelyne Iradukunda

Used 1+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python is an example of a:

Text-based programming language

Visual-based programming language

Block-based programming language

Language written in JavaScript

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the word (command) used to display numbers and text on the screen?

Input

Output

Print

Command

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will the output be from the following code?
print(Hello world!)
Hello world!
SyntaxError
Hello world
print(Hello world!)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A syntax error means your code has a 'grammar' mistake or you used symbols/operations

incorrectly

False

True

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following cannot be used in a print statement

" " (speech marks)

' ' (apostrophes)

( ) round brackets

[ ] square brackets

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python?

1variable

variable_1

variable-1

variable 1

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

To display the following on screen Hello World! the following command should be used:

print(Hello World!)

print("Hello World" + !)

print("Hello World!")

print"(Hello World!)"

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?