computer science tests + quizzes questions and Answers with Verified Solutions Latest | Graded A+
setting a starting value for a variable is called - initializing which of the following is NOT true about while loops a. used to find remainders b. use conditions like if statements c. a way of repeating a code d. give us more control over how the program runs - a` loops are used to _____________ code - repeat why do we use WHILE loops? a. because of efficiency b. because computers can do calculations humans can't c. because programs need to make decisions d. because programming is an important skill - a while loops should always be a. calculated b. indentedc. output d. input - indented the two ways to end a loop are a. count variables b. initialization c. condition d. user input - A, D num 19 is an example of - condition we ____________ variables to prevent junk values from being stored in them - initialize c = c + 1 is called - count variable You are writing a loop to print a word entered from the keyboard 15 times. Which of the following is true? A. this will be a loop stopped by counting b. the loop runs until the sum is greater than 100 c. this will be a loop stopped by user input d. none of the above - afor a loop to stop the loop control variable must a. the loop control variable must change b. the loop control variable must be input from the keyboard c. the loop control variable must be true d. the loop control variable must change inside the loop - D in a ____________ loop you do not know ahead of time how many tim
Written for
- Institution
- Computer sciencetests
- Course
- Computer sciencetests
Document information
- Uploaded on
- March 27, 2024
- Number of pages
- 14
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
computer science tests quizzes questions and ans