MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Computer Science
C Language
Quiz 2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Q.1
What is the output of the below code snippet?#include<stdio.h>main() { for(;;)printf("Hello");}
A-Infinite loop
B - Prints “Hello” once.
C - No output
D - Compile error
Q.2
Which of the following is true about arrays in C.
For every type T, there can be an array of T.
For every type T except void and function type, there can be an array of T.
When an array is passed to a function, C compiler creates a copy of array.
2 Dimensional arrays are stored in column major form
Q.3
What is full form of ASCII?
American Suitable Code for Information Interchange
American Standard code for Interactive Information
American Standard code for Information Interaction
None of the above
Q.4
Which data type is most suitable for storing a numberin a 32-bit system?
signed short
unsigned short
long
int
Q.5
What is the 16-bit compiler allowable range for integer constants?
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32667
-32768 to 32767
Q.6
Which of the following is not a datatype
Char
Double
Real
int
Q.7
The sizeof operator returns the size of its operand in bytes
True
False
Q.8
Which is correct example for variable declaration?
int a;b;c;
Int a,b,c;
int a,b,c;
int a,b;c;
Q.9
Which is called a conditional operator in C?
>
==
? :
NONE
Q.10
Which is the first HL programming Language ?
Python
C
Fortran
Proton
Q.11
Which of the following is not auxiliary memory?
Pen Drive
Hard Disk
ROM
Memory Card
Q.12
What is INTEL stands for in the company name intel?
Intermediate Electronics
Intelligent Electronics
Integrated Electronics
Industrial Electronics
Q.13
Who is Mother of Computers?
Lady Love Lace Ada
Margaret Thacher
Kalpana Chawla
Elizabet
Q.14
Variable declared in a function can be used in main?
True
False
Q.15
Which keyword is used to prevent any changes in the variable within a C program?
immuta
mutable
const
vola
Q.16
Functions can return enumeration constants in c?
True
False
Q.17
Continue statement is allowed inside the switch case statement ?
Yes
No
Q.18
We cannot use String in the Switch case as label
Yes
No
Q.19
Which of the following is not reserved word
While
If
function
Void
Q.20
Which standard library function can return a pointer to the last occurrence of a character in a string?
A - strrchr()
B - stchar()
C - strchar() & stchar()
D - strrchar()
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page