BASIC C QUIZ
Quiz
•
Computers
•
University
•
Hard
Dr K
Used 12+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
____________ is a datatype format specifier used to print and scan an integer value.
%f
%d
%c
%s
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid C variable name?
a) int number;
b) float rate;
c) int variable_count;
d) int $main;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
All keywords in C are in ____________
a) LowerCase letters
b) UpperCase letters
c) CamelCase lettersned
d) None of the mentioned
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is valid C expression?
a) int my_num = 100,000;
b) int my_num = 100000;
c) int my num = 1000;
d) int $my_num = 10000;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the final value of x in the following C code?
#include <stdio.h>
void main()
{
int x = 5 * 9 / 3 + 9;
}
a) 3.75
b) Depends on compiler
c) 24
d) 3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following declaration is not supported by C?
A.String str;
B. char *str;
C. float str = 3e2;
D. int s[20];
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many characters can a string hold when declared as follows?
char name[20]:
18
19
20
None of the these
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
20 questions
PHP First Internal Practical Viva
Quiz
•
University
15 questions
Assessment 08
Quiz
•
University
15 questions
Algoritma dan Pemrograman Bab 1
Quiz
•
University
10 questions
MI MÉTODO
Quiz
•
University
16 questions
Gerência do Processador
Quiz
•
University
10 questions
Microcontroller
Quiz
•
11th Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
