
Python Task

Quiz
•
Computers
•
12th Grade
•
Easy
Ayorinde Omojuwa
Used 1+ times
FREE Resource
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will be the output of the following code snippet?
x = 10
if x > 5:
print("Greater than 5")
else:
print("Less than or equal to 5")
"Greater than 5"
"Less than or equal to 5"
"x is equal to 5"
"x is greater than 10"
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which is the most appropriate data type for: "13th December"
String
Boolean
Float
Integer
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to insert comments in Python ?
# this is a comment
// this is a comment
/* this is a comment */
4.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
How to create a numeric variable age with a value of 10
age = 10
age = int(10)
age = "10"
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct extension for python files ?
.py
.pyth
.python
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the below operators can be used to compare two numbers
==
><
=
7.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following is true about comments
Comments are used by programmers to document the code
# is used to create a comment in python
''' can be used to create a comment in python
/* */ can be used to crate a comment in python
Python ignores comments.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python - Chpt 1 - Review

Quiz
•
9th - 12th Grade
20 questions
Higher - N5 Software Recap

Quiz
•
12th Grade
14 questions
Python Syntax

Quiz
•
6th - 12th Grade
20 questions
Python Programming Quiz

Quiz
•
9th - 12th Grade
20 questions
Week 8

Quiz
•
12th Grade
20 questions
ASK T2 - Kod Arahan (Python)

Quiz
•
7th Grade - University
15 questions
PCEP Section 1A: Understand fundamental terms and definitions

Quiz
•
12th Grade
16 questions
Test - Python básico II

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade