
IDENTIFY OUTPUT
Quiz
•
Other
•
University
•
Practice Problem
•
Easy
shafinar razak
Used 1+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify output:
Create a program that will ask the user to key in a code (1-3). Based on the inserted code, the program will provide the user with the description of the corresponding fruit as stated in the table below. If the input code is invalid (not between 1 and 3), the program should display the "Invalid code" message.
message "Apple: Sweet and nutritious." or "Banana: A great source of potassium." or "Orange: Refreshing and full of vitamin C." or none.
message "Apple: Sweet and nutritious." or "Banana: A great source of potassium." or "Orange: Refreshing and full of vitamin C." or "Invalid code"
Apple: Sweet and nutritious. or Banana: A great source of potassium or Orange: Refreshing and full of vitamin C or invalid code
message "Apple: Sweet and nutritious." or "Banana: A great source of potassium." or "Orange: Refreshing and full of vitamin C."
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify output:
Sheena was asked to do an assignment; she has to develop a program that can calculate average and total of odd numbers starting from 9 to 99.
average and total
9 to 99
none
average, total
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify output:
The teacher needs to assign grades based on students' exam scores. A score between 60 and 100 points is considered passing. If a student's score is between this range, display the message "You passed the exam."
display message You passes the exam
You passes the exam or none
message "You passes the exam" or none
message "You passes the exam"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify output:
A toy store sells action figures for RM15.00 each and dolls for RM10.00 each. Calculate and display the total cost for a customer who buys a certain number of action figures and dolls.
total of action figures, total dolls
total cost
total 15.00, total 10.00
calculate total cost
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify output:
A supermarket sells milk for RM3.00 per liter and bread for RM2.00 per loaf. If a customer buys more than 5 liters of milk, they receive a 10% discount on milk; otherwise, they pay the full price. Calculate and display the total cost for a customer who buys a certain number of milk and bread.
10% discount
total cost
quantity milk, quantity bread
total cost for customer who buys a certain number of milk and bread
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify output:
A grocery store sells various fruits with different prices. Calculate and display the total price to be paid by a customer based on the fruit type and quantity. Additionally, every purchase made by a customer is eligible for a 5% discount. The following is the price list of selected fruits sold at the grocery store.
5% discount
fruit type, quantity
total price
total price to be paid by a customer
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify output:
The manager of Sweet Treats Bakery wants a program to calculate the total price of pastries purchased (quantity x pastry price) and count the number of customers who make purchases in a day. The program will stop when the user enters -999 for the pastry price. At the end, the program will display the total price and the number of customers.
total price, number of customers
calculate total price and number of customer
total price and number of customer
display the total price and number of customers
message "total price" or "number of customer"
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
11 questions
Ant science
Quiz
•
5th Grade - University
10 questions
7BUSS007C - 1
Quiz
•
University
11 questions
Drug For Anti-Hypertension
Quiz
•
University
10 questions
indirect taxes
Quiz
•
University
15 questions
PLANE TABLE SURVEYING
Quiz
•
University
10 questions
Linguistics (I): Course Introduction
Quiz
•
University
17 questions
Managing Current Records
Quiz
•
University
10 questions
Czech Republic Quiz
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Other
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
