Midterm2024 Model3 Answer
Midterm2024 Model3 Answer
to Computer Systems
Faculty of Engineering Module Code: (CSE 042)
AIE, MTE, BME, CCE Time allowed :45 Minutes
Level : Freshman (000) Full Mark:20 Marks
(4 pages exam) Module Credit Hours (3)
Midterm Exam (Model 2) (3-4-2024) – Spring Semester
Name: ID: Program:
a) Linker b) Syntax
c) Run-time d) Logical
12. Computer can execute the code in the
form of ……………
a) high-level language b) assembly language
c) machine language d) any language
13. What will be the output of the
following C code?
a) b)
c) d)
a) No output b) TESTING
c) Error d) None
1. What will be the output of the following C 2. What will be the output of the following
code? code?
a) Singapore. b) Singapore
Poland
c) Singapore d) England Poland.
England Poland.
a) 0, 1, 1 b) 1, 0, 1
c) 0, 0, 1 d) 0, 0, 0
7. Which of the following has the same
a) yes b) no c) yes no d) Error
meaning as the given code?
4. What will be the output of the following C
code?
a) b)
a) No output b) 5
c) Hello d) Run time error
a) 39 24 63 b) 24 39 45
c) 24 39 63 d) 39 24 45
a) 11 10 12 13 b) 10 10 12 12
c) 13 12 10 11 d) 13 11 12 13
10. What will be the output of the following C a)SILVER COPPER b) TIN COPPER
code if the user enters 3? c) COPPER d) Run Error
13. What will be the output of the
following C code?
a) 17 b) 11 c) 12 d) 7
11. What will be the output of the following C
code?
a) 11 10 12 13 b) 10 10 12 12
c) 13 12 10 11 d) 13 11 12 13