D278 Scripting and Programming Foundations - Set 4 - Part 1
Test your knowledge of technical writing concepts with these practice questions. Each question includes detailed explanations to help you understand the correct answers.
Question 1: What is a variable in programming?
Question 2: What is a constant?
Question 3: Which data type would best store a person's age in whole years?
Question 4: Which data type stores true or false values?
Question 5: What is a string data type used for?
Question 6: What does the assignment operator (=) do in most languages?
Question 7: Which operator tests for equality in most programming languages?
Question 8: What does the modulus operator (%) return?
Question 9: What is the result of 17 % 5?
Question 10: What does the logical AND operator require to evaluate as true?
Question 11: What does the logical OR operator require to evaluate as true?
Question 12: What does the logical NOT operator do?
Question 13: What is the purpose of an if statement?
Question 14: What does an else clause do?
Question 15: What is the purpose of an else-if (elif) clause?
Question 16: What is a switch or case statement used for?
Question 17: What is a loop in programming?
Question 18: When is a for loop most appropriate?
Question 19: When is a while loop most appropriate?
Question 20: What is an infinite loop?
Need Guaranteed Results?
Our exam support service guarantees you'll pass your OA on the first attempt. Pay only after you pass!
Get Exam Support