Storage Class Questions and Answers
Practice ModeShowing 10 of 97 questions
Q71
State the correct statement
Answer: Option D
Q72
Which of these is/are true about global variables
Answer: Option D
Q73
Every variable that you declare and use in a program belongs to a storage class. The storage class of a variable controls:
I. When (during program execution) it is allocated in memory
II). When (during program execution) it is initialized.
III. Where (in the program) it is visible.
IV. When (during program execution) it is dealocated from memory.
Answer: Option D
Q74
Which storage classes can not be used at external level (i.e. outside all functions)
Answer: Option B
Q75
Which of the following statement is incorrect about a register variable ?
Answer: Option C
Q76
Find the output
extern int i=4000;
void main ( )
{
int ii=40000;
printf('5d", sizeof (i));
printf("%1d %1d", ii,i);
}
Answer: Option D
Q77
Find the output
void main ( )
{
static int val=7;
int data;
if (--val)
{
data=main ( ) +val;
printf("5d", data);
}
return 0;
}
Answer: Option D
Q78
Find the output
extern int i=10;
int f(int i)
{
return (++i*i);
}
void main ( )
{
extern int i;
printf('5d", f(i));
}
Answer: Option A
Q79
Find the outpu
#define ptr int
void main ( )
{
typedef ptr raja;
static raja x;
if (++x)
printf("5d", x++);
}
Answer: Option B
Q80
Consider the following declaration statement
extern int sum;
What information does it convey?
Answer: Option C