Answered step by step
Verified Expert Solution
Question
1 Approved Answer
must be in c++0 Which of the following is a repetition statement? a. if b. do .. while. c. switch d. if .. else. If
must be in c++0
Which of the following is a repetition statement? a. if b. do .. while. c. switch d. if .. else. If x initially contains the value 3, which of the following sets x to ? a. x + 4 = x: b. x =+ 4: c. x += 4: d. x ++ 4: Which of the following statements initializes the unsigned int variable counter to 10? a. unsigned int counter = 10: b. unsigned int counter = {10}: c. both a and b. d. none of the above. What is wrong with the following while loop? while (total 1000) { total = total - 20: } a. There should be a semicolon after while (total 1000). b. The parentheses should be braces. c. Do nothing the code is correct. d. Change total = total - 20 to total = total + 20 The data type bool for Boolean variables: a. Can only be used in a selection statement. b. Can only be used in true and false values. c. Can only be used in values -1, 0 or 1. d. Can only be used to take on any expression as a value. How many times will the following loop print hello? i = 1: while (iStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started