MYP2

MYP2

7th Grade

18 Qs

quiz-placeholder

Similar activities

Python_2R

Python_2R

KG - Professional Development

20 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

Intro to Python

Intro to Python

6th - 8th Grade

20 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Python basics

Python basics

2nd - 9th Grade

20 Qs

python String and comment

python String and comment

3rd Grade - University

13 Qs

Python

Python

7th - 8th Grade

13 Qs

Python Basics

Python Basics

KG - University

16 Qs

MYP2

MYP2

Assessment

Quiz

Computers

7th Grade

Hard

Created by

Fatema Dhorajiwala

Used 3+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

An _______ is a set of precise instructions, expressed in some sort of language.

program

algorithm

plan

sequence

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Who developed Python Programming Language?

  1. Guido van Rossum

  1. Wick van Rossum

  1. Rasmus Lerdorf

  1. Niene Stom

Answer explanation

Python language is designed by a Dutch programmer Guido van Rossum in the Netherlands.

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is the correct extension of the Python file?

.python

.pl

.py

.p

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the value of the following Python expression?

4 + 3 % 5

7

2

4

1

Answer explanation

he order of precedence is: %, +. Hence the expression above, on simplification results in 4 + 3 = 7. Hence the result is 7.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is a correct syntax to output "Hello World" in Python?

echo "Hello World"

print("Hello World")

p("Hello World")

echo("Hello World")

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is used to define a block of code in Python language?

Indentation

Key

Brackets

All of the above

Answer explanation

In Python, to define a block of code we use indentation. Indentation refers to whitespaces at the beginning of the line.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you start writing an if statement in Python?

if x > y:     

if x > y then:

if (x > y)

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?