Q51. Arguments can be passed to functions by sending the
addresses of the arguments :
a) call by value
b) call by reference
c) both
d) none
Q52. The different ways in which data can be
organized is
a) data
b) data structures
c) hashing
d) database management system
Q53. Stack follows ________ data structure.
a) FIFO
b) LIFO
c) linear
d) non-linear
Q54. Macros can be split into multiple lines
with a _________ present at the end of line.
a) \
b) /
c) *
d) ->
Q55. Following operations can be performed
using pointers :
a) Addition of two pointers
b) Subtraction of two pointers
c) Increment
d) Decrement
Q56. What does ‘[^\n]’ indicates ?
a) Array of ‘n’ elements.
b) String upto ‘n’ elements.
c) Input will be taken until new line is encountered.
d) None of the above
Q57. Which string function is used to find
the first occurrence of a given character in a string.
a) strchr
b) strerr
c) strrchr
d) strcmp
Q58. Which string function is used to find
the first occurrence of a given string in another string.
a) strcmp
b) strchr
c) strstr
d) strfind
Q59. Which string function is used to set
first ‘n’ characters of a given character to a given character.
a) strsetn
b) strset_n
c) strnset
d) strset
Q60. Which string function is used to get the
duplicate of a string.
a) strdup
b) strdupli
c) duplicate
d) strcpy
Q61. What are the application of Structures ?
a) changing the size of cursor
b) hiding file from the directory
c) formatting a floppy
d) All of the above
Q62. All elements of one structure variable can be assigned to
another structure variable using :
a) ==
b) equals
c) =
d) All of the above
Q63. It is possible to pass a structure variable to a function via :
a)
b)
c)
d) None
Q64. The character ‘e’ in getche() stands for
:
a) error
b) end
c) echo
d) None of these
Q65. The command line argument _________ contains values passed
to the program, whereas __________ contains number of arguments.
a) arguc, arguv
b) v, c
c) argv, argc
d) None of these

0 Comments