How To Exam?

a knowledge trading engine...


West Bengal Institute of Technology (WBIT) 2010-1st Year B.Tech Electronics and Communications Engineering WBUT 1st ntroduction to Computing - Question Paper

Thursday, 18 July 2013 02:40Web


CS/B.Tech/Sem-2/CS-201/2010
Introduction to Computing
Time Allotted : three Hours
Full Marks : 70

Name : .    .........

Roll No. : ..P5010 0S01S



Invigilator's Signature:...................

CS/B.Tech/SEM-2/CS-201/2010 2010

INTRODUCTION OF COMPUTING

Time Allotted : 3 Hours    Full Marks : 70

The figures in the margin indicate fullr,narks.

Candidates are required to give their answers in their own words

as far as practicable.

GROUP-A {A ( Multiple Choice Typ Questions )

1. Choose the correct alternatives fbrthe following :

10x1 = 10

x>

i)    Which of the following is a bitwise operator ?

a) <    by > =

c)            d) &&

ii)    Apointer*!

a/-mr-mory location containing the address of a <iable

A memory location

a value

d)    none of these.

(Turn over

2151


iii)    RAM stands for

a) Read-Write Access Member Random Access Memoiy

c)    Read Access Memoiy

d)    none of these.

iv)    Number of bytes required for double in a 32 bit machine is


a) 64

c) 8

v)    The purpose of mode r+ is to

a)    open for only reading 7

b)    open for only writing

c)    open for both reading and writing

d)    none of these.

vi)    What will be the ccxrecv output of the following code ?

int x = 9; if(10)

pxtntfCVod", ++.*) ;

else

printf("%d", x++);

a) 9    b) 10

0$ 11    & 12.

vii) v Which is the range of unsigned short integer ?


a) 0 to 65535    b)/ 0 to 255

c) - 128 to 127    d) None of these,

viii) Which of the following declarations is invalid ?

a) int 2A    b) int A2A

c) int A2    dK intAA2.

ix)    Members of a union use

a)    different storage locations

b)    same storage location

c)    no storage location

d)    none of these.

x)    Which among the following is a special operator ?

a) <<    b) + +

? :    d) sizeof().

GROUP -B ( Short Answer Type Questions )

Answer any three of the following. 3x5= 15

Briefly describe the functions of different components of a conventional digital computer with a suitable block diagram. Write a C program to arrange a set of n numbers in ascending order.

Using ternary operator write <t macro to find out the absolute value of a number.

Draw a flowchart to find the largest among three numbers taken as input.

a)    What are the (differences between recursion and iterations ? \j

b)    Write a recursive C-function to calculate factorial of a number.    2 + 3

GROUP -C 3U>ng Answer Type Questions )

Answer any three of the following. 3 x 15 = 45

a)    Differentiate between while and do-while statements with suitable example.

b)    Differentiate between break and continue statements with suitable example.

c)    Write a C program to check whether a given number is prime or not.    5 + 4 + 6

[ Turn over

3


151


8.    a) i) Convert fe "1011010 ) 2 to Octal

ii)    Convert ( 35*453 ) 10 to Binary

iii)    Convert ( SAC ) 16 to Decimal

iv)    Convert ( - 496 ) 10 to Octal

v)    Convert ( lOQIQIl } 2 to Hexadecimal.

b) What are 2 s complement numbers ? Using 2's compliment system perform ( 55 10 - 34 i0 ) in binary.

15 x 2 ) + 2 + 3

9.    a) What is an array ? What condition must be satisfied by

the entire element of any given array ? What are subscripts ?    <>

b)    Write a program in C to multiply two 2D matrices and display the resultant matrix,

c)    Explain the role of the C preprocessor. What is macro and how is it different from a C variable name ?

4 + 5 + 6

10.    a) What is a function ? What are the advantages of using

functions ? What is the purpose of the return statement ?

b)    What are function prototypes ? When and where are the prototypes normally used ?

c)    Write a C program to find out the GCD of a number using recursion.    5 + 5 + 5

11.    a) Explain the "Call by Value" and "Call by Reference"

mechanism for passing arguments into a function call in general with example.

b) Write a program in C to find out the number of vowels in a string.    10 + 5





2151    4







Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER West Bengal Institute of Technology (WBIT) 2010-1st Year B.Tech Electronics and Communications Engineering WBUT 1st ntroduction to Computing - Question Paper