wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Latihan ICT Part 2

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

When use Comment Line in python ?

a)

To explain Python code

b)

To make the code more readable

c)

To prevent execution when testing code

d)

None of Them

2.

How To Write Comment on Python ?

a)

Comments starts with a # for one line

b)

Start and End with (triple quotes) for multiline Comments

c)

Comments starts with a // for one line

d)

Comments starts with a ' for one line

3.

How to write one line comment in python programming?

a)

#This is a comment

print("Hello, World!")

b)

print("Hello, World!") #This is a comment

c)

//this is a comment

d)

'this is a comment

4.

This is Sample of ?

a)

Multi Line Comment

b)

Single Line Comment

c)

Number Value

d)

String Value

5.

Symbol ( +, -, , /, %, **, // ) is group of ?

a)

Arithmetic operators

b)

Assignment operators

c)

Comparison operators

d)

Logical operators

6.

Symbol ( =, +=, -=, /=, %=, *= ) is group of ?

a)

Arithmetic operators

b)

Assignment operators

c)

Comparison operators

d)

Logical operators

7.

if we want to compare whether two objects are equal or not, what operator symbol do we use?

a)

==

b)

=

c)

===

d)

====

8.

"Returns True if Both statements are True". Is this statement from?

a)

"and" Operator

b)

"or" Operator

c)

"Not" Operator

d)

"is" Operator

9.

the Simple "if statement" consist of?

a)

if(condition):

indented Statement Block

b)

if(condition):

Indented statement block for when condition is TRUE

else:

Indented statement block for when condition is FALSE

c)

if(Condition1):

Indented statement block for Condition1

elif(Condition2):

Indented statement block for Condition2

else:

Alternate statement block if all condition check above fails

d)

Not Mentioned

10.

Part of Loop in Python....

a)

For Loop

b)

While Loop

c)

Nested Loop

d)

IF Loop