C - Files and Preprocessors

C - Files and Preprocessors
31. The function used for reading binary stream is
  • read ( )
  • fread ( )
  • fscanf ( )
  • all the above
Show Answer
32. Identify the functions for in-memory for mat conversions
  • realloc ( )
  • sprintf ( )
  • sscanf( )
  • both options b and c
Show Answer
33. The value of string after  exeecuting the following statements is
int x = 25; char string [5]; sprintf ( string, "%d", x);
  • "25"
  • 25
  • TWO FIVE
  • 25000
Show Answer
34. The value of ch after executing the following statements is
int x; char ch; char string [20] = "100 5";
sscanf (string, "%3d%d", &x, &ch);
  • 5
  • blank
  • "5"
  • NULL
Show Answer
35. Identify the correct statement.
  • # include "filename"
  • #include
  • both options a and b
  • #include filename
Show Answer
36. The following line in a program
#
represents
  • an invalid code
  • a null dirrective
  • a comment
  • a page number
Show Answer
37. Macros
  • can be recursively defined
  • cannot be recursively defined
  • cannot be defined
  • are not preprocessor facility
Show Answer
38. Identify the stringzing operator.
  • a+
  • ::
  • #
  • ##
Show Answer
39. idenfity the token pasting operator
  • +
  • ++
  • #
  • ##
Show Answer
40. The directive (s) used in conditional compilation is (are)
  • #if
  • #elif
  • #else
  • all the above
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test