C Programming Quiz

Quiz
•
Professional Development
•
University
•
Hard
Suresh Kumar
Used 7+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about pointers is correct?
A pointer stores the value of a variable.
A pointer stores the memory address of a variable.
A pointer stores the size of a variable.
A pointer is used to add two values.
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is true about sizeof() operator?
It can be used on any data type.
It returns the size in bits.
It can only be used on variables.
It returns the size in bytes.
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What will printf("%d", 5 + 3); output?
53
8
35
5 + 3
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the format specifier for printing an integer in C?
%c
%s
%d
%f
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is used to clear memory allocated by malloc()?
clear()
free()
delete()
reset()
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the output of the following code? int a = 5, b = 3; printf("%d", a % b);
1
2
3
5
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which function is used to dynamically allocate memory in C?
malloc()
free()
sizeof()
realloc()
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
History of Taxonomy in the Ph MT1-1

Quiz
•
University
50 questions
SWAMY VIVEKANANDA - 2nd Round

Quiz
•
4th Grade - Professio...
51 questions
агылшын 200

Quiz
•
University
50 questions
ISPFL7 - BSIS4A - Quiz 2

Quiz
•
University
50 questions
Test on Dist.Mgt

Quiz
•
University
55 questions
Microsoft Azure Fundamentals AZ-900 ENG #1

Quiz
•
University - Professi...
52 questions
lole

Quiz
•
12th Grade - University
55 questions
Microsoft Azure Fundamentals AZ-900 ENG #5

Quiz
•
University - Professi...
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