C Data Types 2 Questions and Answers

Practice Mode
Showing 10 of 159 questions
Q41
Indentifiers refer to
  • A variable
  • B Functions
  • C Arrays
  • D All o the above
Answer: Option D
Q42
Which of the followint is a valid identifier ?
  • A _ _
  • B 9
  • C _
  • D IF
Answer: Option D
Q43
An individual entiry of a program is known as :
  • A Keywords
  • B Identifiers
  • C Tokens
  • D Constants
Answer: Option C
Q44
Find the output. void main ( ) char s='A' char a='a'; printf ("%d", s-a); }
  • A -32
  • B -18
  • C Compilation error
  • D None of these
Answer: Option A
Q45
Character constant is 2 byte long to represent
  • A hexadecimal constant
  • B octal constant
  • C both octal & hexadecimal constant
  • D None of these
Answer: Option C
Q46
The range of an integer constant for a computer with 'w' bit word is
  • A -2(power of w) to +2 (power of w-1)-1
  • B -2(power of w-1) to +2 (power of w+1)-1
  • C -2(power of w-1) to +2 (power of w-1)+1
  • D -2(power of w-1) to +2(power of w-1)-1
Answer: Option D
Q47
ASCII code to represent a character set uses how many bits ?
  • A 6 bits
  • B 7 bits
  • C 8 bits
  • D None of these
Answer: Option B
Q48
Which of the following is/are valid white space character ?
  • A Blank space
  • B Horizontal tab
  • C Form feed
  • D New line
Answer: Option C
Q49
Which of the following is/are valid white space character ? I. Blank space II. Horizontal tab III. Form feed IV. New line
  • A only I
  • B both I & IV
  • C I, II & IV
  • D All of the above
Answer: Option C
Q50
Find the output void main ( ) { int a=5, b=3 c; c=a, a=b, b=c; printf (%d %d", a, b); }
  • A 3 5
  • B 5 3
  • C Compilation error
  • D None of these
Answer: Option A
Questions and Answers for Competitive Exams Various Entrance Test