Quiz- Grade 7 & 8- Python (2nd term)

Quiz- Grade 7 & 8- Python (2nd term)

7th Grade

8 Qs

quiz-placeholder

Similar activities

ICT Python fake quiz

ICT Python fake quiz

7th Grade

6 Qs

Python Beginners Week 6

Python Beginners Week 6

3rd - 12th Grade

13 Qs

print(), int and input() - Python

print(), int and input() - Python

6th - 8th Grade

11 Qs

Python

Python

7th Grade

10 Qs

Python Quiz 8.3

Python Quiz 8.3

6th - 8th Grade

12 Qs

Python Into Quiz

Python Into Quiz

6th - 8th Grade

10 Qs

PE2 Module 3

PE2 Module 3

KG - Professional Development

11 Qs

Python maths

Python maths

6th - 8th Grade

9 Qs

Quiz- Grade 7 & 8- Python (2nd term)

Quiz- Grade 7 & 8- Python (2nd term)

Assessment

Quiz

Computers

7th Grade

Easy

Created by

Daniel Marcos Domingos Manganhe

Used 14+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is Python?

A type of snake

A high-level programming language

A database management system

A web browser

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to check if two values are equal in Python?

=

==

!=

===

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What will the following code output? x = 10 if x > 5: print("Hello!") else: print("Goodbye!")

Hello!

Goodbye!

Nothing

Error

4.

OPEN ENDED QUESTION

3 mins • 3 pts

Write a Python statement to declare a variable called age and assign it the value 16.

Evaluate responses using AI:

OFF

5.

OPEN ENDED QUESTION

3 mins • 2 pts

What is wrong with this code? Fix it. name = "Alice" print("Hello" name)

Evaluate responses using AI:

OFF

6.

OPEN ENDED QUESTION

3 mins • 4 pts

Write a Python program that asks the user for their favorite number and then prints whether it is "Even" or "Odd". (Hint: Use the modulo operator % to check if the number is divisible by 2.)

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

3 mins • 3 pts

What will this code output? Explain why. num1 = 5 num2 = 2 result = num1 * num2 + 3 print(result)

Evaluate responses using AI:

OFF

8.

OPEN ENDED QUESTION

3 mins • 3 pts

Write a Python program that asks the user for their age and prints "You are a teenager" if the age is between 13 and 19 (inclusive), otherwise prints "You are not a teenager".

Evaluate responses using AI:

OFF