How To Exam?

a knowledge trading engine...


West Bengal Institute of Technology (WBIT) 2009-2nd Sem B.Tech Computer Science and Engineering Computer Science - Basic Computation & Principle of Computer Programming - Question Paper

Wednesday, 17 July 2013 06:25Web



CS/ Tech/SEM-2/C3-201/09    3    S

ENGINEERING St MANAGEMENT EXAMINATIONS, JUNE - 2009

INTRODU CTION TO COMPUTING

SEMESTER - 2

Time : 3 Hours 1    I Full Marks : 70

GROUP-A ( Multiple Choice Type Questions )

1. Choose the correct alternatives for any ten of the following :    10x1 = 10

1) Which one of the following declaration is invalid ?

a) int 2A    b) int A2A

c) intA2    d) intAA2.    f 1

ii)    Which one is the right output ? int x = 9 ;

if (10)

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

else

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

a) 9    b) 10

c) 11    d) 12.

iii)    Which one is the ilght output ?

char aj 50 ) = "computer" ; printiT'%d", strlen(a));

9    b) 10    .

Meftne int char niainO

int i = 65;

printf("si-.eof(l)=%d", sizeof(i));

a) ,;izcof(i)=l

b) sizeof(i)=2 d) sizeof(i)=8.


c) sizcof(i)=4

v) Which one is the light output ? inainO

int i = 5, j - 6, z;

printf("%d", t + ++J);

b) 10 d) 13.


a) 12 c) 11


In Hexadecimal number system, E is equivalen t to the number in decimal

vi)


b) 12 d) 15.


a] 10

c) 14 2321 ( 11/06 jT|



vli) What is the range of unsigned short Int ?


b) 0 to 255


n) 0 to 6553.1


d) none of these.


c) - 128 to 127


viii) Operating system is


b) System Software


a) Application Software


d) None of these.


Firmware


tx) ALU Is a part of


b) CPU d) Input device.


a) Memory

c) Output device


x) Member of xmion uses


a) different storage location b) same storage location


C


c) no storage location


d) none of these.


xi; V.'ltfit will be iiic value of i and m after executing the following code ?


int I ~ 1, m;


m = ( ++;


a) 6, 5 c) 5, 6

\2MUtTi<xT


b) 5, 5 d) 6, 6.


GROUP - B    I, ( Short Answer Type Questions )

Answer any three of the following.    3x5-15

2.    a) Convert ( 17-25) 10 to Binary.    1

b)    What are 2's compliment numbers ? How do you use this system to peri m i ( 51 ) io - { 27 ) 10 in binaiy ?    i + 3

c)    What are the main differences between RAM & ROPvi ?    1

3.    a) What is ternary operator ? Explain with example.    2 + 1

I

b) Write down the difference between compiler and interpreter.    3

4.    a) Write down the r iain characteristics of algorithm.    2

b) Write a flowcnart to find the sum of the all integers ranging from 100 to 200 and divisible by both 2 and 3.    3

5.    Briefly describe the function of different components of a conventional digit J computer with a suitable block diagram.    5

6.    Write a C program to find out the G.C.D of two numbers.    5

GROUP -C ( Long Answer Type Qestioaa )

Answer any three of the following.    3x15 a 5

7.    a) Differentiate between do-while" and "while'1 statements with suitable examo'es,

b)    . Differentiate between "break and "continue" statements with examples.    4

c)    Waat Is the difference between structure and union In C programra: ;g ? Supplement with examples.    4

d)    Explain recursion with an example.    3

3. a) Write a C program to check whether a given nuAber is prime number or not. f

b)    Write a progran/. to compute factorial of a number read from keyboard.    4

c)    What are auto, external and static variables ? Explain their uses with, suitabl'.8 examples.    6

9.    a) What is array of pointers ? Explain with example.    4 D) Explain call by value and call by reference with examples. a

c)    Write a progr am in 0 to find the reail roots of a quadratic equation using defined function Qusa.().    '

10.    a) Explain two iupui Exclusive OR gate using truth table.    2;

b) Why NAND gat e is called universal gate ?    2 /

cj Simplify'    .

( A + B ), ( a.C } -! ( A. B + A .C ) . ( ~A + D )    i

d)    Conv ere :

13 ( 2 AD ) 3 = ( ) r, iii ( 11100111101 }2 = ( ) 16 >  " : *

03


iii) ( 25-125 j 10 - i ) 2.    .. . ...    .

321 ( 11/06 }







Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER West Bengal Institute of Technology (WBIT) 2009-2nd Sem B.Tech Computer Science and Engineering Computer Science - Basic Computation & Principle of Computer Programming - Question Paper