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

10 Questions | Attempts: 64
Share
Please wait...
Question 1 / 10
0 %
0/100
Score 0/100
1. The ___ used in printf( ) is a format specification for printing out a string
Submit
Please wait...
About This Quiz
Quiz 7 (Improvement) And Assignment 4 - Bee-2a - Quiz

Strings, Strings Pointers

Tell us your name to personalize your report, certificate & get on the leaderboard!
2. Strings in C are char array..
Submit
3. We can store both int and char data in a char two-dimensional array?
Submit
4.  char *str[1][2] = {"June", "6"}; printf("Month name is %s, which is %dth month of the year", ___ , ___ );What should be in the blanks to give the following outputMonth name is June, which is 6th month of the year
Submit
5. Gets() function is used to _____
Submit
6. Char str[10] = "A quick brown fox jumped over a lazy dog";puts(str);what will print?
Submit
7. Char str[20] = "hello bee2a";printf("%s", str);Output = hello bee2a
Submit
8. Char str1[10] "Hello!";int count1 = 0;    while(str1[count1] != '\0')        count1++;while loops will iterate until ______
Submit
9.  char *str[] = {"Hello Bee2A"}; *str = "Bye Bee2A"; puts(*str);Output = __________
Submit
10.  char *str[] = {"2014"}; int year = atoi(str[0]); printf("___", year);What should be the format specifier?
Submit
View My Results

Quiz Review Timeline (Updated): Mar 20, 2022 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 20, 2022
    Quiz Edited by
    ProProfs Editorial Team
  • Dec 10, 2014
    Quiz Created by
    Aamirakbar2
Cancel
  • All
    All (10)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
The ___ used in printf( ) is a format specification for printing out...
Strings in C are char array..
We can store both int and char data in a char two-dimensional array?
 char *str[1][2] = {"June",...
Gets() function is used to _____
Char str[10] = "A quick brown fox jumped over a lazy...
Char str[20] = "hello bee2a";printf("%s",...
Char str1[10] "Hello!";int count1 = 0;  ...
 char *str[] = {"Hello Bee2A"}; *str = "Bye...
 char *str[] = {"2014"}; int year =...
Alert!

Advertisement