"O" level course of DOEACC Scheme is equivalent to a Foundation Level Course in Computer Applications. Students can acquire this qualification by undergoing this course and passing the examination conducted by the NIELIT.
1. Each
question below gives a multiple choice of answer. (1x10)
1.1 ‘C’ Programming Language was
developed and written by
A)
Martin Richards
B) Dennis Ritchie
C) Ken
Thompson
D)
Herman Hellorith
1.2 Which of the following is
false in ‘C’ Programming Language
A) Keywords can be used as
variable names
B)
Variable names can contain digits
C)
Variable names do not contain blank spaces
D)
Capital letters can be used in variable names.
1.3 What will be the output of the
following ‘C’ program
main()
{
int a=5;
float b=5.0;
if(a==b)
printf(“a and b are equal”);
else
printf(“a and b are different”);
}
A) a and b are equal
B) a
and b are different
C)
Error
D)
None of the above
1.4 What will be the output of the
following ‘C’ program?
main()
{
int a=1;
int b=5;
if(a=5||b>10)
printf(“I will certainly pass”);
else
printf(“I am not so sure about the result”);
}
A) I will certainly pass
B) I
am not so sure about the result
C)
Error
D)
None of the above
1.5 What will be the output of the
following program?
main()
{
int a;
printf(“%d”,a);
}
A) 0
B) 1
C)
Error
D) Unpredictable Value
1.6 A ‘C’ expression contains
relational, assignment and arithmetic operators. There are no
parentheses used. They will be
evaluated in which of the following order
A)
Assignment Relational Arithmetic
B) Arithmetic Relational
Assignment
C)
Relational Arithmetic Assignment
D)
Assignment Arithmetic Relational
1.7 Prototype of function named
‘fun’ is: int fun(int a,
float b)
Which of the following is
true about function ‘fun’:
A) It
takes two inputs, one integer type and the other float type but returns nothing
B) It
takes two inputs, one integer type and the other float type but returns 0
C) It takes two inputs, one
integer type and the other float type but returns an integer
D) It
takes two inputs, one integer type and the other integer type but returns float
1.8 What will happen if an element
is assigned a value to an element of an array whose
subscript exceeds the size of the
array
A) It
will not be allowed, but no error message will be generated
B)
Compiler will generate an error message suggesting the same
C) The
element will be assigned NULL VALUE.
D) Some other data may be
overwritten
1.9 In the following ‘C’ code
{
FILE *f = fopen( fileName, "r");
fread(f);
if(????)
puts(“End of file reached”);
}
Which
one of the following can replace the ???? in the code above to determine if the
end of
a file
has been reached?
A) f
== EOF
B) feof( f )
C)
eof( f )
D) f
== NULL
1.10 With every use of a memory
allocation function, what function should be used to release
allocated memory which is no
longer needed?
A)
unalloc()
B)
Dropmem()
C)
Dealloc()
D) free()
2. Each statement below is either TRUE or FALSE. Choose
the most appropriate one
and ENTER in the “tear-off” sheet attached to the
question paper, following
instructions therein. (1x10)
2.1 A
structure can contain pointer to itself.TRUE
2.2
Size of all elements in a union should be same.FALSE
2.3
Size of a pointer is equal to the data type it points to. FALSE
2.4 In
‘C’, the compiler does not check if the subscript used for an array exceeds
size of the
array.
TRUE
2.5 A
‘for’ loop in ‘C’ has three statements, namely, assignment, test and increment
statements. TRUE
2.6 cout and cin can be used for output and input
respectively in ‘C’ language. FALSE
2.7
The default initial value of a static int variable
is zero. TRUE
2.8
Binary search can be easily performed on a linked list. FALSE
2.9 A
function name can be passed as an argument to another function. TRUE
2.10 A
‘C’ function can contain many return statements. FALSE
3. Match words and phrases in column X with the closest
related meaning/
word(s)/phrase(s) in column Y. Enter your selection in the
“tear-off” answer sheet
attached to the question paper, following instructions
therein. (1x10)
|
3.1
Do-while loop is H
3.2
This loop control structure takes you to the
beginning
of the loop D
3.3
This is a mandatory function in every ‘C’
program.
Execution starts from this function J
3.4
Value of static storage variable F
3.5
Preprocessor commands are also known as A
3.6 An
array is a collection of E
3.7
The condition that a linked list is empty I
3.8 If
‘x’ is a variable of storage class register B
3.9 If
you have to use many if-else conditions,
they
can be usually implemented by G
3.10
The purpose of library function fflush() is C
4. Each statement below has a blank space to fit one of
the word(s) or phrase(s) in the
list below. Enter your choice in the “tear-off” answer
sheet attached to the question
paper, following instructions therein. (1x10)
A. \b B.
alloc.h C. 1 byte
D. stdio.h
E. CPU Registers F.
&&
G. fclose()
H. 65 I. An Error
J. Array
of characters K. \a L.
&
M. ==
4.1
Logical AND
operator is denoted
by ____F____.
4.2
Size of char
data type is ____C____.
4.3
The variables of storage class register are stored in ____E____.
4.4 If
you try to multiply or add two pointers, it will result in ____I____.
4.5 In
‘C’, strings
are stored in the
form of ___J_____.
4.6
Escape sequence for backspace is
____A____.
4.7
Function used to close a
file is ____G_____.
4.8
The header file which must be included, if you want to use malloc() or calloc() is
___B_____.
4.9
The macro FILE is
defined in header file ___D_____.
4.10
The ASCII value, in decimal, of character ‘A’ is ____H____.
The DOEACC Application form will be start soon on the official website. Candidates can check DOEACC Application form through the official site
ReplyDelete