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

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 The subsequent is a program
Main()
{
int x = 0;
while(x<=10)
for( ; ; )
if( ++ x%10 = =0)
break;
printf(“x = %d”, x);
}
What will be the output of the above program?
A) Will print x = 10
B) Will provide compilation fault
C) Will provide runtime fault
D) Will print x = 20
1.2 Consider the subsequent variable declaration
Union x{
int i;
float f;
char c;
}y;
B1.3-R3 Page one of six January, 2006
if the size of i, f and c are two bytes, four bytes and one byte respectively then the size of the
variable y is:-
B1.3-R3 Page two of six January, 2006
A) one byte
B) two bytes
C) four bytes
D) seven bytes
1.3 Pick up the odd 1 out from the subsequent
A) x = x – 1
B) x - = 1
C) x - -
D) x = - 1
1.4 What is the value of ‘average’ after the subsequent program is executed?
main()
{
int sum, index;
float average;
sum = 0;
for( ; ; ) {
sum = sum + index;
++ index;
if (sum > = 100) break;
}
avg. = sum / index;
}
A) 91/13
B) 91/14
C) 105/14
D) 105/15
1.5 Suppose i, j, k are integer variables with values 1, 2, three respectively. What is the value of
the subsequent expression?
! (( j + k ) > (i + five ))
A) 6
B) 5
C) 1
D) 0
1.6 If a = -11 and b = -3. What is the value of a % b?
A) - 3
B) - 2
C) 2
D) 3
1.7 If c is a variable initialized to 1, how many times will the subsequent loop be executed?
while(( c > 0 && (c < 60))
{
c ++;
}
B1.3-R3 Page three of six January, 2006
A) 61
B) 60
C) 59
D) 1
1.8 Which 1 of the subsequent defines correctly a static 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