Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 (i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions