0% found this document useful (0 votes)
486 views4 pages

Com113 Exams Ques 2023

The document is an exam for an introductory programming language course. It contains 50 multiple choice questions testing concepts like order of operations, data types, variables, algorithms, errors, debugging, number systems, and programming paradigms. It also includes 3 essay questions asking students to define algorithms, draw a flowchart, and convert a binary number to different number systems.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
486 views4 pages

Com113 Exams Ques 2023

The document is an exam for an introductory programming language course. It contains 50 multiple choice questions testing concepts like order of operations, data types, variables, algorithms, errors, debugging, number systems, and programming paradigms. It also includes 3 essay questions asking students to define algorithms, draw a flowchart, and convert a binary number to different number systems.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

DEPARTMENT OF COMPUTER SCIENCE

GALTIMA MAI KYARI COLLEGE OF HEALTH SCIENCE AND TECHNOLOGY NGURU, YOBE
STATE.
END OF FIRST SEMESTER EXEMINATION
2023/2024 Academic session

COURSE: Intro. To Programming Lang. COM113 4


TIME: 2 Hours
INSTRUCTION: Answer all question in Section (A) and any three (3) in Section (B)

SECTION (A) OBJECTIVES

1. What is the order of precedence in python?


a. EBMDAS c. BEMDSA
b. EBDMAS d. BEDMAS
2. All computer programs can be coded using only selective logic structure. (a) True (b) False
3. …………………. is the art of diagnosing errors in programs and determining how to correct them.
4. Errors occur in programs as a result of the following
a. System failure (hardware) d. All of the above
b. Wrong code/instructions(software) e. A and b only
c. Human Mistake
5. In computing bugs is also referred to as mistake or error. (a) True (b) False
6. Logical errors in the code is detected by programmer. (a) True (b) False
7. The decimal number 34510 is equivalent to
a. 2298 c. 2198
b. 3548 d. 1008
8. Computer architecture supports following number systems except.
a. Binary d. Hexadecimal
b. Ocktal e. All of the above
c. Decimal
9. A ………….. is a set of instructions that a computer follows to perform a task.
10. The octal number 345 is equivalent to
a. 0111001012 c. 1100110112
b. 0001011102 d. 011100101
11. One the following program is used to convert the entire program at once and reports the errors
detected.
a. Assembler b. Compiler c. Interpreter
12. Syntax Error can be cause by all of the following except
a. Misspelled word, c. Comma out of place and
b. Unmatched parenthesis, d. Divide by zero
13. To convert decimal number to any other base you need to follow just only
a. 3 steps c. 4 steps
b. 2 steps d. 1 step
14. Which one of the following is a valid variable name in python?
a. 1num = 2 c. num 1 = 2
b. num = 2 d. All of the above
e.
15. …………….. is an informal and artificial language that helps programmers develop algorithms.
16. One the following is an error that occurs during the execution of a program:
a. Logical Error c. Compile Error
b. Syntax Error d. Run-time Error
e.
17. What will be the value of this python expression 4 + 3 % 5
a. 7 c. 4
b. 2 d. 1
18. Octal number system has only
a. Two (2) digits c. Eight (8) digits
b. Ten (10) digits d. Sixteen (16) digits
19. ...………... takes program written in source lang. as input and turn it into a program in target lang. as
output.
20. Which one of the following is not an arithmetic operator in python programming language
a. Addition (+) d. Division (/)
b. Subtraction (-) e. Less Than (<)
c. Multiplication (*)
21. Bugs can be discover by the following individual except
a. Manager c. Software Tester
b. Programmer d. End-User
22. A Hexadecimal number system has sixteen (16) alphanumeric values from …. to …. and ….. to ….
23. Which of the following is not features of an algorithm
a. Simple c. Finiteness
b. Unambiguous d. Process and decision
24. Which of the following is not a method of represent algorithm?
a. Methods of English like form d. Methods of Data flow Diagram
b. Methods of Flowchart (DFD)
c. Methods of Pseudo code e. None of the above
25. …………… is a tool used for processing data into information
26. All of the following are benefit of machine language except
a. Less code is produced c. Less memory consumption
b. Execution speed d. Cumbersome
27. What will be the output of this python statement print(“GMK CHST)
a. GMK CHST c. Galtima Mai Kyari CHST
b. Error d. None of the Above
28. A python file is save with an extension
a. .python c. .py
b. .pl d. .p
29. High-level languages are considered as machine dependent languages. (a) True (b) False
30. Which one of the following Hex value is equivalent to this 111001012
a. E516 c. D516
b. 14516 d. E5
31. One of the following is not an example of High-level language.
a. Rust c. C++
b. Fortran d. Java
32. Python programming is translated using
a. Compiler b. Intarpreter
c. Assembler d. Interpreter
33. ……………. is program that allows you to create, edit, save and print document with your computer.
34. For you to convert Hexadecimal number to binary you simply look up each Hex digit to obtain the
equivalent group of
a. 4 binary digits c. 2 binary digits
b. 3 binary digits d. None of the above
35. The base of hexadecimal number system is (Hex). (a) True (b) False
36. The type() can be used to see the data type of a given variable (a) True (b) False
37. Which of the following symbol is use to represent a sequence of step in solving problem?
a. Oval d. Hybrid
b. Parallelogram e. All of the above
c. Diamond
38. The ……………. structure consists of one action followed by another.
39. All these are good properties of computer program except
a. Error-Resistance c. Readability
b. Reliability d. Comparable
40. Machine languages and assembly languages are together referred to as low-level languages. (a) True
(b) False
41. A flowchart is a graphical representation of an algorithm or of the plan of solution of a problem. (a)
True (b) False
42. The variable names are used to store a values. (a) True (b) False
43. The ……………… of a program is the rules defining the legal sequences of symbolic elements in a
particular language.
44. To take the reminder after performing conversion from number system to another, we start
a. Left-to-right
b. Right-to-left d. Top-to-bottom
c. Bottom-to-top
45. …………. Is a sequence or set of instruction to obtain the solution of a given problem
46. Which of the following is not techniques of debugging?
a. Recognize that a bug exists c. Identify the cause of the bug
b. Isolate the source of the bug d. None of the above
47. What will be the value of these expressions i. 2** (2+7) ii. 10**3, iii. (2**4)+(2*3)
a. 512, 1000, 22 c. 64, 32, 16
b. 512, 64, 32 d. 512, 100, 32
48. Which among the following programming is supported by python programming language?
a. Object-oriented programming c. Structured programming
b. Functional programming d. All of the mentioned
49. Typical programing task is divided into ……………….. and ………………….
50. With logical Error program compiles and executes OK but produces unexpected or incorrect results.
(a) True (b) False

SECTION (B) ESSAY


Q1. Define an algorithm and mention at least four features of an algorithm
a. List and describe at least five (5) standard symbols used in flowchart
Q2. Draw a flowchart to find the average of four numbers stored in variables P, Q, R, S.
a. List and briefly explain the three basic coding structure.
Q3. Convert this 0111001012 binary number to the following number system:
a. Decimal
b. Octal and
c. Hexadecimal
Q4. Define debugging and itemize three (3) differences between logical error and syntax error
Q5. What are the roles of translator, hence define interpreter, compiler and assembler
Q6. Write an Algorithm to determine a student’s final grade and indicate whether it is passing or failing.
The final grade is calculated as the average of four marks.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy