Analyze this problem:
The teller wants to compute the total price of every item. As a programmer, you will ask the teller to input the item code, unit price, and quantity. Compute and display the total price.
Question: How many inputs are there?
Removal - Part 1
Quiz
•
Computers
•
University
•
Hard
Janeth Ugang
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Analyze this problem:
The teller wants to compute the total price of every item. As a programmer, you will ask the teller to input the item code, unit price, and quantity. Compute and display the total price.
Question: How many inputs are there?
1
2
3
4
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Analyze this problem:
The teller wants to compute the total price of every item. As a programmer, you will ask the teller to input the item code, unit price, and quantity. Compute and display the total price.
Question: What is the formula in computing the total price?
totalPrice=unitPrice*quantity
totalPrice*=unitPrice*quantity
totalPrice=unitPrice+quantity
totalPrice+=unitPrice+quantity
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Analyze this problem:
The teller wants to compute the total price of every item. As a programmer, you will ask the teller to input the item code, unit price, and quantity. Compute and display the total price.
Question: How many output(s) is/are there?
0
1
2
3
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Analyze this problem:
The teller wants to compute the total price of every item. As a programmer, you will ask the teller to input the item code, unit price, and quantity. Compute and display the total price.
Question: Which of the following is an incorrect statement to input the quantity?
quantity=int(input("Quantity: "))
quantity=int(input("Qty: "))
quantity=int(input())
quantity=int(input("Enter quantity: ")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Analyze this problem:
The teller wants to compute the total price of every item. As a programmer, you will ask the teller to input the item code, unit price, and quantity. Compute and display the total price.
Question: Which of the following is an incorrect statement to display the total price?
print(totalPrice)
print("Total:", totalPrice)
print(Total = totalPrice)
print("totalPrice", totalPrice)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Analyze this problem:
Input 100 persons ages and store them in an array. Count how many persons are young (age below 18), adult (age between 18 to 59), and senior citizens (age at least 60). Display the results.
Question: How many inputs are there?
3
4
99
100
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Analyze this problem:
Input 100 persons ages and store them in an array. Count how many persons are young (age below 18), adult (age between 18 to 59), and senior citizens (age at least 60). Display the results.
Question: Which of the statements below will determine if the person is adult?
age > 18 || age < 60
age >= 18 || age < 60
age > 18 and age < 60
age >= 18 and age < 60
20 questions
AI BootCamp: 2024 Edition- Session 1
Quiz
•
University
15 questions
Quiz 4 Week 6 Repetition Structures (For)
Quiz
•
University
20 questions
LOOKUP
Quiz
•
9th Grade - University
15 questions
Python
Quiz
•
6th Grade - University
24 questions
Javascript Basics
Quiz
•
7th Grade - University
19 questions
SQL4-Join/aggregate functions/group by
Quiz
•
University
20 questions
python_4_Vivek
Quiz
•
University
16 questions
Arithmetic Types Declare Initialize Relation Logical Ops
Quiz
•
9th Grade - University
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade