wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Latihan PRA PAS 2021

Total questions: 14

Worksheet time: 14mins

Name
Class
Date
1.

What is Operator in Python?

a)

special symbols in Python that carry out arithmetic or logical computation

b)

someone who selling Token

c)

Someone who answers your calling

d)

someone who provides internet credit

2.

Which one are Arithmetic Operators?

a)

"+", "-", "%"

b)

"AND", "OR", "NOT"

c)

"=", "==", "+="

d)

"IS", "IS NOT"

3.

This is one of the Arithmetic Operators, what name of this operator "%" and what for?

a)

Modulus, The Result is the remainder of dividing the two numbers

b)

Division, The Result is the Division of two numbers

c)

Addition, The Result is the sum of two numbers

d)

Substraction, The Result is the sum of three Numbers

4.

which one are Assignment Operators?

a)

"=", "+=", "-="

b)

"AND", "OR", "NOT"

c)

"+", "-", "/"

d)

"Not", "Is Not"

5.

Which one is Logical Operators?

a)

"+", "-", "%"

b)

"AND", "OR", "NOT"

c)

"=", "==", "+="

d)

"IS", "IS NOT"

6.

Conditional "if" statement in python is?

a)

Python if Statement is used for decision-making operations.

b)

Python if Statement is used for Summarize arithmetic function.

c)

Python if Statement is used for Subtract two numbers.

d)

Python if Statement is used for adding two numbers.

7.

This is one of the Python Comparison Operators, What name of this operator "=="?

a)

Equal

b)

Not Equal

c)

Greater Than

d)

Less Than

8.

What is different between “=” and “==”?

a)

first is meaning "value of", the other is meaning "equal to"

b)

first is meaning "sum of", the other is meaning "greater from"

c)

first is meaning "greater than", the other is meaning "less than"

d)

first is meaning "equal to", the other is meaning "equal to"

9.

"AND" is one of the logical operators, what the meaning of "AND"?

a)

Return true if both statements are true

b)

Return true if one of the statements are true

c)

revers the result, return false if the result is true

d)

none of them

10.

Which one is Comparison Operators?

a)

"+", "-", "%"

b)

"AND", "OR", "NOT"

c)

"!=", "==", ">"

d)

"IS", "IS NOT"

11.

in a conditional statement, there are “if” and “else” statements, what the meaning of those statements?

a)

if : Indented statement block for when the condition is TRUE

else: Indented statement block for when the condition is FALSE

b)

if : Indented statement block for when the condition is FALSE

else : nothing happens

c)

if : nothing happens

else : nothing happens

d)

if : nothing happens

else : Indented statement block for when the condition is FALSE

12.

in a conditional statement, there are “if”, “if-else”, dan “if-….-else”, what is missing?

a)

elif

b)

else

c)

or

d)

and

13.

= 9000

= 8000

pengeluaran = saldo_awal - saldo_akhir

if(pengeluaran > 7000):

print("Pengeluaran Anda Sangat Banyak ")

elif(pengeluaran > 4000 and pengeluaran < 7000):

print("Pengeluaran Anda Rata2 ")

else:

print("Pengeluaran Anda Sedikit ")


what is missing from the pseudo code above?

a)

saldo_awal,

saldo_akhir

b)

Pengeluaran,

Pemasukan

c)

9000,

8000

d)

print

14.

#This Code True or False ?

bilangan_1 = int(input("masukan bilangann 1: "))

operator = input("masukan operator ")

bilangan_2 = int(input("masukan bilangan 2: "))

if(operator == '+'):

hasil = bilangan_1 + bilangan_2

print(hasil)

elif(operator == '-'):

hasil = bilangan_1 - bilangan_2

print(hasil)

elif(operator == '*'):

hasil = bilangan_1 * bilangan_2

print(hasil)

elif(operator == '/'):

hasil = bilangan_1 / bilangan_2

print(hasil)

elif(operator == '%'):

hasil = bilangan_1 % bilangan_2

print(hasil)

else:

print("perintah yang dimasukan salah")

a)

True

b)

False