
C Programming Quiz

Quiz
•
Computers
•
Professional Development
•
Medium
Karthik Nayak
Used 2+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Preguntas de JavaScript

Quiz
•
Professional Development
10 questions
SENZ AIOT SAVANTS - JV & JS

Quiz
•
Professional Development
10 questions
Mid2 Lab Internal PPS

Quiz
•
Professional Development
15 questions
BrightChamps Technical Round - C language

Quiz
•
Professional Development
10 questions
C - Programming ( Output based - Loop )

Quiz
•
Professional Development
10 questions
Chapter 2 - FSW

Quiz
•
Professional Development
15 questions
Python Skills

Quiz
•
1st Grade - Professio...
10 questions
CIT JULY 2022

Quiz
•
Professional Development
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
11 questions
complex sentences

Quiz
•
Professional Development
8 questions
Ötzi the Iceman: A 5,000-Year-Old True Crime Murder Mystery | Full Documentary | NOVA | PBS

Interactive video
•
Professional Development
1 questions
Savings Questionnaire

Quiz
•
6th Grade - Professio...
6 questions
Basics of Budgeting 7

Quiz
•
6th Grade - Professio...
20 questions
Movies

Quiz
•
Professional Development