Question
Please answer all questions. 1. The name of the term on the right-hand side of an assignment operator is: 2. The following statement is legal
Please answer all questions. 1. The name of the term on the right-hand side of an assignment operator is:
2.
The following statement is legal in C:
10 = 5+x; True or False?
3. When you declare a variable, the compiler will reserve enough space in data memory to hold the value. TRUE/FALSE
4. In C, source code statements that begin with the pound sign (#) are called: 5. Which of the following C arithmetic operations will divide an existing value of xValue (previously declared as an int) and modify xValue with the result?
xValue /= 2; | |
| xValue / 2; |
| xValue %= 2; |
| xValue % 2; |
a,b,c or d? 6. Computers execute machine instructions in the order the programmer specifies. TRUE/FALSE
7.
Select all statements which are TRUE about declaring variables in C
| All variables must have a data type. |
| Variable names can begin with an alphabetic or numeric character. |
| The only special character permitted in a variable name is the underscore (_). |
| Variable names are NOT case-sensitive. |
8. The ASCII character set assigns a numerical value to every printable character and punctuation mark in the English language, as well as some non-printable characters.
TRUE/FALSE
9.
The following C statement will print All Is Well (although not in bold font) at the beginning of a line:
printf (" All Is Well");
TRUE/FALSE
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started