HIGHER INSTITUTE OF TECHNOLOGY-10th of RAMADAN
EXAM DURATION: 60 MINUTES
COMPUTER SCIENCE DEPARTMENT
Apr. 2015
STRUCTURED PROGRAMMING *Student Name:
Exam #1 * Student ID:
Mark:
30
_________________________________________________________________________________________ Q1: MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 1) Words that have a special meaning and may be used only for their intended purpose are known as: A) operators B) key words C) programmer defined words D) syntax E) None of these Answer: B 2) A(n) ________ is a set of instructions that the computer follows to solve a problem. A) program B) compiler C) linker D) operator E) None of these Answer: A 3) The statements written by the programmer are called: A) syntax B) runtime libraries C) source code D) object code E) None of these Answer: C 4) A set of well-defined steps for performing a task or solving a problem is known as a(n): A) hierarchy B) encoded instruction C) central processing unit D) algorithm E) None of these Answer: D 5) Which of the following is a preprocessor directive? A) pay = hours * rate; B) cin >> rate; C) // This program calculates the user's pay. D) #include <iostream> E) int main( ) Answer: D
1