Exam Code: Scripting-and-Programming-Foundations
Exam Questions: 141
Scripting and Programming Foundations
Updated: 03 Sep, 2026
Viewing Page : 1 - 15
Practicing : 1 - 5 of 141 Questions
Question 1

A program allows the user to play a game. At the end of each game, the program asks the user if they want to play again. Which programming structure on its own is appropriate to accomplish this task? 

Options :
Answer: C

Question 2

Which language has extensive support for object-oriented programming? 

Options :
Answer: D

Question 3

What does a function definition consist of? 

Options :
Answer: D

Question 4

An algorithm should output "OK" if a number is between 98.3 and 98.9, else the output is "Not OK." Which test is a valid test of the algorithm? 

Options :
Answer: B

Question 5

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 :
Answer: D

Viewing Page : 1 - 15
Practicing : 1 - 5 of 141 Questions

© Copyrights FreePDFQuestions 2026. All Rights Reserved

We use cookies to ensure that we give you the best experience on our website (FreePDFQuestions). If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the FreePDFQuestions.