____________ is a datatype format specifier used to print and scan an integer value.
BASIC C QUIZ

Quiz
•
Computers
•
University
•
Hard
Dr K
Used 11+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
%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
Similar Resources on Quizizz
12 questions
Printf, scanf

Quiz
•
University
15 questions
C Language Quiz-1

Quiz
•
University - Professi...
20 questions
CSE C Section

Quiz
•
University
10 questions
Array in C

Quiz
•
University
19 questions
Capsule session 1

Quiz
•
University
13 questions
ÔN TẬP C - mảng 1 chiều

Quiz
•
University
13 questions
C programming-1

Quiz
•
University
20 questions
Programming Concepts in C

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade