Which of the following is the correct syntax to declare an integer variable in c?

Trivia(Explore in depth)

Quiz
•
Computers
•
University
•
Hard

Pranavika BN
Used 1+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int x;
integer x;
x as int;
int = x;
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which function is used to print output in c?
print()
cout <<
printf()
cin<<
Answer explanation
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
2.5
2
3
Error
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is the correct syntax to declare a pointer to an integer in c?
int *ptr;
int ptr*;
int &ptr;
pointer int *ptr;
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
True
False
May be True
May be False
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is used to dynamically allocate memory in c?
alloc()
new
malloc()
create()
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of this code?
21
22
20
Undefined Behavior
Create a free account and access millions of resources
Similar Resources on Quizizz
40 questions
Semester Final 2025

Quiz
•
10th Grade - University
39 questions
Access Modifiers, Inheritance & Polymorphism

Quiz
•
University
40 questions
9th Grade - IT Programming - 2nd Cycle Exam

Quiz
•
9th Grade - University
35 questions
CodeChef (Secret Snippet)

Quiz
•
University
39 questions
Java Midterm

Quiz
•
University
40 questions
Coding Skill Test -I

Quiz
•
University
41 questions
Midterm prep 7th

Quiz
•
7th Grade - University
40 questions
A4ALGU CLUB EVENT QUIZ

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade