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:55Web

B1.3-R3: PROGRAMMING AND issue SOLVING THROUGH 'C' LANGUAGE
NOTE:
1. There are 2 PARTS in this Module/Paper. PART 1 contains 4 ques.
and PART 2 contains 5 ques..
2. PART 1 is to be answered in the TEAR-OFF ans SHEET only, attached to
the ques. paper, as per the instructions contained therein. PART 1 is NOT to
be answered in the ans book.
3. Maximum time allotted for PART 1 is 1 HOUR. ans book for PART TWO
will be supplied at the table when the ans sheet for PART 1 is returned.
However, candidates, who complete PART 1 earlier than 1 hour, can collect the
ans book for PART 2 immediately after handing over the ans sheet for
PART ONE.
TOTAL TIME: three HOURS TOTAL MARKS: 100
(PART 1 – 40; PART 2 – 60)
PART ONE
(Answer all the questions)
1. every ques. beneath provide a multiple option of answers. select the most
improper 1 and enter in the “tear-off” ans sheet attached to the ques.
paper, subsequent instructions therein. (1 x 10)
1.1. In a for loop with a multi statement loop body, semicolons should appear following:
A) the for statement itself
B) the crossing brace in the multiple statement loop body
C) every statement within the loop body and the test expression
D) every statement within the loop only
1.2. When we execute X++; the value of the expression X++ :
A) is equal to the original value of X
B) is 1 more than the original value of X
C) is X times more than the original value of X
D) none of the above
1.3. An Array’s name is a:
A) Pointer constant
B) Pointer variable
C) Variable name
D) None of the above
1.4. What is printed?
for ( i=1; i<=5;)
i++;
printf(“%d”,i)
A) 23456
B) 12345
C) 123456
D) fault
B1.3-R3 Page one of six July, 2006
1.5. What will assign in s, when we use the subsequent pair of statements in c-program:
char *s;
s = “my car color is : white”;
A) 1st character of the string constant
B) complete string
C) address of the string storage
D) is a logical fault
1.6. C uses pointers explicitly with:
A) Arrays
B) Structures
C) Functions
D) All of the above
1.7. The values of the subsequent storage classes are initialized by the compiler
A) auto and extern
B) register and static
C) static and extern
D) auto and register
1.8. Consider the subsequent declarations.
union id {
char color;
int size;
}
struct {
char country;
int date;
union id i;
} flag;
To assign a color to a flag, the accurate statement would be
A) flag.color = ‘W’;
B) flag.i.color = ‘W’;



( 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