Quiz-2 - Solution
Quiz-2 - Solution
COMPUTING AND AI
QUIZ # 2
REG#: ___________________________ NAME: ____________________________________
1. The role of the _______ is to transform the source code into machine code?
a) Compiler.
b) Linker.
c) Preprocessor.
d) Debugger
a) Input/Output
b) #include
c) Compiler
d) Conditional
3. In a C++ program, the main () function serves as the _______ of the program.
a) Beginning
b) Middle
c) End
d) None of the above
Question 2: Create a flowchart that calculates and shows the result of multiplying all even numbers between 'number1'
and ‘number2’. The values of ‘number1’ and ‘number2’ will be provided by the user. Marks 10 (CLO2, PLO1)
[Hint] Construct the algorithm as your rough work first and use that to draw a flowchart.
FCS CS329 PAGE 2