1. For the declarations shown below, which of the following could not be a valid
ID: 3539401 • Letter: 1
Question
1. For the declarations shown below, which of the following could not be a valid statement?struct emprec
{
string name;
int id;
float salary;
};
emprec emp1, emp2;
char ch1;
int num;
bool flag; A. emprec.id = 12345; B. emp1.salary *= 1.05; C. ch1 = emp2.name[0]; D. cout << emp1.salary; E. cin >> emp2.name[3]; 2.What is the complement of the following expression?
n || a <= b && c != 100 A. !n || a > b || c == 100 B. !(n && (a > b || c > 100)) C. !n && (a > b || c == 100) D. !(n || (a > b || c == 100)) E. None of the above. 3.What type is usually used for the variable in a for loop? A. int B. float C. char D. enumerated E. double 4. A function heading declares the name and type of the function as well as the name and type of its ____________ arguments.
A. formal
B. actual
C. variable
D. constant
E. type
5. The ____________ function can be used to read the white spaces in a stream. A. read B. get C. put D. find E. cin 1. For the declarations shown below, which of the following could not be a valid statement?
struct emprec
{
string name;
int id;
float salary;
};
emprec emp1, emp2;
char ch1;
int num;
bool flag; emprec.id = 12345; emp1.salary *= 1.05; ch1 = emp2.name[0]; cout << emp1.salary; cin >> emp2.name[3]; 2.What is the complement of the following expression?
n || a <= b && c != 100 A. !n || a > b || c == 100 B. !(n && (a > b || c > 100)) C. !n && (a > b || c == 100) D. !(n || (a > b || c == 100)) E. None of the above. 3.What type is usually used for the variable in a for loop? A. int B. float C. char D. enumerated E. double 4. A function heading declares the name and type of the function as well as the name and type of its ____________ arguments.
A. formal
B. actual
C. variable
D. constant
E. type
5. The ____________ function can be used to read the white spaces in a stream. A. read B. get C. put D. find E. cin !n || a > b || c == 100 !(n && (a > b || c > 100)) !n && (a > b || c == 100) !(n || (a > b || c == 100)) None of the above. 3.What type is usually used for the variable in a for loop? A. int B. float C. char D. enumerated E. double 4. A function heading declares the name and type of the function as well as the name and type of its ____________ arguments.
A. formal
B. actual
C. variable
D. constant
E. type
int float char enumerated double 4. A function heading declares the name and type of the function as well as the name and type of its ____________ arguments.
A. formal
B. actual
C. variable
D. constant
E. type
A function heading declares the name and type of the function as well as the name and type of its ____________ arguments.
A. formal
B. actual
C. variable
D. constant
E. type
formal
actual
variable
constant
type
The ____________ function can be used to read the white spaces in a stream. read get put find cin A. emprec.id = 12345; B. emp1.salary *= 1.05; C. ch1 = emp2.name[0]; D. cout << emp1.salary; E. cin >> emp2.name[3]; 2.What is the complement of the following expression?
n || a <= b && c != 100 A. !n || a > b || c == 100 B. !(n && (a > b || c > 100)) C. !n && (a > b || c == 100) D. !(n || (a > b || c == 100)) E. None of the above. 3.What type is usually used for the variable in a for loop? A. int B. float C. char D. enumerated E. double 4. A function heading declares the name and type of the function as well as the name and type of its ____________ arguments.
A. formal
B. actual
C. variable
D. constant
E. type
5. The ____________ function can be used to read the white spaces in a stream. A. read B. get C. put D. find E. cin
Explanation / Answer
emprec.id = 12345;!n && (a > b || c == 100)
int
variable
get
!n && (a > b || c == 100)
int
variable
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.