
2.2.1 (a) Using variables and constants
Authored by RHSC Computing
Computers
12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
John is running a retail store. He wants to apply a discount on a product. What is the purpose of the Discount subroutine in his billing software?
To calculate the total price of the product
To calculate the discount rate on the product
To calculate the discounted price of the product
To calculate the final price of the product after tax
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
John is running a retail store. He wants to apply a discount on a product. What are the parameters he should consider in the Discount subroutine?
Total price of the product and discount rate
Original price of the product and discount amount
Amount of the product and discount percentage
Value of the product and discount ratio
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
John is shopping during a sale. What is the formula he should use to calculate the discounted price of an item?
Total price - Discount rate
Total price * Discount rate
Total price / Discount rate
Total price - (Total price * Discount rate/100)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
John went shopping and his total bill was $60. He had a discount coupon of 50%. How much did he pay after applying the discount?
$10
$20
$30
$40
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'Main' function in a shopping cart application?
To calculate the discount on the items in the cart
To display the final price after applying the discount
To execute the 'Discount' function that calculates the discount based on the items in the cart
To initialize variables and constants used in the application
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
John has 10 apples. He buys 20 more. How many apples does John have now?
10
20
30
40
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
John is running a retail store. He has a subroutine named 'Discount' in his billing software that calculates the discount on the total bill amount. What is the data type of the 'Total' parameter in the 'Discount' subroutine?
int
double
float
decimal
Access all questions and much more by creating a free account
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
14 questions
Pre-test: On Online searching by Innovative Teaching Ideas)
Quiz
•
6th - 12th Grade
10 questions
Scratch
Quiz
•
KG - Professional Dev...
10 questions
Von Neumann Vs Harvard Architecture
Quiz
•
12th Grade
15 questions
Cyber Security KS4
Quiz
•
8th - 12th Grade
15 questions
Linux-2 Quiz 2 -- LAMP
Quiz
•
1st - 12th Grade
11 questions
Youtube
Quiz
•
4th Grade - University
15 questions
Empowerment Technologies
Quiz
•
KG - 12th Grade
15 questions
Excel
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
•
9th - 12th Grade
8 questions
Momentum and Collisions
Lesson
•
9th - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade