What is the 16-bit compiler allowable range for integer constants?

C programming

Quiz
•
Professional Development
•
University
•
Hard
Sumit Kumar
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 20 pts
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32667
-32768 to 32767
Answer explanation
-32768 to 32767
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
main()
{printf("javatpoint");
main();}
Wrong statement
It will keep on printing javatpoint
It will Print javatpoint once
None of the these
Answer explanation
It will keep on printing javatpoint
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will this program print?
main()
{
int i = 2;
{
int i = 4, j = 5;
printf("%d %d", i, j);
}
printf("%d %d", i, j);
}
4525
2525
4545
None of these
Answer explanation
4525
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is a lint?
C compiler
Interactive debugger
Analyzing tool
C interpreter
Answer explanation
Analyzing tool
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of this statement "printf("%d", (a++))"?
The value of (a + 1)
The current value of a
Error message
Garbage
Answer explanation
The current value of a
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Study the following program:
main()
{
int a = 1, b = 2, c = 3:
printf("%d", a + = (a + = 3, 5, a))
}
What will be the output of this program?
6
9
12
8
Answer explanation
Answer: (d) 8
Explanation: It is an effect of the comma operator.
a + = (a + = 3, 5, a)
It first evaluates to "a + = 3" i.e. a = a + 3 then evaluate 5 and then evaluate "a".
Therefore, we will get the output is 4.
Then,
a + = 4
It gives 8 as the output.
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What does this declaration mean?
int x : 4;
X is a four-digit integer.
X cannot be greater than a four-digit integer.
X is a four-bit integer.
None of the these
Answer explanation
X is a four-bit integer.
Create a free account and access millions of resources
Similar Resources on Quizizz
16 questions
UC_TM02_C Programming Basics

Quiz
•
University - Professi...
15 questions
C Operators

Quiz
•
University - Professi...
20 questions
Test 2: Unity and C# Integration

Quiz
•
University
25 questions
Data Structures: Stack,Queue and Binary Tree

Quiz
•
University
16 questions
Nutrition Chapter 1

Quiz
•
University
24 questions
java

Quiz
•
University
20 questions
C Programming- Control statements

Quiz
•
University
15 questions
DAY 7 Pointer Structure & Union - 18th June 2024

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