Quiz 7 (Improvement) And Assignment 4 - Bee-2a *

5 Questions | Total Attempts: 53

SettingsSettingsSettings
Please wait...
Quiz 7 (Improvement) And Assignment 4 - Bee-2a *

Strings, Strings Pointers


Questions and Answers
  • 1. 
    Char str[10] = "A quick brown fox jumped over a lazy dog";puts(str);what will print?
    • A. 

      A quick brown fox jumped over a lazy dog

    • B. 

      Error

    • C. 

      A quick br

  • 2. 
    Char str1[10] "Hello!";int count1 = 0;    while(str1[count1] != '\0')        count1++;while loops will iterate until ______
    • A. 

      10

    • B. 

      9

    • C. 

      Until the condition is true

  • 3. 
    Gets() function is used to _____
    • A. 

      Get any kind of data from user

    • B. 

      Get string from user

    • C. 

      Do job exactly like scanf() function

  • 4. 
    Strings in C are char array..
    • A. 

      True

    • B. 

      False

  • 5. 
    Char str[20] = "hello bee2a";printf("%s", str);Output = hello bee2a
    • A. 

      True

    • B. 

      False

Back to Top Back to top