You are on page 1of 14
UNIVERSITI -TEKNOLOGI PETRONAS PROGRAMMING TEST MAY SEMESTER 2014 ACADEMIC TERM COURSE: TBB 1013/TDB 1113 STRUCTURED PROGRAMMING DATE : 21 AUGUST 2014 TIME : 1% HOURS (9.00 PM — 10.30 PM) INSTRUCTIONS TO CANDIDATES This Question booklet consists of $0 multiple choice questions (MCQ). Answer ALL que Question booklet in the provided OMR sheet. ———————— 1, ‘The endl manipulator: 4) is illegal in CH iserts a new line and then flushes the stream So Thserts an end of file marker dd. causes a program to end 2. The cout object can be used to display 1. letters of the alphabet only %p) character and integer data types ie ete ee I ase Gat fect words 3. A floating point number is: a, a signed or unsigned integer 2 (6. an integer with an undetermined decimal point any signed or unsigned number that has a decimal point any positive number that has a decimal point 5. When the computer evaluates the expression length = 25 @ the value on the right of the expression is assigned to the variable on the left b. the value of length is assigned to 25 c. the computer will vette tegen 28 a FCB 1013/TDB 1113 ‘operator appears before a variable, it is called a(n): «2. ) prefix increment operator postfix increment operator € double-plus prefix operator 4. illegal operation Forgetting to assign oF initialize values for variables before using them in code ©) reece a comesereomr b._ may result in an error that isnot detected by the compiler & isnota problem if you eventually used the variable in code (resus in a tnker or 9. The cin object ‘a. accepts a stream of data from the standard output device 'b. accepts a stream of data from the standard input device outputs a stream of data from the standard input device .¢.) stores data from the keyboard

You might also like