CSC placement Papers

CSC Placement Papers : here you can find the all latest previous year question paper of CSC ( Computer Science Corporation ) with answers . You can download CSC placement papers in PDF format with just a single click.All these questions are collected from the students who had already appeared in exams and mostly asked questions in exam. Just try to Practice these questions and solve it.

CSC placement Papers

 

Ques 1 ) Point out the error in the following program.

#include<stdio.h>
#include<stdlib.h>
int main()
{
int *a[3];
a = (int*) malloc(sizeof(int)*3);
free(a);
return 0;
}

A. Error: unable to allocate memory
B. Error: We cannot store address of allocated memory in a
C. Error: unable to free memory
D. No error

Ans: B


Ques 2 )What is the purpose of fflush() function.

A. flushes all streams and specified streams.
B. flushes only specified stream.
C. flushes input/output buffer.
D. flushes file buffer.

Ans; A


Ques 3 ) Point out the error, if any in the program.

#include<stdio.h>
int main()
{
int a = 10;
switch(a)
{
}
printf(“This is c program.”);
return 0;
}

A. Error: No case statement specified
B. Error: No default specified
C. No Error
D. Error: infinite loop occurs

Ans: C


Ques 4 ) What will be the output of the program?
#include<stdio.h>
int addmult(int ii, int jj)
{
int kk, ll;
kk = ii + jj;
ll = ii * jj;
return (kk, ll);
}
int main()
{
int i=3, j=4, k, l;
k = addmult(i, j);
l = addmult(i, j);
printf(“%d, %d\n”, k, l);
return 0;
}

A. 12, 12
B. 7, 7
C. 7, 12
D. 12, 7

Ans: A


Ques 5 ) In C, if you pass an array as an argument to a function, what actually gets passed?

A. Value of elements in array
B. First element of the array
C. Base address of the array
D. Address of the last element of array

Ans: C


Ques 6 ) Out of fgets() and gets() which function is safe to use?

A. gets()
B. fgets()

Ans: B


Ques 7 ) In the following code what is ‘P’?
typedef char *charp;
const charp P;

A. P is a constant
B. P is a character constant
C. P is character type
D. None of above

Ans: A


Ques 8 )Identify which of the following are declarations

1 : extern int x;
2 : float square ( float x ) { … }
3 : double pow(double, double);

A.1
B. 2
C. 1 and 3
D. 3

Ans : C


Ques 9 ) Which of the following statement obtains the remainder on dividing 5.5 by 1.3 ?

A. rem = (5.5 % 1.3)
B. rem = modf(5.5, 1.3)
C. rem = fmod(5.5, 1.3)
D. Error: we can’t divide

Ans: C


Ques 10 ) What will be the output of the program?

#include<stdio.h>
int main()
{
char c=48;
int i, mask=01;
for(i=1; i<=5; i++)
{
printf(“%c”, c|mask);
mask = mask<<1;
}
return 0;
}

A. 12400
B. 12480
C. 12500
D. 12556

Ans: B


Hope you find these CSC Placement Papers useful !

Find More placement Papers Here !

Check The Latest Jobs Here ! 


Leave a Comment

Your email address will not be published. Required fields are marked *