Menu mobile
Home
PYTHON
Python Tutorial
Program Example
Interview Questions
JAVA
Java Tutorial
Program Example
Interview Questions
C Language
C Tutorial
Program Example
Interview Questions
Web Design
HTML
CSS
Java Script
PHP
Assignment
MS Office
HTML
CSS
Java Script
JQuery
AngularJs
QUIZ ON : C - STORAGE CLASS
STORAGE CLASS
00:00:00
English
Hindi
Question No# :
01
static storage class is used to make a variable global.
static storage class is used to make a variable global.
A.
TRUE
सही
B.
FALSE
गलत
Question No# :
02
Which of the following is not a proper storage class in C?
Which of the following is not a proper storage class in C?
A.
auto
auto
B.
dec
dec
C.
static
static
D.
extern
extern
Question No# :
03
Which of the following statement is false?
Which of the following statement is false?
A.
Constant variables need not be defined
as they are declared and can be defined
later
Constant variables need not be defined
as they are declared and can be defined
later
B.
Global constant variables are
initialized to zero
Global constant variables are
initialized to zero
C.
const keyword is used to define constant
values
const keyword is used to define constant
values
D.
You cannot reassign a value to a
constant variable
You cannot reassign a value to a
constant variable
Question No# :
04
The default storage class of a ‘C’ variable is
The default storage class of a ‘C’ variable is
A.
auto
auto
B.
static
static
C.
extern
extern
D.
register
register
Question No# :
05
The default initial value of a static int variable is zero.
The default initial value of a static int variable is zero.
A.
TRUE
सही
B.
FALSE
गलत
Question No# :
06
Which of the following is not a proper storage class in ‘C’?
Which of the following is not a proper storage class in ‘C’?
A.
auto
auto
B.
dec
dec
C.
static
static
D.
extern
extern
Question No# :
07
main()
--
{-
--static-int-num=8;
--
printf(“%d-”,num=num-2);
--
if(num!=0)-main();-
--}
" title="
What is the output of the following code?
main()
{
static int num=8;
printf(“%d ”,num=num-2);
if(num!=0) main();
}
">
What is the output of the following code?
main()
{
static int num=8;
printf(“%d ”,num=num-2);
if(num!=0) main();
}
What is the output of the following code?
main()
{
static int num=8;
printf(“%d ”,num=num-2);
if(num!=0) main();
}
A.
8 6 4 2
8 6 4 2
B.
Infinite output
Infinite output
C.
6 4 2 0
6 4 2 0
D.
Invalid because main function can’t
call itself.
Invalid because main function can’t
call itself.
Question No# :
08
‘auto’ keyword is used to declare a local variable.
‘auto’ keyword is used to declare a local variable.
A.
TRUE
सही
B.
FALSE
गलत
Question No# :
09
void-fn()-{
--
static-int-i-=-10;
--
printf("%d-",-++i);
--
}
--
main()-{
--
fn();
--
fn();
--
}
" title="
What will be the output of the following code segment?
void fn() {
static int i = 10;
printf("%d ", ++i);
}
main() {
fn();
fn();
}
">
What will be the output of the following code segment?
void fn() {
static int i = 10;
printf("%d ", ++i);
}
main() {
fn();
fn();
}
What will be the output of the following code segment?
void fn() {
static int i = 10;
printf("%d ", ++i);
}
main() {
fn();
fn();
}
A.
10 10
10 10
B.
11 11
11 11
C.
11 12
11 12
D.
12 12
12 12
Question No# :
10
If no storage class is mentioned for a variable defined in a function then it is by default auto.
If no storage class is mentioned for a variable defined in a function then it is by default auto.
A.
TRUE
सही
B.
FALSE
गलत
Previous
1
Next
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Sarkari Exam Quiz