CQUES3

6
1). char *p = "string%...." printf ("%s", p) ; 2) x = (2+3), 3<5, 10 | 01 | 101, 5==5 ; 3) int z[6] = { 1, 2, 3, 4, 5, 6 } int i = 3 ; printf ("%d%d",z[i],i[z]) ; 4) 5) In which memory access do you use cycle s tealing ? 6) printf ("%u\n", -1) ; 7) Maximum no. of hosts allowed in Class C address ? 8) Code Encryption - in which layer of OSI model ? 9) Floating point numbers are converted into common format in which layer ? 10) What does shared library mean ? sharing code, data or stack ? 11) Worst case order in a) AVL b) Quicksort ? 12) Which of the following will cause interrupt ? a) div by zero. b) trap - switching from user to kernel. c) I/O access. 13) Which circuit will consume less power ? a) CMOS b) TTL c) ITL(?) 14) Where do you use semaphore ? a) for transferring data between two machines . b) for avoiding collision between accessing resources. c) ? 15) Racing between two threads will occur when ? a) when priorities are determined. b) when priorities are not determined. c) when lower priority exceeds higher priority. d) when higher priority exceeds lower priority. 16) char *a[] = { "1", "2", "3", "4" } ; printf ("%d", sizeof(a) / sizeof(char*) ) ; 17) malloc allocates memory at a) run time. b) compile time. c) load time. d) link time. 18) Virtual memory size normally is : a) greater than

Transcript of CQUES3

8/14/2019 CQUES3

http://slidepdf.com/reader/full/cques3 1/6

1). char *p = "string%...."printf ("%s", p) ;

2) x = (2+3), 3<5, 10 | 01 | 101, 5==5 ;

3) int z[6] = { 1, 2, 3, 4, 5, 6 }int i = 3 ;printf ("%d%d",z[i],i[z]) ;

4)

5) In which memory access do you use cycle stealing ?

6) printf ("%u\n", -1) ;

7) Maximum no. of hosts allowed in Class C address ?

8) Code Encryption - in which layer of OSI model ?

9) Floating point numbers are converted into common format inwhich layer ?

10) What does shared library mean ? sharing code, data or stack ?

11) Worst case order in a) AVL b) Quicksort ?

12) Which of the following will cause interrupt ?a) div by zero.b) trap - switching from user to kernel.c) I/O access.

13) Which circuit will consume less power ?a) CMOSb) TTL

c) ITL(?)

14) Where do you use semaphore ?a) for transferring data between two machines .b) for avoiding collision between accessing resources.c) ?

15) Racing between two threads will occur when ?a) when priorities are determined.b) when priorities are not determined.c) when lower priority exceeds higher priority.d) when higher priority exceeds lower priority.

16) char *a[] = { "1", "2", "3", "4" } ;printf ("%d", sizeof(a) / sizeof(char*) ) ;

17) malloc allocates memory ata) run time.b) compile time.c) load time.d) link time.

18) Virtual memory size normally is :a) greater than

8/14/2019 CQUES3

http://slidepdf.com/reader/full/cques3 2/6

b) less thanc) equal tod) not related toRAM.

19) char * getversion ()#define void int

void main ( void ){

printf ("%s\n", getversion()) ;}

char *getversion (){

char *a = " " ;return a ;

}

20) No. of IP octets ?

21) Which of the following methods uses less CPU time ?a) program I/O.b) interrupt I/O.c) DMA.

22) Which of the following are not in SDLC ( software developmentlife cycle ) ?a) waterfall.b) transmission flow.c) spiral.d) prototyping.

23) software testing involves what ?

HUGHES

1) If two dice are tossed what is the guarantee that itwill generate a six ?

2) multiplexer dgm ouput ?

3) LXI B, 1023loop: DEC BLNZ loop

how many times does this loop runs ?

4) ouput of a logic circuit ?

5) what is the difference between synchronous and asynchronoustransmission ?

6) what is BNF ?

7) How do you create virus support ?

8/14/2019 CQUES3

http://slidepdf.com/reader/full/cques3 3/6

8) which protocol does not support VC ( virtual circuit) ?a) IPb) ATMc) frame relay?d) X.25

9) a+a*a+ahow many pairs are possible ?

a) 4b) 5c) 6d) 10

10) static RAM, dynamic RAM- faster.- retain info after power off.-work on DC/AC.

11) Disk arm scheduling.

12) which parsing is the best ?

-LALR-SLR-CLR

13) Context sensitive grammar is recognized by ?

14) turing machine better than FDA ?

15) hit ratio ?

16) balance given AVL tree.

17) sort data using heap sort, binary sort

how many swaps required ?

18) what are source routing bridges ?

19) which order of process state is correct ?? -> timeout, ready -> blocked, ????

PSPL

2 sections 5 questions each. 1 hour.

1) which is efficient in terms of page fault ?

for i = 1 to nfor j = 1 to m

print a[i][j] (((( or print a[j][i] )))array is row major.

2) orders of search time ina) array b) linked list c) AVL

3) what is AVL tree ?

4) what is a foreign key ?

8/14/2019 CQUES3

http://slidepdf.com/reader/full/cques3 4/6

5) search your name from a phone directory which contains3 lakh names. each page 500 names. how many pages doyou search ?

6) 7 times a dice is rolled. how many times does a faceappears atleast twice ?????????

7) language for given automata.

8) do you need a direct intenet connection for a HTTP server ?

9) calculate the values of variables in case of call of reference.

10) given the prog segment :

int i = 1, sum = 0 ; Arepeat

sum = sum + i Bi++ I

until ( i = n) T

what is the execution structure ?(ABI)*TA(BIT)*TAT(BIT)*A(BIT)+

11) compare between select, project, join.

12) given specifications write optimal query.

DCM

1) when you create a table, you use -DDL/DML ?

2) The ER model is about what ?

3) What is NetBIOS ?

4) What is the memory management scheme ina) MSDOS 6.2b) Windows NT

5) Ethernet is what ?a) multicastb) unicastc) broadcastd) combination

6) cat file1 >> file1 ?

7) rn f1 f2 ?

8/14/2019 CQUES3

http://slidepdf.com/reader/full/cques3 5/6

8) inode contains what ?a) parent inode no.b) filenamec) time of change and paraameters

9) how many laayers are there in X.25 ?

10) ATM uses whaat switching ?

11) LEX BX, address .What happens ?

12) Physical layer folows :a) unicastb) multicaastc) a& bd) broadcast

13) Abstract syntax layer is in which layer ?a) Network Layerb) Presentation Layer

c) Session Layerd) Transport Layer.

14) Oracle's ingress uses what model ?a) Networkb) Relationalc) Hierarchical

Frontier

1) Why is hardware support needed for paging ?

2) Is paging required to implement virtual memory ?

3) Is a loaader a part of OS ?How does MSDOS do its loading ?

4) Given n points in a plane, find the minimum distancebetween two points ?

5) At k th level, how maany nodes will be there in aa) binary tree.b) B tree.At k th depth ?depth = level - 1

6) Insertion is fast in ISAM or B tree ?

7) What does C provide for I/o ?

8/14/2019 CQUES3

http://slidepdf.com/reader/full/cques3 6/6

8) What is tunneling ?

9) What does haardware router do ?

10) Multihomed software router . What will it have ?

11) Compare a B+ tree of order 1 with binary tree .

12) What is an anycast packet ?

13) In telnet why can't you transfer files ?

14) One is UDP based and the other is TCP based,a) FTP b) TFTPWhat should you do so that both can talk and traansfer files ?

15) What is the size of window in sliding window protocol ?( comapred to buffer size )

16) Given fd s normalize.

17) Given specifications write SQL Query.

18) what is two phase locking ? What are its disadvantaages ?

19) given two trees find the AVL one ?

20) can pipes be shared across unrelaated processes ?

21) void f ( char*)main (){

char* str = "Hello World" ;f ( str ) ;

}

void f ( char * str ){

printf ("%s\n", str) ;}

22) Write a recursive routine to find the depth of theAVL tree.

23) While relocating do you need the OS support ?

24) What protocol does application taalk follow ?

a) CSMA/CDb) token ringc) token busd) ????