Professional Documents
Culture Documents
TOTAL /30
RETURN DATE
*For PK(Lecturer) use only
1. Convert the following algorithm into C++ code and display the output. [CLO 2]
[15M]
2. Fill in the blanks for the following programs. Write the correct answers and complete the
code to display the output as in figure 1. [CLO 2]
[15M]
#include <iostream>
using namespace std;
int main()
sum=a+b;
sub=a-b
mult=a*b;
div=a/b;
module=a%b;
Sample output.
Figure 1
DFC20113 / Laboratory Task 2/ Session II 2021/2022
‘RUBRIK
,Question 1
CLO Criteria Exceptional Acceptable Amateur Unsatisfactory Unsolved
(5) (4) (3) (2) (1)
CLO 2 Program The C++ More than More than Less than No proper
program is 75% 50% 50% program program.
excellently program is program is is correct.
correct. correct. correct.
Declaration The More than More than Less than No proper
declaration of 75% 50% 50% declaration of
the variable declaration declaration declaration of variable and
and statement of variable of variable variable and statement.
is perfectly and and and statement is
correct based statement is statement correct.
on the given correct. is correct.
algorithm.
Output Output meets Output More than Less than Output does not
or exceeds the meets 75% output 50% output meet
requirement requirement meets meet requirement
requirement requirement
Question 2
CLO Criteria Exceptional Acceptable Amateur Unsatisfactory Unsolved
(5) (4) (3) (2) (1)
CLO 2 Program The C++ More than More than Less than No proper
program is 75% 50% 50% program program.
excellently program is program is is correct.
correct. correct. correct.
Correct Perfectly fill in More than More than Less than No correction of
the the blanks 75% of the 50% of the 50% of the the errors.
errors errors is errors is errors is
correct. correct. correct.
Output Output meets Output More than Less than Output does not
or exceeds the meets 75% output 50% output meet
requirement requirement meets meet requirement
requirement requirement