Quizzes
Search
Take Quizzes
Animal
Nutrition
Love
Relationship
Computer
Sports
Society
Business
Geography
Language
Personality
Harry Potter
Movie
Television
Music
Online Exam
Health
Country
Art
Entertainment
Celebrity
Math
Game
Book
Fun
Science
Food
History
Education
All Topics
Create a Quiz
Quiz Maker
Training Maker
Survey Maker
Flashcards
Brain Games
See All
ProProfs.com
Search
Create A Quiz
Take Quizzes
Animal
Nutrition
Love
Relationship
Computer
Sports
Society
Business
Geography
Language
Personality
Harry Potter
Movie
Television
Music
Online Exam
Health
Country
Art
Entertainment
Celebrity
Math
Game
Book
Fun
Science
Food
History
Education
All Topics
Products
Quiz Maker
Training Maker
Survey Maker
Flashcards
Brain Games
See All
ProProfs.com
Quizzes
Quizzes
Quiz 7 (Improvement) And Assignment 4 - Bee-2a
10 Questions
|
By Aamirakbar2 | Updated: Mar 20, 2022
| Attempts: 64
Share
Start
Share on Facebook
Share on Twitter
Share on Whatsapp
Share on Pinterest
Share on Email
Copy to Clipboard
Embed on your website
Question
1
/ 10
0 %
0/100
Score
0/100
1.
The ___ used in printf( ) is a format specification for printing out a string
%s
%d
%c
%f
Submit
Start Quiz
About This Quiz
Strings, Strings Pointers
2.
What's your name?
We’ll put your name on your report, certificate, and leaderboard.
2.
Strings in C are char array..
True
False
Submit
3.
We can store both int and char data in a char two-dimensional array?
True
False
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
Str[0][0], atoi(str[0][1]
Str[0][1], atoi(str[1][0]
Str[0][0], atoi(str[0][0]
Str[1][1], atoi(str[1][1]
Submit
5.
Gets() function is used to _____
Get any kind of data from user
Get string from user
Do job exactly like scanf() function
Submit
6.
Char str[10] = "A quick brown fox jumped over a lazy dog";puts(str);what will print?
A quick brown fox jumped over a lazy dog
Error
A quick br
Submit
7.
Char str[20] = "hello bee2a";printf("%s", str);Output = hello bee2a
True
False
Submit
8.
Char str1[10] "Hello!";int count1 = 0; while(str1[count1] != '\0') count1++;while loops will iterate until ______
10
9
Until the condition is true
Submit
9.
char *str[] = {"Hello Bee2A"}; *str = "Bye Bee2A"; puts(*str);Output = __________
Hello Bee2A
Bye Bee2A
Error
Submit
10.
char *str[] = {"2014"}; int year = atoi(str[0]); printf("___", year);What should be the format specifier?
%s
%c
%d
Submit
View My Results
Related Quizzes
The Outsiders Novel Quiz: Chapter 5 And 7
The Outsiders Novel Quiz: Chapter 5 And 7
CRCT Prep Quiz Ages 5-7
CRCT Prep Quiz Ages 5-7
The Outsiders Chapters 4-7 Quiz Cds
The Outsiders Chapters 4-7 Quiz Cds
Thank you for your feedback!
Would you like to edit this question to improve it?
No thanks
Name:
Email:
Oops! Give us more information:
Incorrect Question
Incorrect Answer
Typos
I have a feedback
Submit
Please provide name and email to proceed.
Please provide correct email to proceed.
Please provide feedback.
Please select the option.
All (10)
Unanswered (
)
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 =...
X
OK
X
OK
Cancel
X
OK
Cancel
Back to top
Back to top
Advertisement