You are on page 1of 2

Programming Logic

1) Which of the below data type occupies the most amount of memory?
a) Float
b) Int
c) Double
d) Char
2) Which of the below is NOT a predefined file stream in “C” language>
a) stdout
b) stdio
c) stdin
d) stderr
3) A queue is what type of data structure>
a) Circular list
b) Sequential access
c) First in first out
d) Last in first out
4) Which statement about recursion is FALSE
a) In recursive function, only termination condition is specified
b) Does not use stack
c) If the function does not converge to some condition, it leads to infinite recursion
d) Recursion is always applicable for a function
5) The “C” builtin function to release dynamic memory is
a) Dispose
b) Release
c) Free
d) Deallocate
6) Which of the below is a fundamental data type in “C” language:
a) Structure
b) None of the other 3 options
c) Union
d) Boolean
7) Which statement is correct about circular linked list?
a) Can be used to implement undo feature in word processing
b) Doubly linked circular list is NOT possible to implement
c) There is no pointer that points to NULL
d) A node can be inserted but can not be deleted
8) Which is the output of the following code snippet? #include main()
{int const a = 5;
a++;
printf(“%d”,a);
}
a) 6
b) Compile error
c) 5
d) Run time error
9) In “C” language, e can find the length of a string using which function
a) charlength
b) strlen
c) charlen
d) strlength
10) sizeof operator is used to get the size of
a) datatype only
b) datatype or variable
c) available free memory
d) program file in memory

You might also like