Python Task

Python Task

12th Grade

18 Qs

quiz-placeholder

Similar activities

Python I/O

Python I/O

9th - 12th Grade

15 Qs

Coding Basics

Coding Basics

11th - 12th Grade

15 Qs

python_1

python_1

5th - 12th Grade

22 Qs

python - Launch Lesson

python - Launch Lesson

7th - 12th Grade

22 Qs

Python String

Python String

12th Grade

20 Qs

Quiz1_7C

Quiz1_7C

3rd Grade - University

15 Qs

edhesive Unit 1 Vocabulary

edhesive Unit 1 Vocabulary

9th - 12th Grade

22 Qs

Grade 8 End of Unit Revision

Grade 8 End of Unit Revision

8th Grade - University

15 Qs

Python Task

Python Task

Assessment

Quiz

Computers

12th Grade

Easy

Created by

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

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?