Determine the name of the loop control variable

Assignment Help C/C++ Programming
Reference no: EM131743053

QUESTION 1
Given the code below, determine the name of the loop control variable
BEGIN
Declare Integer x = 1
While ( x <= 5 ) Do
Input "Enter a number: ", x
Set x = x + 2
End While
END
Ans:_________

QUESTION 2
Determine the initial value for the loop control variable given the code below.
BEGIN
Declare Integer x = 1
Set x = 13
While ( x <= 5 )
Input "Enter a number: ", x
Set x = x+ 2
End While
END
Ans:___________

QUESTION 3
Determine the value by which the loop control variable is updated given the code below.
BEGIN
Declare Integer x = 13
While ( x <= 5 )
Input "Enter a number: ", x
Set x = x - 2
End While
END
Ans: ___________

QUESTION 4
Given the code below, determine the number of iterations the were performed by the looping structure.
BEGIN
Declare Integer x = 1
While ( x <= 5 )
Set x = x+ 2
End While
Display x
END

A.1
B.2
C.3
D.4


QUESTION 5
Given the code below, determine the number of iterations the were performed by the looping structure.
BEGIN
Declare Integer x = 13
While ( x <= 5 )
Set x = x+ 2
End While
Display x
END

A.None
B.1
C.2
D.3


QUESTION 6
Given the code below, determine the number of iterations the were performed by the looping structure.
BEGIN
Declare Integer x = 5
While ( x <= 5 )
Display "Hello World! "
End While
Display x
END

A.None
B.1
C.3
D.Infinite number of times [Endless Loop]


QUESTION 7
Given the code below, determine the output being generated after executing it.
BEGIN
Declare Integer x = 1
While ( x <= 5 )
Display x
Set x = x + 2
End While
END

A.1, 2, 3, 4, 5
B.1, 3, 5
C.1, 3, 5, 7
D.1, 2, 3, 4, 5, 6


QUESTION 8
Given the code below, determine the output being generated as a result of executing it.
BEGIN
Declare Integer x = 11
While ( x > 5 )
Display x
Set x = x - 5
End While
END

A.11, 6
B.11, 10, 9, 8, 7, 6, 5
C.11, 10, 9, 8, 7, 6
D.6, 10

 

Reference no: EM131743053

Questions Cloud

Discuss an emerging marketing trend that may affect business : Compare and contrast how culture is likely to impact domestic marketing strategies versus what the company may encounter .
Analyze what is the purpose of a code of conduct : Answer the following questions: Analyze what is the purpose of a code of conduct? Why is it important for a company to have a written code of conduct?
Find probability that national percentage is true in area : Who's the boss? The 2000 Census revealed that 26% of all firms in the United States are owned by women. You call some firms doing business locally.
Identify the relevant elements to include in code of conduct : Identify the relevant elements to include in the code of conduct? Apply concepts from the course readings to support your recommendation.
Determine the name of the loop control variable : Determine the name of the loop control variable - Determine the initial value for the loop control variable and Determine the value by which the loop control
Analyze a multifamily investment property : Go to How to Use the 50% Rule to Analyze a MultiFamily Investment Property and watch the video.
Probability that all kids would get the same-color shirt : Why was he so surprised? If each age group uses the same 4 colors, what is the probability that all four kids would get the same-color shirt?
Selecting a carton with a smashed? corner : Are the events? "selecting a carton with a? puncture" and? "selecting a carton with a smashed? corner" mutually? exclusive? Explain.
Contrast the poetry of adrienne rich with emily dickinson : Compare or contrast the poetry of Adrienne Rich with Emily Dickinson

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd