Python2

Python2

8th Grade - University

15 Qs

quiz-placeholder

Similar activities

DreamWeaver CS6

DreamWeaver CS6

University

20 Qs

Arduino_Quiz

Arduino_Quiz

12th Grade

20 Qs

G8_Ch2_Windows Movie Maker

G8_Ch2_Windows Movie Maker

8th Grade

15 Qs

Python Syntax II

Python Syntax II

10th Grade

16 Qs

ICT Grade 8 Model exam Altaluq private school Excel

ICT Grade 8 Model exam Altaluq private school Excel

8th Grade

20 Qs

Контрольная Программирование 8 класс

Контрольная Программирование 8 класс

8th Grade

13 Qs

สอบย่อย ครั้งที่ 1 (BC.2/2)

สอบย่อย ครั้งที่ 1 (BC.2/2)

11th Grade

10 Qs

Django-quiz

Django-quiz

5th Grade - University

20 Qs

Python2

Python2

Assessment

Quiz

Computers

8th Grade - University

Medium

Created by

Opuere Falabi

Used 12+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Change the following line of code to a comment.

print("Hello World")

+print("Hello World")

#print("Hello World")

&print("Hello World")

print("Hello World")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following Python operators is used for variable assignment?

=

+

/

*

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a data type in Python?

Integer

String

Float

Figures

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do we use the float() function for?

To change a value to float

To change a value to a string

To change a value to an integer

None of the Above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code on the Python Shell?

a = 10

b = 2

c = a/b

print(c)

2

4

1

5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code on the python shell 5+3-5?

3

-3

5

-5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of comment can you see below?

#This is a comment

#written in

#more than just one line

Line comment

commenters

comment

Multi Line comment

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?