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
printf("%d%d", sizeof(ch), sizeof('A'));
}
a. one 1
b. one 2
c. two 2
d. two 1
36) Which of the subsequent statements
about for loop are accurate ?
a. Index value is retained outside the loop
b. Index value can be changed from within
the loop
c. goto can be used to jump, out of the loop
d. All of the above
37 ) A file contains the line " I am a boy
\r\n" then on studying
this line into the array str suing fgets()
what would str contain ?
a. " I am a boy \r\n\0"
b. " I am a boy \r\0"
c. " I am a boy \n\0"
d. " I am a boy"
38) What is the output of the subsequent
'C' program ?
main()
{
printf("\n%x", -1 >> 4);
}
a. ffff
b. 0fff
c. 0000
d. fff0
39) In a C program, constant is described
a. Before main
b. After main
c. Anywhere, but starting on a new line
d. None of the above
40) The statement
printf("d",printf("tim*));
a. outcome in a syntax fault
b. Outputs tim3
c. Outputs garbage
d. Prints tim and terminates abruptly
41) The rule for implicit kind conversion
in 'C' is
a. int < unsigned < float < double
b. unsigned < int < float < double
c. int < unsigned < double < float
d. unsigned < int < double < float
42) Which of the subsequent statements is
accurate ?
a. C provides no input-output features
b. C provides no file access features
c. Provides no features to manipulate
composite objects
d. None of the above
43) Integer division in a 'C' program
outcomes in
a. Truncation
b. rounding
c. overflow
d. None of the above
44) For 'C' programming language, which
of the subsequent statements
is / are actual ?
a. Constant expressions are evaluated at
compile time
b. String constants can be concatenated at
compile time
c. Size of array should be known at compile
time
d. All of the above
45 ) Which of the subsequent operators in
'C' does not associate
from the left ?
a. +
b. ,
c. =
d. %
46) Which of the subsequent operators in
'C' programming language
takes only integer operands ?
a. +
b. *
c. /



( 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