DR. BABASAHEB AMBEDKAR TECHNOLOGICAL UNIVERSITY
LONERE — RAIGAD — 402103
MID SEMESTER EXAMINATION — October — 2017
-------------------------------------------------------------------------------
Branch: B. Tech (All branches (GROUP A))
Course: Basic Computer Engineering (ICT106)
Semester: First
Marks: 20
Date:
enggsolution.com
Time: 1 Hr.
-
------------------------------------------------------------------------------
Q. No. 1 Multiple Choice Questions. (1 x 6 = 6 Marks)
i)
b) 0
ii)
d) DOnut
a) 2
iii)
c) 3
iv)
enggsolution.com
v)
a) 1
c) a
0
vi)
Q. No. 2 Attempt any one of the following. (1 x 6 = 6 Marks)
a)
b)
1. Add header file and main function (1 M)
2
3
4
. Declare the required variables (1 M)
. Take input from user (1 M)
. Use Logic (n&1==1)? display number is an ODD number : display
number is an EVEN to user. (3 Marks)
1. Add header file and main function.(1 M)
2
3
4
. Declare the required variables.(1 M)
. Take input from user.(1 M)
. Use Logic
years = days/365;
weeks = (days % 365)/7;
days = days- ((years*365) + (weeks*7));
And Display the result in the format of years, weeks and days. (3 Marks)
Q. No. 3 Attempt any two of the following. (2 x 4 = 8 Marks)
a)
When entering data via the scanf function, what relationships must there be
between the data items and the corresponding arguments? (2 M)