
EXAM PREP ITS PYTHON DAY1

Quiz
•
Computers
•
Professional Development
•
Hard
Rainusa Indo
Used 1+ times
FREE Resource
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Memanggil fungsi gross_salary() akan menghasilkan error sintaks.
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Memanggil fungsi gross_salary(pieces=500, pieces_rate=4) akan mengembalikan nilai 2000.
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Review the following code segment
product = 2
n = 5
while (n != 0):
product *= n
print (product)
n = 1
if n == 3:
break
How many lines of output does the code print?
1
10
2
No Output
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You develop a Python application for your company.
You want to add notes to your code so other team members will understand it.
What should you do?
Place the notes after // on any line.
Place the notes within <!-- and --> in any code segment.
Place the notes within /* and */ in any code segment
Place the notes after # on any line.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which code segment should you use at line 03?
while (index <= 10):
while (index < 10):
while index < 10:
while index <= 10:
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which code segment should you use at line 06?
if numbers[index] = 6:
if numbers[index] == 6:
if numbers(index) == 6:
if numbers(index) = 6:
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Review the following code:
x = "apples"
y = "oranges"
z = "bananas"
data = "{1} and {0} and {2}"
print(data.format(z, y, x))
What is the output of the print statement?
Bananas and Oranges and Apples
Apples and Oranges and Bananas
Oranges and Apples and Bananas
Apples and Bananas and Oranges
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Basic 2 Python

Quiz
•
12th Grade - Professi...
21 questions
SKD - Word

Quiz
•
KG - Professional Dev...
20 questions
G1Q1

Quiz
•
Professional Development
20 questions
Quiz 2- Entrada, Saída e Variáveis

Quiz
•
Professional Development
18 questions
SE Practice Quiz

Quiz
•
University - Professi...
20 questions
Python Quiz Testing

Quiz
•
Professional Development
20 questions
C Code Master

Quiz
•
Professional Development
19 questions
Python basics

Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade