0% found this document useful (0 votes)
9 views7 pages

Bitm 104 Programming Fundamentals I

Programming questions
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
9 views7 pages

Bitm 104 Programming Fundamentals I

Programming questions
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 7
OF PROFESSIONAL STUDIES, ACCRA (UPSA) DEGREE PROGRAMME REGULAR SCHOOL Ea J ECOND SEMESTER EXAMINATIONS- 2018/2019 ACADEMIC YEAR OF INFORMATION TECHNOLOGY AND COMMUNICATION STUDIES DEPARTMENT OF IT STUDIES LEVEL 100 Date: Wednesday, May 29, 2019 TIME ALLOWED: 2 HOURS INDEX NUMBER INSTRUCTION(S): R ALL QUESTIONS IN THIS SECTION IN THE BLANK SPACES WITH THE ANSWER THAT. ‘TES THE SENTENCE, QUESTION ONE (1) AND CHOOSE ANY OTHER ONE (1) SECTION A [30 Marks] c) High Level Language “ 4) HTML Language NOT an Application Software. ©) Windows XP d) MS Excel ption ofan algorithm in english is called ©) Pseudocode d) none of the above shown below in flowchart represent a) StarvStop °) d) Connector ©) Decision 4) Looping shown below in flowchart represent ©) Looping d) Data of a logic function for all possible ©) Process -- Inputs d) Input -- Processes to size of the datatypes? ©) char < int < float 4) char < int < double the seventh element stored in array? Page 2 of 7 ©) array(7); d) array: ram? am> ace std; 10, b= 10; ¢) runtime error 4) none of the mentioned following program? space std: = fla, b); (a*b)+ (x+y); ©) 52 4) none of the mentioned ns in function declaration? e ©) both aand b e,parameters 4) none of the mentioned ible declared in the user defined function? c) both aand b 4) none of the mentioned handle exception? Page 3 of 7 c) catch d) none of the mentioned nword is used to declare the header file? ©) string d) namespace der files is required for creating and reading data files? ©) ifstream 4d) console c) 46 d)45 jing is not a standard data type? ©) float 4d) date 10 ) 100 s are specified in the ASCII scheme? ©) 256 4) 218 is not one of the sizes of the floating point types? ©) long double d) double source code disregarded by the compiler by compiler to find the meaning of the comment s does e+ support? oo Page 4 of 7 0 called as? Page 5 of 7 ) single line and multi line d) none of the mentioned ©) literals 4) none of the mentioned c) certain structure 4d) none of the mentioned al operator OR (I) combine two expressions exp! and exp? then the result will ¢) When exp] is true and exp? is false d) When expI is false and exp2 is true ©) both logical and arithmetic expressions d) none of the given options. ©) Double quote 4d) Single quote ©) Add 2 to X value d) None of these type for number 325.25 is : ) short d) float SECTION B (5 Marks) a the blank spaces with the answer that accurately completes the itself is known as function. has only two values: true and false, ‘operator allows you to make comparisons in a program operator in C+ is = loop always iterates at least once SECTION C (25 Marks) ¢r Question One (1) and choose any other One (1) question from this section up of the hardware system and the software system, the computer hardware system with some examples [2 marks] he computer software system with some examples (2 marks} understand by structured programming? [4 marks} am describe the problem solving process using top down approach [3 marks} Add(), write a C++ program to add two integers to add integers and display : [4 marks] the nurses at the hospital to convert temperature readings from temp. [6 marks] “in degrees Fahrenheit (°F) is equal to the temperature T in degrees 32: Page 6 of 7 do code algorithm into a flowchart diagram. [4 marks} < endl; ine in the code segment [3 marks} 3¢ output of this code when compiled? [1 marks} c++ program that checks whether a number entered by a user is either ‘or an odd number. Note: Your program should run for five (5) times only [3 marks] rs of the function declaration below uml, int num2); [Imark] between source code and an object code? [2 marks] Page 7 of 7

You might also like