Free Scripting-and-Programming-Foundations Practice Test Questions and Answers (2026)
Q: 1
Which is one characteristic of an object-oriented language that is not a characteristic of a procedural
or functional language?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 2
What is an example of an algorithm?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 3
Which expression has a values equal to the rightmost digit of the integer q = 16222?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 4
An algorithm to calculate the positive difference in two given values, x and y, uses the steps shown. 
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 5
Which language has extensive support for object-oriented programming?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 6
Which expression has a value equal to the rightmost digit of the integer q = 7777?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 7
A programmer is writing a simu-lation for a physical experiment. Which phase of the agile approach
is being carried writing new procedural code and eliminating certain function calls?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 8
The steps in an algorithm to build a picnic table are given:
Measure and mark the lumber cuts that need to be made.
Buy the needed materials.
Determine the needed materials.
Cut the lumber to the proper dimensions.
Assemble the pieces and paint.Which two steps of the algorithm should be switched to make the
algorithm successful?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 9
Which kind of languages are C, C++ and Java?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 10
A program steps through an array and adds up all the numbers stored in the array. What is the
appropriate individual control structure that should be used?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 11
What is the out of the given pseudocode?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 12
One requirement for the language of a protect is that it is based on a series of method calls.
When type of language is characterized in this way?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 13
Which data type should be used to hold the value of a person's body temperature in Fahrenheit
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 14
HOTSPOT Oder the tasks needed to safely replace a lamp's light bulb from first (1) to last (4). Select your answer from the pull down list.
Your Answer
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 15
Which characteristic distinguishes an object-oriented language from other languages?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 16
Consider the given function:
function K(string s1, string s2)
Put s1 to output
Put " and " to output
Put s2 to output
What is the total output when K("sign", "horse") is called 2 times?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 17
A programmer is writing code using C. Which paradigm could the programmer be using?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 18
The steps in an algorithm to calculate the positive difference in given values, x and y, are given in no
particular order:
Put Diff to output.
Set Diff = x - y.
If y > x, set Diff = y - x.
Declare variable Diff.What is the first step of the algorithm?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 19
An algorithm should output ‘’OK’’ if a number is between 98.3 and 98.9, else the output is ‘’Net OK’’
Which test is a valid test of the algorithm?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 20
Which action occurs the design phase of an agile process?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Question 1 of 20

