Search Header Logo

IDENTIFY OUTPUT

Authored by shafinar razak

Other

University

Used 1+ times

IDENTIFY OUTPUT
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

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"

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?