Makaut Ques. CS
Makaut Ques. CS
TECH/EVEN/SEM-2/CS-201/2015-16
Maulana Abu! ~ Azad UnNe!1ity
iii T;;;:MoIog1, W. Bengal
~
~
MAULANA ABUL KALAM AZAD UNIVERSITY OF
TECHNOLOGY,~TBENGAL
I
Paper Code: CS-201
om
BASIC COMPUTATION AND PRINCIPLES
OF COMPUTER PROGRAMMING
Time Allotted: 3 Hours Full Marks: 70
.c
The figures in the margin indicate full marks.
Candidates are required to give their answers in their own
da
words as far as practicable.
GROUP-A
ve
( Multiple Choice Type Questions I
I. Choose the correct alternatives for the following:
10 x 1 = 10
m
15'%'!\n");
d) printf (" \ "My salary was increased by
w
15%%!\"\n");
w
om
iv) Which one of the following will read a character
from the keyboard and will store it In the
variable c?
a) c = getc ();
b) getc (&c);
.c
Pre c) c = getchar (stdin);
d) c = getchar()
v) char txt[20] = "Hello worldl\Oo;
PC! a)
da
How many bytes are allocated by the definition
above?
11 bytes b) 12 bytes
ve
c) 13 bytes d) 20 bytes.
vi) What will be the output of the following statement?
int a = 10; printf("%d &iO, a, 10);
a) error b) 10
m
Re c) 10 10 d) none of these.
vii) Pointer is
E-' a) a variable containing the address of a variable
xa
b) a value
St! c) a memory location
d) none of these.
A( viii) Which one is the right output?
.e
int x = 9;
i£(10)
printf("%d",++x) ;
w
else
printf("%d",x++);
a) 9 b) 10
w
c) 11 d) 12.
w
2/20201 2
D
s
Rt.., 1<.1. "'.l
CS/B.TECH/ EVEN/SEM-2/CS-20 1/20 15-16
om
GROUP-B
( Short Answer Type Questions )
Answer any three of the following. 3 x 5 = 15
2. With a suitable block diagram briefly explain the major
components and their functions of any conventional
.c
computer.
3. What are 2's complement numbers? How do you use
this system to perform 3110 - 3710 ?
da
4. What do you mean by algorithm? Draw a flowchart to
find the prime number. 2+3
5. a) What is type casting?
ve
b) Differentiate between Structure and Union. 2+3
6. Perform the following operation :
a) Convert (10010011112 to hexadecimal
Convert (31·81l io to binary
m
b)
c) Convert (537)8 to octal. 1+ 2 + 2
GROUP-C
xa
om
Divisor of two positive integers.
b) Write a C program to arrange a set of numbers in
ascending order.
c) Write a C program to check whether a string taken
as input is palindrome or not.
.c
Pre
d) What is the range of signed integers if an integer is
stored in,2 bytes of memory? 4 +5 + 5 + 1
da
10. a) Name any four string functions whose prototype is
defined in the string.h header file.
Pcl
b) Write a C program to copy a disk file into another
disk file.
ve
c) Write a recursive C function to solve Tower of Hanoi
problem.
d) What is the difference in opening a file in r + and
w + modes?
m
example(s).
SII b) What are structure and structure variable?
c) What is pointer in C? Explain with example.
d) Write down the properties of a recursive function.
.e
3+2+2+2+2+4
w
2/20201 4
w
-
Rl..,, I(lI ......
. """
CS/B.Tech/EVEN/SEM-2/ME-201/2015-16
Ib#Ia AbuI KaI.!nI Azad u~
of Tec:IIIIaIogy, Wes EIer'oQII
~
~
MAULANA ABUL KALAM AZAD UNIVERSITY OF
TECHNOLOGY,~TBENGAL , "I'
., ('II
Paper Code: ME-201
ENGINEERING THERMODYNAMICS & "·11 I,
om
FLUID MECHANICS
Time Allotted: 3 Hours Full Marks: 70
.c
Candidates are required to give their answers in their own
words as far as practicable.
GROUP-A
( Multiple Choice Type Questions)
da
ve
1. Choose the correct alternatives for the following:
10 x 1 = 10
m
b) at sea level