How To Exam?

a knowledge trading engine...


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

Friday, 14 June 2013 03:30Web
A) This cannot be initialized.
B) This is initialized once at the commencement of execution and cannot be changed at run
time.
C) This retains its value through the life of the program.
D) This is identical as an automatic variable but is placed at the head of a program.
1.9 What will be the output of the subsequent program?
main()
{
int a, *ptr, b, c;
a = 25;
ptr = &a;
b = a + 30;
c = *ptr;
printf(“%d %d %d”, a, b, c);
}
A) 25, 25, 25
B) 25, 55, 25
C) 25, 55, 25
D) None of the above
1.10If a = 0´aa and b = a << one then which of the subsequent is actual
A) b = a
B) b = 2a
C) a = 2b
D) b = a - 1
B1.3-R3 Page four of six January, 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 It is not possible to print the % character as the function printf treats % as the beginning
of a conversion specification.
2.2 A structure can include 1 or more pointers as members.
2.3 It is not possible to have formatted input / output in ‘C’.
2.4 It is not possible to have nested if – else statements in ‘C’.
2.5 The increment operator ++ does not work with float variable.
2.6 *a is the identical as a[ ] in a parameter declaration.
2.7 In ‘C’ programming language, strings are represented using an array.
2.8 Relational operators have higher precedence than arithmetic operators.
2.9 A structure cannot be a member of a union.
2.10*p++ increments the content of the location pointed by p.
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 An Operator in ‘C’ permits 2 various expressions to
appear in situations where only 1 expression is
ordinarily be used.
A. The operator &&
3.2 Variables, internal to a function, come into existence
when the function is called
B. Static variables
3.3 No space allocated for storage of character during
compilation time
C. Global variables
3.4 p is pointer to a function that returns a pointer to
integer
D. The comma operator (,)
3.5 Self-referencing structure E. int *p[10]
3.6 Accomplishing indirection with pointer to structure F. automatic variable



( 0 Votes )

Add comment


Security code
Refresh

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