Gate-C_language questions
Quiz
•
Computers
•
University
•
Hard
Ajeet Kumar
FREE Resource
Enhance your content
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
Similar Resources on Wayground
10 questions
PreTest Larik/ Array
Quiz
•
11th Grade - University
10 questions
На сколько ты знаешь C#
Quiz
•
University
10 questions
Post Test Serial Komunikasi
Quiz
•
University
10 questions
Java Control Flow statements
Quiz
•
University
10 questions
C++ Array Quiz
Quiz
•
University
10 questions
Python Quiz 1 : Python Basics
Quiz
•
University
10 questions
Scientific Computing with Python-Basics
Quiz
•
University
10 questions
Node.js
Quiz
•
University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Computers
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
7 questions
Central Idea of Informational Text
Interactive video
•
4th Grade - University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
39 questions
Unit 7 Key Terms
Quiz
•
11th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
18 questions
Plotting Points on the Coordinate Plane
Quiz
•
KG - University
5 questions
Declaration of Independence
Interactive video
•
4th Grade - University
