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

Source code is? a) The result of complier operation. b) The process of getting i

ID: 3834190 • Letter: S

Question

Source code is? a) The result of complier operation. b) The process of getting information from the processor. c) The data stored in the computer memory and retrieved by the processor. d) The set of instructions in a computer language that solve a specific problem. Which of the following statements is true? a) In do/while statement, the condition is evaluated before the statements within the loop are execute b) If the condition is true in if statement, the program skips statement 1, execute statement - 2(after c) Both while loops and do-while loops are counter-controlled, meaning that they are normally use whenever the number of iterations is known in advance. d) In for loop, the condition is tested at the beginning of each iteration, and then the increase happens AFTER the execution of the body. Which of the following statements is false? a) Do/while loop needs increment/decrement statement in the body to have finite number of iteration b) for loop needs increment/decrement statement in the body to have finite number of iteration c) If the condition of a loop statement never become false, the loop continues for ever d) In do/while loop, the body is executed at least once. Which of the following statements is correct? a) Solution for execution error is to correct the errors in the object program and then begin execution step b) Assembler converts an assembly language program to machine language (binary language). c) Data can be communicated between internal memory and external memory through an ALU. d) The compilation step identifies all the bugs in the program Which of the following is a valid function definition statement? a) function Diss (double x) b) double Diss (int x) c) double Diss (x) d) Diss(double x) Why do we develop programs that use a main function and additional functions, instead of long main function? a) The specific purpose of a module can be tested separately from the rest of the problem. b) Individual modules can be developed and tested independently of each other by several parallel. c) Once tested, a module can be used in new problem solutions without re-test. d) Modular programming hides the details of the tasks, allows us to use modules in a function, without being concerned about the specific details. e) All of the above.

Explanation / Answer

1. Answer is d)Source code is a the set of instructions in a computer language that solve a specific problem. Source code can be written in any programming languages. There are numerous programming languages. A particular language can be choosen based on various factors.Some of the languages are C,C++,Java,FORTRAN,PASCAL etc.

2. Answer is d) In for loop, the condition is tested at the beginning of each iteration, and then the increment happens after the execution of the body. This is because for loop comes under pretest loop or entry controlled loop, meaning that the condition is tested at the beginnig of each iteration.

3. Answer is b) for loop needs increment/decrement statement in the body to have finite number of iterations. This is false. Because, increment/decrement statement need not be in for loop body. It can be included in the third section of the for loop as shown below in bold letters.

for(i=0;i<10;i++)

{

printf("Hello");

}

4. Answer is b) Assembler converts an assembly language program to machine language (binary language).

5. Answer is b) double Diss(int x). This is because by definition the function definition will have the following syntax.

returntype fname(<parameter list>)

{

}

6. Answer is e) All the above. The use of additional functions provides us with all the benefits mentioned in options (a),(b),(c),(d).

  

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote