ITC106_201190_Exam_Sample

ITC106_201190_Exam_Sample - FACULTY OF BUSINESS AUTUMN...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
FACULTY OF BUSINESS AUTUMN SESSIONSAMPLE EXAMINATION 2011 ITC106: PRINCIPLESOF PROGRAMMING DAY & DATE: TIME: WRITING TIME: Two (2) hours READING TIME: Ten (10) minutes MATERIALS SUPPLIED BY UNIVERSITY: 1 x General Purpose Answer Sheet 1 x 24pp Answer Booklet MATERIALS PERMITTED IN EXAMINATION: 2B pencil/eraser NUMBER OF QUESTIONS: Part A: 20 Multiple Choice Total of 20 Marks Part B: 8 Short Answer Total of 80 Marks INSTRUCTIONS TO CANDIDATES: 1. All questions may be attempted 2. The exam paper is marked out of 100 3. Enter your name and student number and sign in the space provided at the bottom of this page. You must also enter your name and student number in pencil on the General Purpose Answer Sheet and upon each Answer Booklet. 4. Part A consists of twenty (20) multiple choice questions, each worth 1 mark. The answers to these must be marked on the GPAS supplied with a 2B pencil. INSTRUCTIONS TO INVIGILATORS: QUESTION PAPER MAY NOT BE RETAINED BY THE CANDIDATE STUDENT NAME: STUDENT NO: STUDENT SIGNATURE: ITC 106 Page 1 of 12
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Part A: Multiple Choice (20 marks total) 1. A program that translates a high level language program into machine language and  then creates a separate machine language program is called a(n): a. translator b. assembler c. interpreter d. compiler e. executer 2. The decimal value 23 can be represented in binary as : a. 10101 b. 11011 c. 11101 d. 10011 e. 10111 3. Normal test data is: a. Selected random values, to check if the program crashes b. Selected in-range data, chosen to check calculations, and ‘exercise’ every  branch of the program. c. Selected in-range data, chosen for ease of calculation d. Both a and b e. Both b and c 4. Which of the following is the best function name, for a function that calculates a sum? : a. functionOne b. calculate-Sum c. calculateSum d. CalculateSum e. Sum 5. After the following statement executes, the variable ‘x’ will contain data of what type? x = 45.0 / 2 a. integer b. floating point c. string ITC 106 Page 2 of 12
Background image of page 2
d. Boolean e. double ITC 106 Page 3 of 12
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6. What will be the result of the following expression? : x = 1 + 2 * 5 -4.0/ 2 a. 9 b. 9.0 c. 13 d. 13.0 e. 3.5 7. The   design   technique   used   to   analyse   a   problem   in   terms   of   ‘things’   and   their  interactions is known as: a. simplification of design b. refactoring of design
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 12

ITC106_201190_Exam_Sample - FACULTY OF BUSINESS AUTUMN...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online