Python Task

Python Task

12th Grade

18 Qs

quiz-placeholder

Similar activities

Tech Trivia, Part III

Tech Trivia, Part III

7th - 12th Grade

20 Qs

CIW

CIW

9th - 12th Grade

15 Qs

C-Programming Basics

C-Programming Basics

12th Grade

16 Qs

básico de Code

básico de Code

10th - 12th Grade

14 Qs

Microsoft Excel

Microsoft Excel

KG - Professional Development

20 Qs

TRENDS IN ICT

TRENDS IN ICT

12th Grade

14 Qs

Protecting Yourself Online Lesson 8 of the CIW

Protecting Yourself Online Lesson 8 of the CIW

12th Grade

16 Qs

Python Task

Python Task

Assessment

Quiz

Computers

12th Grade

Practice Problem

Easy

Created by

Ayorinde Omojuwa

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?