0

C Programming Language Quiz - 1

Description: C Programming Language Quiz - 1
Number of Questions: 10
Created by:
Tags: c
Attempted 0/10 Correct 0 Score 0
c
  1. is correct

  2. has syntax error

  3. causes run-time error

  4. none of the above


Correct Option: B
c
  1. s2 = s1;

  2. strcpy(s2,s1);

  3. s2 == s1;

  4. all three are wrong


Correct Option: B
c
  1. Positive number

  2. Even number

  3. Odd number

  4. Prime number


Correct Option: A
c
  1. Infinite loop

  2. Syntax error

  3. Depends on the compiler

  4. none of the above


Correct Option: A

The highest digit in any number system equals:

c
  1. Zero

  2. Base - 1

  3. Base 1

  4. none of the above


Correct Option: B
c
  1. to write output to the screen

  2. the program entry point

  3. Both correct

  4. Both wrong


Correct Option: B

To get a statement from the user input in the array char s[100]:

c
  1. gets( s[100] );

  2. gets( s[] );

  3. gets( s );

  4. none of the above


Correct Option: C
- Hide questions