
C Programming Quiz
Authored by Karthik Nayak
Computers
Professional Development
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following C statement mean?
scanf("%4s", str);
Read exactly 4 characters from console.
Read maximum 4 characters from console.
Read a string str in multiples of 4
Nothing
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true?
gets() doesn't do any array bound testing and should not be used.
fgets() should be used in place of gets() only for files, otherwise gets() is fine
gets() cannot read strings with spaces
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If n has 3, then the statement a[++n]=n++;
assigns 3 to a[5]
assigns 4 to a[5]
assigns 4 to a[4]
what is assigned is compiler dependent
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a logical operator?
&&
!
||
|
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include int main(){
int i = 65000;
while (i++ != 0)
printf("%d", i); return 0;
}
Infinite Loop
0
1
Run Time Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following operators can be applied on structure variables?
Equality comparison ( == )
Assignment ( = )
Both of the above
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include “stdio.h”
#include “stdio.h”
#include “stdio.h”
int main() {
printf(“Whether this statement would be printed?”)
return 0;
}
TRUE
FALSE
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
C PROGRAMMING BASICS-QUIZ-1
Quiz
•
Professional Development
15 questions
15 question Security+ Quiz March 2023
Quiz
•
Professional Development
10 questions
Advanced Excel
Quiz
•
Professional Development
16 questions
Machine Learning
Quiz
•
5th Grade - Professio...
10 questions
python quiz
Quiz
•
6th Grade - Professio...
13 questions
ISC2 - Chapter 1 - Module 3 - G2
Quiz
•
Professional Development
10 questions
Excel Quiz
Quiz
•
Professional Development
13 questions
Repaso
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...