Questions 1-3 go together what is the first of the 3 areas


Assignment

Question 1
Questions 1-3 go together. What is the first of the 3 areas of flow for a program?

Question 2
What is the second area of the 3 areas of flow for a program?

Question 3
What is the third of the 3 areas of flow for a program?

Question 4
The one function that every program must contain is ___.

Question 5
A program that takes a program written in a high-level language and translates it into machine code is a ___.

Question 6
A sequence of statements enclosed by braces following the program header is known as the ___ of the program.

Question 7
The following is a valid identifier: LastName

Question 8
The following is a valid identifier: Num1

Question 9
The following is a valid identifier: X

Question 10
The following is a valid identifier: Number 1

Question 11
The following is a valid identifier: HELP

Question 12
Write a declaration for the following: A variable called 'student' to hold a student's last name. (The ' ' are only for identification purposes in the question.)

Question 13
Write a declaration for the following: A variable called 'avg' to hold a student's average with at least 1 decimal place accuracy. (The ' ' are only for clarification within the question.)

Question 14
Rewrite the following statements with appropriate corrections. int x, double y; (Keep your answer to 1 physical line.)

Question 15
Rewrite the following statement with appropriate corrections (assume appropriate declarations have been made): X = 1 + Y

Question 16
Rewrite the following statement with appropriate corrections (Assume that appropriate declarations have been made): A/b = C;

Question 17
What is the result of the following: (1 + 2 * 2) / 2 + 1

Question 18
Given the int variables 'I' and 'J' where I = 4 and J = 17, what is the result of I + J % I

Question 19
Write a valid C++ expression for the following. Assume x and y have been declared as floats. Store the results in the declared float z.

x + Y
------
3

Q7-11 is True or flase

Below is a sample of a fill in the blank program. When you enter the exam, you will be able to fill in the blanks.
#include
#include <______>
using _________ std;
int main ________
{
ofstream outdata;
outdata.________("data.dat");
int x = 3;
___ y = 20;
int z, q;
z = x ____ y; // calculated product of x and y
q = y % x;
cout << z << " " << q;
____ ____ z << " " << q; // echo to file
return 0;
____

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Questions 1-3 go together what is the first of the 3 areas
Reference No:- TGS02456414

Now Priced at $30 (50% Discount)

Recommended (92%)

Rated (4.4/5)