
A Level Programming Concepts
Authored by Mr Applewhaite
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
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following pseudocode snippets correctly calculates the total of all even numbers within a range entered by the user?
low = input ("Enter the first number in the range") high = input ("Enter the last number in the range") total = 0 for n = low to high -1 if n MOD 2 == 0 then total = total + n endif next n print("Total of even numbers in the range ",total)
low = input ("Enter the first number in the range") high = input ("Enter the last number in the range") total = 0 for n = low to high if n MOD 2 == 1 then total = total + n endif next n print("Total of even numbers in the range ",total)
low = input ("Enter the first number in the range") high = input ("Enter the last number in the range") total = 0 for n = low to high -1 if n MOD 2 == 1 then total = total + n endif next n print("Total of even numbers in the range ",total)
low = input ("Enter the first number in the range") high = input ("Enter the last number in the range") total = 0 for n = low to high if n MOD 2 == 0 then total = total + n endif next n print("Total of even numbers in the range ",total)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a way to make programs easy to understand and maintain?
Meaningful variable names
Comments to explain sections of the program
Modular structure
Using complex and obscure variable names
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the subroutine answerYorN if the user inputs "y"?
"Please enter y or n: "
"You must answer y or n"
"y"
"n"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the subroutine answerYorN do if the user inputs an invalid response?
It terminates the program.
It prints "You must answer y or n" and asks for input again.
It returns the invalid response.
It skips the input and continues.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the subroutine answerYorN?
To calculate the average temperature.
To validate user input as either "y" or "n".
To find the highest temperature.
To complete the trace table.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the difference between passing parameters by value and by reference.
By value: The value is copied into a variable in the subroutine; By reference: The address is passed to the subroutine.
By value: The address is passed to the subroutine; By reference: The value is copied into a variable in the subroutine.
By value: The value is copied into a variable in the subroutine; By reference: The value is copied into a variable in the subroutine.
By value: The address is passed to the subroutine; By reference: The address is copied into a variable in the subroutine.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is meant by modular programming?
Combining multiple programs into one large program.
Splitting a large program up into self-contained subroutines (modules).
Writing a program without using any subroutines.
Using only global variables in a program.
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
15 questions
Digital Etiquette
Quiz
•
4th Grade - University
15 questions
CIW
Quiz
•
9th - 12th Grade
16 questions
C-Programming Basics
Quiz
•
12th Grade
20 questions
UH - 01 VII
Quiz
•
1st - 12th Grade
20 questions
Microsoft Excel
Quiz
•
KG - Professional Dev...
20 questions
Siskomdig Harian
Quiz
•
12th Grade
16 questions
JavaScript Learning Quiz 1
Quiz
•
12th Grade - University
16 questions
A2 Computer Science 4.10 Databases
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade
10 questions
Valentine's Day Trivia
Quiz
•
9th - 12th Grade