
Gate-C_language questions
Authored by Ajeet Kumar
Computers
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following declarations:
P: signed short x;
Q: unsigned long long int x;
Which of the given declarations is/are CORRECT?
Only P
Only Q
Both P and Q
Neither P nor Q
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Consider the following program:
#inclue<stdio.h>
int main( ) {
int x = 32769;
printf("%d", x);
return 0;
}
(Assume integer is of 2 bytes) The value printed is- ____________.
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider the following program:
#include<include>
int main( ) {
char ch = 141;
printf(“%d”, ch);
return 0;
}
The output is -
Compiler error
–115
–128
141
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following function:
#include<stdio.h>
int main() {
char ch = –134;
printf("%c", ch);
return 0; }
The output is-
A
Garbage
Compiler Error
Z
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include<stdio.h>
int main(void){
int a;
a = 2 * 6/5 + 3.0/2 + 1;
printf("%d", a);
return 0; }
The value of a is ___
4.9
4.0
4.5
4
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
pointers and structures
Quiz
•
University
10 questions
Funciones y While Python - TC1028
Quiz
•
University
10 questions
C Viva
Quiz
•
University
10 questions
Object Oriented Programming(Chapter 1)
Quiz
•
University
10 questions
Week 4: Recap Java Programming
Quiz
•
University
10 questions
Structure Data Review
Quiz
•
University - Professi...
10 questions
Third Year Placement Training Revision Test
Quiz
•
University
10 questions
Evaluasi Materi Pointer pada C++
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade