1. Ifthe initial condition of any while loop is false it will still execute once. 2. In the case of an infinite while loop, the while expression (that is, the loop condition) is always true. 3. A counter-controlled loop is used when the exact number of data entries is kaown.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 1TF
icon
Related questions
Question
1. Ifthe initial condition of any while loop is false it will still execute once.
2. In the case of an infinite while loop, the while expression (that is, the loop condition) is always true.
3. A counter-controlled loop is used when the exact number of data entries is known.
4. The control variable in a flag-controlled while loop is an int variable.
5. A break statement is legal in a while loop, but not in a for loop.
6. Void methods have no return data type.
7. Ifa formal parameter is a variable of a primitive data type, then after copying the value of the actual
parameter, there is no connection between the formal and actual parameter.
8. All the methods defined in a class must háve different names.
9. The statement
int () list = new int[15);
creates list to be an array of 14 components because array index starts at 0.
10. When you pass an array as a parameter, the base address of the actual array is passed to the formal parameter.
11. Members of a class are usually classified into three categories: public, private, and static.
12. The methods of a class must be public.
Transcribed Image Text:1. Ifthe initial condition of any while loop is false it will still execute once. 2. In the case of an infinite while loop, the while expression (that is, the loop condition) is always true. 3. A counter-controlled loop is used when the exact number of data entries is known. 4. The control variable in a flag-controlled while loop is an int variable. 5. A break statement is legal in a while loop, but not in a for loop. 6. Void methods have no return data type. 7. Ifa formal parameter is a variable of a primitive data type, then after copying the value of the actual parameter, there is no connection between the formal and actual parameter. 8. All the methods defined in a class must háve different names. 9. The statement int () list = new int[15); creates list to be an array of 14 components because array index starts at 0. 10. When you pass an array as a parameter, the base address of the actual array is passed to the formal parameter. 11. Members of a class are usually classified into three categories: public, private, and static. 12. The methods of a class must be public.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Types of Loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT