What is the range of value that can be stored by int data types in C?

C programming

Quiz
•
Sumit Kumar
•
Instructional Technology
•
University
•
3 plays
•
Easy
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • Ungraded
-(2^31) to (2^31)-1
-256 to 255
-(2^63) to (2^63)-1
0 to (2^31)-1
Answer explanation
-(2^31) to (2^31)-1
2.
MULTIPLE CHOICE QUESTION
20 sec • Ungraded
What will be the output of the following code snippet?
#include<studio.h>
int main(){
int a=3, b=5;
int t = a;
a = b;
b = t;
printf("%d%d",a,b);
return 0;
}
3 4
3 3
5 5
5 3
Answer explanation
5 3
3.
MULTIPLE CHOICE QUESTION
20 sec • Ungraded
How is an array initialized in C language:
int a[3] = {1,2,3};
int a = {1,2,3};
int a[] = new int [3];
int a(3) = [1,2,3];
Answer explanation
int a[3] = {1,2,3};
4.
MULTIPLE CHOICE QUESTION
20 sec • Ungraded
How is the 3rd element in an array accessed based on pointer notation?
*a+3
*(a+3)
*(*a+3)
&(a+3)
Answer explanation
*(a+3)
5.
MULTIPLE CHOICE QUESTION
20 sec • Ungraded
How are String represented in memory in C?
An array of characters.
The object of some class.
Same as other primitive data types.
LinkedList of characters.
Answer explanation
An array of characters.
6.
MULTIPLE CHOICE QUESTION
20 sec • Ungraded
What is the disadvantage of arrays in C?
The amount of memory to be allocated should be known beforehand.
Elements of an array can be accessed in constant time.
Elements are stored in contiguous memory blocks.
Multiple other data structures can be implemented using arrays.
Answer explanation
The amount of memory to be allocated should be known beforehand.
7.
MULTIPLE CHOICE QUESTION
20 sec • Ungraded
Which of the following is an exit controlled loop?
While loop.
For loop.
do-while loop.
None of the above.
Answer explanation
do-while loop.
Explore all questions with a free account
Similar Resources on Quizizz
15 questions
.Net full stack programming

Quiz
•
University
16 questions
Fundamentos de bases de datos

Quiz
•
University
21 questions
2 quiz USA 2024

Quiz
•
University
24 questions
Diagnostico Bases de Datos

Quiz
•
University
18 questions
Programación Medio Curos

Quiz
•
University
15 questions
Unity Pro XL

Quiz
•
University
20 questions
Preguntas sobre Arduino y Programación

Quiz
•
12th Grade - University
15 questions
Python Internship Quiz

Quiz
•
12th Grade - University
Popular Resources on Quizizz
19 questions
Naming Polygons

Quiz
•
3rd Grade
14 questions
Prime Factorization

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
21 questions
6th Grade Math CAASPP Practice

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
35 questions
4th Grade Math SOL Review

Quiz
•
4th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
Discover more resources for Instructional Technology
15 questions
Disney Trivia

Quiz
•
University
20 questions
Disney Trivia

Quiz
•
University
52 questions
Logos Trivia

Quiz
•
KG - University
23 questions
History of English and Review

Quiz
•
KG - University
12 questions
Scientific Notation

Quiz
•
University
5 questions
Tone and Mood in Literature

Interactive video
•
4th Grade - University
7 questions
Food Webs and Energy Pyramids: Bedrocks of Biodiversity

Interactive video
•
11th Grade - University
8 questions
G2U6W1 - The Golden Flower: A Taino Myth from Puerto Rico

Quiz
•
2nd Grade - University