0% found this document useful (0 votes)
2K views

Makaut Ques. CS

The document is a question paper for the subject "Basic Computation and Principles of Computer Programming". It contains 3 sections - Section A with 10 multiple choice questions, Section B with 3 short answer questions, and Section C with 3 long answer questions. Students need to answer the questions related to basic C programming, algorithms, data structures, computer components, binary and hexadecimal conversions etc. The full marks for the paper is 70.

Uploaded by

Ayan Kar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views

Makaut Ques. CS

The document is a question paper for the subject "Basic Computation and Principles of Computer Programming". It contains 3 sections - Section A with 10 multiple choice questions, Section B with 3 short answer questions, and Section C with 3 long answer questions. Students need to answer the questions related to basic C programming, algorithms, data structures, computer components, binary and hexadecimal conversions etc. The full marks for the paper is 70.

Uploaded by

Ayan Kar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

CS/B.

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

i) "My salary was increased by 15% l"


Select the statement which will EXACTLY
xa

reproduce the line of text above.


a) printf (" \ "My' salary was increased by
15/%"\!\"\n");
.e

b) printf ("My salary. was increased by


15%!"\n");
c) . printf ("My salary was increased by
w

15'%'!\n");
d) printf (" \ "My salary was increased by
w

15%%!\"\n");
w

2/20201 [Tum over


CS/B.TJ!:CH/EVEN/SEM-2/CS-20 1/20 15-16

iij int x = 2*3+4*5;


What value will x contain In the sample code
above?
a) 22 b) 26
c) 46 d) 50.
'v1cl iii) In a C expression, how IS a logical AND
represented ?
a) @@ b) II
c) AND d) &&

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

ix) Member of a union uses


a) different storage locations
b) same storage location
c) no storage location
d) none of these.
x) A 32 bit microprocessor has the world length
equal to "
a) 2 bytes b) 4 bytes
c) 1 byte d) 8 bytes.
,

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

( Long AnswerType Questions )


Answer any three of the following. 3 x 15 = 45
7. a) What are the basic features of an algorithm?
.e

b) Write a C program to find the sum of digits of a


number taken from a user.
c) Write a C program to multiply two matrices and
w

display the resultant matrix.


d) Realize an AND gate using only NANDgates.
4+4+5+2
w

2/20201 3 [Turn over


w
CS/B.TECH/EVEN/SEM_2/CS_20 1/20 15-16

8. a) Draw a flowchart to find the largest among three


distinct numbers.
b) Write a C program to find the largest among three
distinct numbers based on your flowchart.
c) Briefly describe the function of different
components of a conventional digital computer with
a suitable block diagram.
d) Subtract 210 from 610 in binary subtraction using
N'II 2's complement. 3 +4 +5 +3
9. a) Write a C program to find Greatest Common

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

R~ e) What value is returned by the printf( ) functions?


2 +5+5+2+ 1
E- 11. a) Distinguish between ++i and i ++ with suitable
xa

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

e) What are the main characteristics of a union?


f) Write down 4 bitwise operators. Explain their
working with suitable example.
w

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

The figures in the margin indicate full marks.

.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

i] The absolute zero pressure will be


xa

a) when molecular momentum of the system


becomes zero
.e

b) at sea level

c) at the temperature of - 273 K


w

d) under vacuum conditions.


w

2/20151 [Tum over


w

You might also like