How To Exam?

a knowledge trading engine...


DOEACC Society 2006 DOEACC B Level B1.3 Programming and Problem Solving through 'C' Language ( ) - Question Paper

Friday, 14 June 2013 06:15Web
C) flag.color = ‘White’;
D) flag.i.color = ‘White’;
1.9. Which of the subsequent is actual for the switch statement:
switch(var)
{
};
A) Can be used when only 1 variable is tested
B) The variable must be an integral kind
C) every possible value of the variable can control a single branch
D) All of the above
1.10. Enumeration is:
A) A list of strings
B) A set of numbers
C) A set of legal values possible
D) None of the above
B1.3-R3 Page two of six July, 2006
2. every statement beneath is either actual or FALSE. select the most improper one
and ENTER in the “tear-off” sheet attached to the ques. paper, subsequent
instructions therein. (1 x 10)
2.1 An ampersand (&) is needed before every variable name in printf.
2.2 It is an fault to place the pound(#) sign of a preprocessor control line in any column other than
column 1.
2.3 The goto statement is a branching statement in ‘C’ programming.
2.4 An expression with the star operator, such as *ptr, cannot occur on the left-hand side of an
assignment statement.
2.5 An array’s name by itself cannot occur as the left-hand side of an assignment statement.
2.6 Function calls cannot be nested.
2.7 every function must have at lowest 1 return statement.
2.8 A linked list is a data structure, which is created by dynamic allocation of memory.
2.9 The declaration void function-name() shows that function-name returns nothing to the
calling program.
2.10Member variables of 2 various structures may have the identical name.
3. Match words and phrases in column X with the nearest related meaning/
word(s)/phrase(s) in column Y. Enter your selection in the “tear-off” ans sheet
attached to the ques. paper, subsequent instructions therein. (1 x 10)
X Y
3.1 a[i] can be written as A. Unending loop if no break statement inside
the body
3.2 calloc( ) B. p is a pointer to a function that returns integer
3.3 union C. allocate and clear memory
3.4 for(;;) D. *(a + i)
3.5 register variable E. allocates memory but does not clear memory
3.6 int(*p)[10] F. is a memory location that is used by several
various variables, which may be of various
type.
3.7 int(*p)(void*,void*) G. directives
3.8 do-while loop H. Increase in speed of execution
3.9 #include, #define I. p is pointer to an array of integers
3.10 typedef J. p is function that returns pointer to integer



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER DOEACC Society 2006 DOEACC B Level B1.3 Programming and Problem Solving through 'C' Language ( ) - Question Paper