NEW
Font size
WorksheetsLatihan PRA PAS 2021
Total questions: 14
Worksheet time: 14mins
What is Operator in Python?
special symbols in Python that carry out arithmetic or logical computation
someone who selling Token
Someone who answers your calling
someone who provides internet credit
Which one are Arithmetic Operators?
"+", "-", "%"
"AND", "OR", "NOT"
"=", "==", "+="
"IS", "IS NOT"
This is one of the Arithmetic Operators, what name of this operator "%" and what for?
Modulus, The Result is the remainder of dividing the two numbers
Division, The Result is the Division of two numbers
Addition, The Result is the sum of two numbers
Substraction, The Result is the sum of three Numbers
which one are Assignment Operators?
"=", "+=", "-="
"AND", "OR", "NOT"
"+", "-", "/"
"Not", "Is Not"
Which one is Logical Operators?
"+", "-", "%"
"AND", "OR", "NOT"
"=", "==", "+="
"IS", "IS NOT"
Conditional "if" statement in python is?
Python if Statement is used for decision-making operations.
Python if Statement is used for Summarize arithmetic function.
Python if Statement is used for Subtract two numbers.
Python if Statement is used for adding two numbers.
This is one of the Python Comparison Operators, What name of this operator "=="?
Equal
Not Equal
Greater Than
Less Than
What is different between “=” and “==”?
first is meaning "value of", the other is meaning "equal to"
first is meaning "sum of", the other is meaning "greater from"
first is meaning "greater than", the other is meaning "less than"
first is meaning "equal to", the other is meaning "equal to"
"AND" is one of the logical operators, what the meaning of "AND"?
Return true if both statements are true
Return true if one of the statements are true
revers the result, return false if the result is true
none of them
Which one is Comparison Operators?
"+", "-", "%"
"AND", "OR", "NOT"
"!=", "==", ">"
"IS", "IS NOT"
in a conditional statement, there are “if” and “else” statements, what the meaning of those statements?
if : Indented statement block for when the condition is TRUE
else: Indented statement block for when the condition is FALSE
if : Indented statement block for when the condition is FALSE
else : nothing happens
if : nothing happens
else : nothing happens
if : nothing happens
else : Indented statement block for when the condition is FALSE
in a conditional statement, there are “if”, “if-else”, dan “if-….-else”, what is missing?
elif
else
or
and
= 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?
saldo_awal,
saldo_akhir
Pengeluaran,
Pemasukan
9000,
8000
#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")
True
False
