Question
___1. When English phrases are used to describe an algorithm, the description is called ____. a. pseudocode c. an opcode b. a formula d. a
___1. When English phrases are used to describe an algorithm, the description is called ____.
a. | pseudocode | c. | an opcode |
b. | a formula | d. | a flowchart |
___2. C is a(n) ____ language.
a. | interpreted | c. | object-oriented |
b. | machine | d. | structured |
___3. Data transmitted into a function at run time are referred to as ____ of the function.
a. | statements | c. | escape sequences |
b. | headers | d. | arguments |
___4. The ____ is also known as the escape character.
a. | pound character (#) | c. | backslash character (\) |
b. | ampersand character (&) | d. | bang character (!) |
___5. A(n) ____ is any combination of operators and operands that can be evaluated to yield a value.
a. | expression | c. | operation |
b. | statement | d. | argument |
___6. Another term for a program or set of programs is ____.
a. | Software | c. | Opcode |
b. | Algorithm | d. | procedure |
___7. A(n) ____ combines additional machine language code with the object program to create a final executable program.
a. | linker | c. | assembler |
b. | compiler | d. | interpreter |
___8. A(n) ____ is a structured combination of data and instructions that is used to operate a computer and produce a specific result.
a. | programming language | c. | algorithm |
b. | opcode | d. | computer program |
___9. Main memories combine 1 or more bytes into a single unit, referred to as a(n) ____.
a. | bit | c. | opcode |
b. | character | d. | word |
___10. Programming languages that use the substitution of word-like symbols, such as ADD, SUB, MUL, for the binary opcodes, and both decimal numbers and labels for memory addresses are referred to as ____.
a. | machine languages | c. | low-level languages |
b. | assembly languages | d. | interpreted languages |
___11. A(n) ____ is a message that tells the person at the screen what should be typed.
a. | prompt | c. | scanf |
b. | input statement | d. | printf |
___12. Programs that detect and respond effectively to unexpected user input are formally referred to as ____ programs.
a. | standard | c. | cost-effective |
b. | robust | d. | abstract |
___13. ____ is a valid statement in C.
a. | a = 10 = c = 25; | c. | 2 = b; |
b. | a = b = c = 25; | d. | a - 1 = c; |
___14. The expression sum = sum + 10 can be written as ____.
a. | sum =+ 10 | c. | sum = sum ++ 10 |
b. | sum += 10 | d. | sum ++ 10 |
___15. It is a good practice to terminate the last case in a switch statement with a ____.
a. | switch | c. | default |
b. | break | d. | case |
___16. In a switch statement, the word ____ is optional and operates the same as the last else in an if-else chain.
a. | if | c. | case |
b. | break | d. | default |
___17. What will the following program print on screen? Assume the proper header file is included and the main function has been declared.
int tenure = -10;
if (tenure + 5)
printf("Congratulations!");
else
printf("Sorry");
a. | Congratulations! | c. | Runtime error. |
b. | Sorry | d. | Nothing; the program will not compile. |
___18. Which of the following operators has the lowest precedence?
a. | ! | c. | && |
b. | * | d. | || |
___19. The second loop of a nested loop is called the ____ loop.
a. | inner | c. | slave |
b. | outer | d. | conditioned |
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