MYP2

MYP2

7th Grade

18 Qs

quiz-placeholder

Similar activities

Y8 Python Revision

Y8 Python Revision

6th - 7th Grade

20 Qs

python_1

python_1

5th - 12th Grade

22 Qs

Quiz1_7C

Quiz1_7C

3rd Grade - University

15 Qs

Comouflaged Thought Wizard

Comouflaged Thought Wizard

7th - 8th Grade

20 Qs

Python-қарапайым тапсырмалар

Python-қарапайым тапсырмалар

6th - 8th Grade

20 Qs

Grade 7 Python

Grade 7 Python

7th Grade

20 Qs

Python Basics

Python Basics

6th - 7th Grade

15 Qs

Hacker

Hacker

7th Grade

21 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?