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
3.7 Random access in the file; file specified through file
descriptor
G. Useful for link-list
implementation
3.8 Returns initialized storage in run-time H. seek
3.9 Variables can be described in ‘C’ which occupies less
space than character variables
I. fseek
3.10 Valid mode for opening a file; permits learn and write J. calloc
K. w+
L. malloc
M. r+
N. bit-fields
O. arrow operator
P. int(*(*pc))
Q. char *s
B1.3-R3 Page five of six January, 2006
4. every statement beneath has a blank space to fit 1 of the word(s) or phrase(s) in
the list beneath. Enter your option in the “tear-off” ans sheet attached to the
ques. paper, subsequent instructions therein. (1 x 10)
A. change B. trinary C. - operator
D. Automatic E. Variable F. “&” operator
G. Static H. Dynamically I. Externally
J. void K. A character L. An integer
M. EOF N. fclose O. actual
4.1 printf( ) function uses _________ number of arguments.
4.2 ________ can be used as both binary and unary operators.
4.3 Link lists can be created _____________.
4.4 Loop invariants are assertions that remain _______ before and after execution of loops.
4.5 File descriptor is ______________.
4.6 Pointer arguments enable a function to access and _____ objects described in the calling
routine.
4.7 The function getchar( ) returns _______ when there is no more input character.
4.8 Any pointer can be cast to __________ without loss of info.
4.9 To prevent the use of functions across various files, ____ storage class is used.
4.10 ? : is ________ operator.
B1.3-R3 Page six of six January, 2006
PART TWO
(Answer any 4 questions)
5.
a) explain with the help of examples the action of break statement and the continue on statement.
b) Does the null statement have any uses besides indication that the body of a loop is empty?
Explain.
c) What is the purpose of the \? Escape sequence?
(8+4+3)
6.
a) Is it legal to put a function declaration inside the body of a different function? If yes, provide an
example.
b) Is it legal for a function f1 to call f2, which then calls f1? Justify your ans.
c) Write a ‘C’ function that returns the k-th digit from the right in the positive integer n. For
example, digit(829,1) returns 9, digit(829,3) returns 8. If k is greater than the number of
digits in n then the function is to return –1. Include improper documentation in your
program.
(4+2+9)
7.
a) If a pointer is an address, what does the expression like p + j mean?
b) Is i[a] identical as a[i]? Justify your ans.
c) Write the subsequent function:
Bool search(int a[], int n, int x);
Where a is an array to be searched, n is the number of elements in the array, and x is
the search key. “search” should return actual if x matches a few element of a, FALSE if it
doesn’t. Use pointer arithmetic to visit array elements. Include improper
documentation in your program.
(4+2+9)
8.
a) Develop an algorithm to do the following:
learn an array of 20 elements and then send all negative elements of the array to the
end without altering the original sequence.
b) Draw a flow chart and then write a ‘C’ program to generate 1st 15 members of the subsequent
sequence.
1, 3, 4, 7, 11, 18, 29, …
(5+10)
9. Develop a flowchart and then write a program for analyzing a line of text stored in a file
by examining every of the characters and displaying into which of several various
categories vowels, constants, digits, white spaces it falls. Count of the number of vowels,
consonants, digits and white space characters. Include an improper documentation in
your program.
(15)
B1.3-R3 Page seven of six January, 2006




( 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