How To Exam?

a knowledge trading engine...


DOEACC Society 2007 DOEACC A Level A3-R3 Programming

Thursday, 13 June 2013 08:45Web
val = -200;
x = (val >= 0 ) ? val : -val
A) 0
B) 200
C) –200
D) 1
A3-R3 Page two of five January, 2007
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 The #undef directive removes a name previously described with #define directive.
2.2 The ‘C’ program can have only 1 command line argument.
2.3 The goto statement causes control to go to a function.
2.4 If you don’t use a return kind in the function declaration, the compiler assumes that the
function does not return anything.
2.5 An array element is accessed using the dot operator.
2.6 continue on statement skips all following statements in the loop body and triggers the next
iteration for the loop.
2.7 The strcmpi function compares 2 strings irrespective of case.
2.8 For loop allows a statement or compound statement to be executed at lowest once.
2.9 The fread function reads formatted data from a stream.
2.10 In ‘C’, unsigned int can have maximum range of values ranging from 0 to 65535.
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 Group of related data items A. ?:
3.2 A file not used for text processing B. Recursion
3.3 Reserved word C. Structure
3.4 A variable that keeps its value even after program
exits the block in which it is declared
D. typecast
3.5 A data kind used for saving storage area E. keyword
3.6 The process by which function calls itself F. Union
3.7 An operation in which value of 1 kind converted
into value of various kind.
G. Binary file
3.8 An operator expressed in 3 part expression H. Call by reference
3.9 A sequence of bytes flowing into or out of program I. Automatic variable
3.10 An external source file that contains declarations and
definitions.
J. Executable file
K. kind checking
L. Static variable
M. stream
N. Header File
A3-R3 Page three of five January, 2007
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. Union B. four C. float
D. indirection E. NuLL F. semicolon
G. void H. header file I. Function
J. two K. pragma L. 5
M. integers N. Macro O. Recursion
4.1 The expression 11%3 evaluates to __________.
4.2 In a 32 bit system float data kind will occupy __________ bytes.
4.3 The closing brace of a structure is followed by __________.
4.4 A function that does not return anything has return kind __________.
4.5 A(n) __________ cannot be passed to a function as an argument.
4.6 An instruction to the compiler to perform an action at compile time is called __________.
4.7 __________ is an example of derived data kind.
4.8 Enumerations can be internally treated as __________.
4.9 Accessing a data object through a pointer rather than directly by name is called ______.
4.10 An identifier described in a #define preprocessor directive to represent a different series of
character is called __________.
A3-R3 Page four of five January, 2007
PART TWO
(Answer any 4 questions; Include improper documentation, wherever necessary)
5.
a) Develop a flowchart and then write a C program to display all prime numbers less than
the number entered by the user.
b) discuss the difference ranging from an array, structure and an enumerated data kind.
(10+5)
6. Write an algorithm and then develop a program to evaluate the roots of a quadratic
equation. describe and use a function cal_roots() to compute the roots such that roots are
also available in calling function i.e. use pointers.
(15)
7. Develop a flowchart and then write a C program to obtain the occurrence (single or
multiple) of a substring in a provided string. The substring and string are entered by the
user. Also point out the location at which the substring occurs.
(15)
8.
a) discuss the difference ranging from parameter passing mechanism “Call by value” and “Call
by reference”. Which is more efficient and why?
b) Develop a flowchart and logic to implement the stack data structure using link list.
(5+10)
9.
a) Draw a flowchart and then write a C program to enter the roll number and marks of any
three subjects of few students from the keyboard and write to a file.
b) It is stated that “C is a middle level language and is good for system level programming.”
define 3 facilities available in ‘C’ which support this statement.
(10+5)
A3-R3 Page five of five January, 2007




( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER DOEACC Society 2007 DOEACC A Level A3-R3 Programming