(Paper) CSC PLACEMENT PAPER PATTERN (II)

CSC PAPER 2 :-

Instructions: ? This is a 40 minutes paper containing 75 questions. ? There is no negative marking.

1.------- is associated with webservices.

a) WSDL b) WML c) web sphere d) web logic

2.any large single block of data stored in a database, such as a picture or sound file, which does not include record fields, and cannot be directly searched by the database?s search engine.

a) TABLE b) BLOB c) VIEW d) SCHEME

3.Areserved area of the immediate access memeory used to increase the running speed of the computer program.

a) session memory b) bubble memory c) cache memory d) shared memory


4.a small subnet that sit between atrusted internal network and an untruster external network, such as the public internet.

a) LAN b) MAN c) WAN d) DMZ

5.technologies that use radio waves to automatically identify people or objects,which is very similar to the barcode identification systems,seen in retail stores everyday.

a)BLUETOOTH b) RADAR c)RSA SECURE ID d)RFID

6.main(){

float fl = 10.5;

double dbl = 10.5

if(fl ==dbl)

printf(?UNITED WE STAND?);

else

printf(?DIVIDE AND RULE?)

}

what is the output?

a)compilation error b)UNITED WE STAND c)DIVIDE AND RULE d)linkage error.

7.main(){

static int ivar = 5;

printf(?%d?,ivar--);

if(ivar)

main();

}

what is the output?

a)1 2 3 4 5 b) 5 4 3 2 1 c)5 d)compiler error:main cannot be recursive function.

8.main()

{

extern int iExtern;

iExtern = 20;

printf(?%d?,iExtern);

}

what is the output?

a)2 b) 20 c)compile error d)linker error

9..#define clrscr() 100

main(){

clrscr();

printf(?%d\n\t?, clrscr());

}

what is the output?

a)100 b)10 c)compiler errord)linkage error

10.main()

{

void vpointer;

char cHar = ?g?, *cHarpointer = ?GOOGLE?;

int j = 40;

vpointer = &cHar;

printf(?%c?,*(char*)vpointer);

vpointer = &j;

printf(?%d?,*(int *)vpointer);

vpointer = cHarpointer;

printf(?%s?,(char*)vpointer +3);

}

what is the output?

a)g40GLE b)g40GOOGLE c)g0GLE d)g4GOO

11.#define FALSE -1

#define TRUE 1

#define NULL 0

main() {

if(NULL)

puts(?NULL?);

else if(FALSE)

puts(?TRUE?);

else

puts(?FALSE?);

}

what is the output?

a)NULL b)TRUE c)FALSE d)0

12.main() {

int i =5,j= 6, z;

printf(?%d?,i+++j);

}

what is the output?

a)13 b)12 c)11 d)compiler error

13.main() {

int i ;

i = accumulator();

printf(?%d?,i);

}

accumulator(){

_AX =1000;

}

what is output?

a)1 b)10 c)100 d)1000

14.main() {

int i =0;

while(+(+i--)!= 0)

i- = i++;

printf(?%d?,i);

}

what is the output?

a)-1 b)0 c)1 d)will go in an infinite loop

15.main(){

int i =3;

for(; i++=0;)

printf((?%d?,i);

}

what is the output?

a)1b)2c)1 2 3d)compiler error:L value required.

16.main(){

int i = 10, j =20;

j = i ,j?(i,j)?i :j:j;

printf(?%d%d?,i,j);

}what is the output?

a)20 b)20 c)10 d)10

17.main(){

extern i;

printf(?%d\t?,i);{

int i =20;

printf(?%d\t?,i);

}

}

what is output?

a) ?Extern valueof i ? 20 b)Externvalue of i?c)20d)linker Error:unresolved external symbol i

18.

int DIMension(int array[]){

return sizeof(array/sizeof(int);}

main(){

int arr[10];

printf(?Array dimension is %d?,DIMension(arr));

}

what is output?

a)array dimension is 10 b)array dimension is 1

c) array dimension is 2 d)array dimension is 5

19.main()

{

void swap();

int x = 45, y = 15;

swap(&x,&y);

printf(?x = %d y=%d?x,y);

}

void swap(int *a, int *b){

*a^=*b, *b^=*a, *a^ = *b;

what is the output?

a) x = 15, y =45 b)x =15, y =15 c)x =45 ,y =15 d)x =45 y = 45

20.

main(){

int i =257;

int *iptr =&i;

printf(?%d%d?,*((char*)iptr),*((char *)iptr+1));

}

what is output?

a)1, 257 b)257 1c)0 0d)1 1

21.main(){

int i =300;

char *ptr = &i;

*++ptr=2;

printf(?%d?,i);

}

what is output?

a)556 b)300 c)2 d)302

22.

#include

main(){

char *str =?yahoo?;

char *ptr =str;

char least =127;

while(*ptr++)

least = (*ptr

printf(?%d?,least);

}

what is the output?

a)0 b)127 c)yahoo d)y

23.

Declare an array of M pointers to functions returing pointers to functions returing pointers to characters.

a)(*ptr[M]()(char*(*)()); b)(char*(*)())(*ptr[M])()

c)(char*(*)(*ptr[M]())(*ptr[M]() d)(char*(*)(char*()))(*ptr[M])();

24.void main(){

int I =10, j=2;

int *ip = &I ,*jp =&j;

int k = *ip/*jp;

printf(?%d?,k);

}

what is the output?

a)2 b)5 c)10 d)compile error:unexpected end of file in comment started in line 4

25.main()

{

char a[4] =?GOOGLE?;

printf(?%s?,a);

}

what is the output?

a)2 b) GOOGLE c) compile error: yoo mant initializers d) linkage error.

26.For 1MB memory, the number of address lines required

a)12 b)16 c)20 d)32

27.There is a circuit using 3 nand gates with 2 inputes and 1 output,f ind the output.

a) AND b) OR c) XOR d) NAND

28.what is done for push operation

a) SP is incremented and then the value is stored.

b) PC is incremented and then the value is stored.

c) PC is decremented and then the value is stored.

d) SP is decremented and then the value is stored.

29.Memory allocation of variables declared in a program is ------

a) Allocated in RAM

b) Allocated in ROM

c) Allocated in stack

d) Assigned in registers.

30.What action is taken when the processer under execution is interrupted by TRAP in 8085MPU?

a) Processor serves the interrupt request after completing the execution of the current instruction.

b) processer serves the interrupt request after completing the current task.

c) processor serves the interrupt immediately.

d) processor serving the interrupt request depent deprnds upon the priority of the current task under execution.

 

 

Previous  |  Next