How To Exam?

a knowledge trading engine...


DOEACC Society 2007 DOEACC A Level A3-R3 Programming & Problem solving through "C" Language - Question Paper

Thursday, 13 June 2013 08:45Web

A3-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 The && and || operators
A) compare 2 numeric values
B) combine 2 numeric values
C) compare 2 Boolean values
D) combine 2 Boolean values
1.2 The break statement causes an exit
A) only from innermost loop
B) only from innermost switch
C) from the innermost loop or switch
D) none of the above
1.3 Assuming var1 has value 20. What will subsequent code print?
Printf(“%d %d\n”, var1--, ++var1);
A) 20 20
B) 19 20
C) 20 21
D) 21 22
1.4 When accessing a structure member, the identifier to the left of the dot operator is the
name of
A) a structure member
B) a structure tag
C) a structure variable
D) the keyword struct
A3-R3 Page one of five January, 2007
1.5 A static automatic variable is used to
A) make a variable visible to several functions
B) retain a value when a function is not executing
C) conserve memory when a function is not executing
D) none of the above
1.6 Which of the subsequent directive creates functions like macros?
A) #include
B) #define
C) #undef
D) #ifdef
1.7 Which format specification is used in printf statement to print hexadecimal format
A) %i
B) %c
C) %x
D) %u
1.8 What will be the output of the subsequent program:
Main()
{
int val = 500;
int *ptr = &val;
int **ptr1 = &ptr;
printf(“val = %d”, **ptr1);
}
A) 500
B) address of ptr
C) contents of ptr
D) none of the above
1.9 size of operator returns the size in bytes of
A) identifier
B) kind
C) identifier or kind
D) array
1.10The value of variable x after executing the subsequent code will be:



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER DOEACC Society 2007 DOEACC A Level A3-R3 Programming & Problem solving through "C" Language - Question Paper