The questions of Test_1

with two answers - one correct (yes) and one incorrect (no)

Mark the correct and incorrect assertions about computers and programming.
(yes) Assembler is processor dependent low-level language.
(no)  Logic errors cause an interrupt in the compilation process.
 
Mark the valid and invalid variable names (identifiers in C++).
(yes)
no_yes
(no) 
low-level

Mark the syntax correct and incorrect variable definition statements.
(yes)
int prime = 22;
(no) 
dimes = 1;

Mark the correct and incorrect input and output statements. Suppose that all variables used in the expressions are defined and initialized properly.
(yes)
cout << "Hello\n";
(no) 
cin << dimes;

Mark the correct and incorrect assignment statements. The variables
k, count and n have int type; the variables total and x have double type; the variables sub and s have string type.
(yes)
k = 1 + 2*numbers;
(no) 
int n = m * 100;

Mark the syntax correct and incorrect arithmetic expressions. All names are variables of type
int.
(yes)
cents - 1/counts
(no)
\alpha % 2

Mark the syntax correct and incorrect arithmetic expressions. All symbolic names denote
double type variables.
(yes)
num * t2 / 55
(no)
2 * t % (t + 1 )

We have following variable definitions:
    int k = 2;
    double x = 0.5;

Calculate the arithmetic expressions
in C++ and mark with "yes'' these, which have value 10 (integer number) or 10.0 (floating point number).
(yes)
10 * x + 5
(no)  
k / k + 4 * x

We have the following variable definitions:
    int a1 = 21;
    int a2 = 81;
    int k = 9;

Calculate the arithmetic expressions in C++ and mark with "yes'' these, which have value 9 (integer number) or 9.0 (floating point number).
(yes)
(a2 + 1)/k
(no) 
k / a2

Mark the arithmetic expressions which have
double type of the result using the following variable definitions:
    int j = 25;
    double z = 3.75;

(yes)
z*2 + j/10
(no)
63 - j%5

Are the given below statements definitions of a string variable
name? The variable pname is already defined and has a value "CDE".
(yes)
string name = "Sonja";
(no) 
string name = 123;

We have the following variable definitions:
    string n = "101";
    string m = "abcd";

Mark the syntax correct and incorrect statements.
(yes)
cout << n.substr(0,2);
(no) 
cout << length(m);

Mark the correct and incorrect statements about the class
Time and the already defined object t of this class.
(yes)
Time end_day(1,0,1);
(no) 
cout << get_hours(t);

Mark the correct and incorrect statements about the class
Employee and the already defined object harry of this class.
(yes)
harry.set_salary(4000);
(no) 
cin >> harry.get_salary();