The assignment operator + has the highest priority compared to any other arithme
ID: 3661508 • Letter: T
Question
The assignment operator + has the highest priority compared to any other arithmetic operator. True or false? Explain.
A variable name can contain the underscore symbol (_). True or false? Explain.
A void user defined function always return 0 True or False? I understand this returns no value.
A local variable does not take the precedence over a global variable with the same name. True or False?
In if-else control structure, opening and closing curly brackets are always required. True or False?
Declaring a user defined function through a prototype is required in C++ True or False?
int 2val; The above declaration will result a compilation time error. True or False?
Which statement is true about two dimentional arrays a. values of up to two different data types can be assigned to two dimensional arrays b. Only allows the assignment of values of one data type c. both a and b can be the answer d. none of the above
A string is a. character type array b. integer type array c. it can be both character of integer type array depending on how it is being used d. none of the above.
Explanation / Answer
The assignment operator + has the highest priority compared to any other arithmetic operator. True or false? Explain.
False, All the assignment operators has same priority,( =, +=, -= , *=, /=, <<=, >>=, %=, &=, ^=, |= ) with associativity rule “right to left”
A variable name can contain the underscore symbol (_). True or false? Explain.
Variable names must start with a letter of the alphabet or underscore( _ ).
A void user defined function always return 0 True or False? I understand this returns no value.
False, In C++ if a function with return type as “void” dose not any value
A local variable does not take the precedence over a global variable with the same name. True or False?
False, local variable inside a function will take preference
In if-else control structure, opening and closing curly brackets are always required. True or False?
False
Declaring a user defined function through a prototype is required in C++ True or False?
False. Not always required, incase if the function is defined before main prototype is not required.
int 2val; The above declaration will result a compilation time error. True or False?
True, Variable names must start with a letter of the alphabet or underscore( _ ).
Which statement is true about two dimentional arrays a. values of up to two different data types can be assigned to two dimensional arrays b. Only allows the assignment of values of one data type c. both a and b can be the answer d. none of the above
b. Only allows the assignment of values of one data type
A string is a. character type array b. integer type array c. it can be both character of integer type array depending on how it is being used d. none of the above.
a. character type array
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.