Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

PS: PLEASE IF YOU DON\'T KNOW THE ANSWERS , DON\'T ANSWER IT OR LEAVE IT BLANK.

ID: 3650996 • Letter: P

Question


PS: PLEASE IF YOU DON'T KNOW THE ANSWERS , DON'T ANSWER IT OR LEAVE IT BLANK.
1.
Assuming grade is an array of ten integers, the statement ____ is invalid.
A) grade = &grade[2];
B) *grade = *(grade + 2);
C) *grade = *grade + 2;
D) *grade = *(&grade[2]) + 2;
2.
If numPtr is declared as a pointer variable, the expression ____ can also be written as numPtr[i].
A) *numPtr + i
B) (numPtr + i)
C) *numPtr
D) *(numPtr + i)
3.
Which of the following is NOT a computer language
A) Assembly
B) C++
C) Pseudocode
D) Visual Basic
4.
The C language uses which of the following to process code for the computer
A) Archiver
B) Compiler
C) Interpreter
D) Flowcharter
5.
What is the conversion specification (placeholder) for a floating point number?
A) %c
B) %d
C) %f
D) %p
6.
What is the symbol associated with the address operator.
A) &
B) *
C) @
D) |
7.
Which of the following is NOT a valid identifier
A) 4A
B) A3
C) IF
D) tax_rate
8.
Which of the following statements legally declares a character variable options.
A) char options [10];
B) char options
C) Char options ;
D) char options = 'o';
9.
Given x = 5,y = 5,z = 5; z = ++z * y * x++; What is the value of z ?
A) 16
B) 125
C) 150
D) 180
10.
5 && !3 || 7 % 3 - 1
A) True
B) False

Explanation / Answer

1. d 2. b 3. c 4. b 5. c 6. a 7. c 8. c 9. c 10. a

Dr Jack
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote