How To Exam?

a knowledge trading engine...


The Global Open University 2012-1st Year B.Sc Computer Science Global open University of Programming in C - Question Paper

Wednesday, 06 February 2013 07:55Web
'C' program?
main ()
{
int a[5] = {2,3};
printf ("\n%d%d%d", a[2],a[3],a[4]);
}
a. Garbage values
b. two three 3
c. three two 2
d. 0 0 0
26) In the subsequent 'C' program, obtain out
the error, if any?
main()
{
int i = 1;
for(;;)
{
printf("%d, i++);
if (i > 10)
Break;
}
}
a. The condition in the for loop is a must
b. The 2 semicolons should be dropped
c. The for loop should be changed by a while
loop
d. No fault
27) What is the output of the subsequent
'C' program ?
main()
{
int i = 2;
printf("n%d%d", ++i, ++i);
}
a. three 4
b. four 3
c. four 4
d. Output may vary from compiler to
compiler
28 ) What is the output of the subsequent
'C' program ?
main()
{
int x = 10, y = 10, z = 5, i ;
i = x
printf("\n%d", i);
}
a. 1
b. 0
c. fault
d. 5
29) Which of the subsequent statements
about for loop is (are)
accurate ?
a. Using break is equivalent to using gotothe
statement immediately subsequent the
loop
b. continue on is used to by-pass the remainder
of the current pass of the loop
c. If comma operator is used, then the value
returned is the value of the right operand
d. All of the above.
30) What is the output of the subsequent
'C' program ?
main()
{
printf("%f",sqrt(36.0));
}
a. 6.0
b. 6
c. 6.000000
d. a few absurd outcome
31) By default any real number in 'C' is
treated as
a. a float
b. a double
c. a long double
d. Depends upon the memory model that you
are using.
32) What is the output of the subsequent
'C' program ?
main()
{
printf(5 + "Fascimile");
}
a. fault
b. Fascimile
c. mile
d. None of the above
33) What is the output of the subsequent
'C' program ?
main()
{
printf("%c", "abcdefgh"[4]);
}
a. fault
b. d
c. e
d. abcdefgh
34 ) What is the output of the subsequent
'C' program ?
main()
{
char str[7] = "Strings";
pringf("%s",str);
}
a. fault
b. Strings
c. Cannot predict
d. None of the above
35) What is the output of the subsequent
'C' program ?
main()
{
char ch = 'A';



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER The Global Open University 2012-1st Year B.Sc Computer Science Global open University of Programming in C - Question Paper