Take FREE!! Online Cocubes Mock Test to Crack various Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
Take 30+ FREE!! Online Arithmetic Aptitude Mock test to crack any Exams.

# Const / Volatile Qualifier Questions

NA
SHSTTON
15
Solv. Corr.
6
Solv. In. Corr.
21
Attempted
0 M:0 S
Avg. Time

1 / 10

What is the output of the following 'C' program?

include
void main ()
{
const int x = get();
printf("%d", x);
}
get()
{
return (20);
}

A20

BError

CGarbage value

D0

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
69
Solv. Corr.
11
Solv. In. Corr.
80
Attempted
0 M:0 S
Avg. Time

2 / 10

What is the output of the following 'C' program ?

#include
void main ()
{
int y = 128;
const int x = y;
printf("%d", x);
}

A128

BError

CGarbage value

D0

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
13
Solv. Corr.
23
Solv. In. Corr.
36
Attempted
0 M:0 S
Avg. Time

3 / 10

What is the output of the following 'C' program?

#include
void main ()
{
const int x = 5;
int *ptrx;
ptrx = &x;
*ptrx = 10;
printf ("%d", x);
}

A5

B10

CError.

DGarbage value

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
24
Solv. Corr.
63
Solv. In. Corr.
87
Attempted
0 M:0 S
Avg. Time

4 / 10

What is the output of the following 'C' program ?

#include
void main ()
{
const int x = 5;
const int *ptrx;
ptrx = &x;
*ptrx = 10;
printf("%d", x);
}

A5

BCompilation Error

C10

DGarbage value

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
7
Solv. Corr.
8
Solv. In. Corr.
15
Attempted
0 M:0 S
Avg. Time

5 / 10

What is the output of the following 'C' program ?
#include <stdio.h>
#define SIZE 3
void fun(int *ptr)
{
*ptr = *ptr + 1;
}
int main()
{
int oldval;
const int newval = 0;
static int temp = 99;
int i;
for (i=0;i< SIZE;i++)
{
oldval = newval;
newval = i;
fun(&temp);
}
printf("%d %d %d",oldval,newval,temp);
}

ACompilation error: assignment of read-only variable

B1 2 102

C1 3 103

DGarbage Value

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
18
Solv. Corr.
45
Solv. In. Corr.
63
Attempted
0 M:0 S
Avg. Time

6 / 10

What is the output of the following 'C' program ?
#include <stdio.h>
void fun1(void)
{
static int dummy = 5;
dummy = dummy + 10;
printf("%d",dummy);
}
void fun2(char *c)
{
*c = *c + 2;
printf("%d",dummy);
printf("%c", *c);
}
int main()
{
char ch = 'A';
fun1();
fun2(&ch);
printf("%c", ch);
}

A15CC

B15CA

C155CC

DCompilation error: ‘dummy’ undeclared

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
6
Solv. Corr.
15
Solv. In. Corr.
21
Attempted
0 M:0 S
Avg. Time

7 / 10

Choose the correct option.

In a 'C' program, constant is defined

Abefore main

Bafter main

Canywhere, but starting on a new line

Dnone of these

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
10
Solv. Corr.
6
Solv. In. Corr.
16
Attempted
0 M:0 S
Avg. Time

8 / 10

For 'C' programming language

Aconstant expressions are evaluated at compile time

Bstring constants can be concatenated at compile time

Csize of array should be known at compile time

Dall of these

ENone of these

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
149
Solv. Corr.
162
Solv. In. Corr.
311
Attempted
0 M:39 S
Avg. Time

9 / 10

What is output or the error in the program?

#include

void main () {
const char* cptr = "Hello";
printf ("%c", (*++cptr)++);
}

Al-value specifies const object

BNo error, output is e

CNo error, output is H

DNo error, output is 1

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
10
Solv. Corr.
65
Solv. In. Corr.
75
Attempted
0 M:0 S
Avg. Time

10 / 10

What will be output of the following "c" code?
#include<stdio.h>
void main()
{
int const *p=5;
printf("%d", ++(p));
}

A9

B5

C6

D0

Explanation:

Compiler error! Constant value cannot be modified.

Workspace

## C Programming Const / Volatile Qualifier Questions and Answers pdf

At C Programming topic Const / Volatile Qualifier, you will get multiple online quiz difficulty wise, which will have a total of 6 quizzes, categorized as easy, medium, and moderate level. While preparing for any Const / Volatile Qualifier, take all the list quiz and check your preparation level for that topic. Each quiz have 10 different question, which needs to be answered in 20 min., all the listed quiz here is free, however, you will get only one chance for each quiz to attempt(Take Quiz seriously), so it is always recommended to take one quiz in each section before you start solving Const / Volatile Qualifier MCQs practice question, and one after solving all the question of the respective level, you can refer back your Const / Volatile Qualifier quiz result any time or you can download it as pdf for reference.

## C Programming Const / Volatile Qualifier Customize Online Mock Test

This is own type of mock test, where At this C Programming Const / Volatile Qualifier MCQs mock test section, you will able to attempt only the questions related to Const / Volatile Qualifier, in that question will be a different level, important, and all the questions will be part of some of the mock tests across Q4interview FREE Mock test. You need to choose the topic as Const / Volatile Qualifier, and click on Double click to generate your customize mock test. While attempting the mock test you need to choose any of the one options out of given option. It is recommended to go through the direction given along with each question, as these questions will be randomly and so that same direction will not be applicable across the entire test. Once you submit your mock test, the result will be generated for Const / Volatile Qualifier Customize mock test, where your performance point points will be highlighted. Q4interview analysis every single point which helps you to improve your topic understanding and help you to know your type of mistakes and way to improve Const / Volatile Qualifier questions, by providing the same type of practice questions from practice exercise. The best part of this Const / Volatile Qualifier, all these mock tests listed here are free and you can take as Many time, as many you want. When you continue to give Const / Volatile Qualifier Customize Online Mock Test here regularly, then you will understand how much you have developed your accuracy on a topic, after that you will be able to decide how much attention you need to focus on. Your continued practice will increase your confidence, speed and thinking ability intensely, the Const / Volatile Qualifier Customize topic on which you will practice more will beneficial for you in future during campus placement.

## C Programming Const / Volatile Qualifier Quiz Online Test

The details of the C Programming Const / Volatile Qualifier quiz are as follows. There are 10 questions for you. You have to answer them in 20 minutes. Within 20 minutes you have to see the errors in the sentences given as a question. Four options are also given to you, and you have to choose your opinion. You must be confident in your answer that the choices are difficult. Therefore, below we provide you with some information about C Programming Const / Volatile Qualifier that you see and keep them in mind while answering questions.

## C Programming Const / Volatile Qualifier MCQs Practice Questions with Answer

On this Const / Volatile Qualifier section of page you will find the easiest quickest ways to solve a question, formulas, shortcuts and tips and tricks to solve various easiest methods to solve Const / Volatile Qualifier Question Quickly. It contains all the C Programming topic Const / Volatile Qualifier questions which are common in any of the preliminary exams of any company. The solution is provided along with the questions. The practice of these questions is a must as they are easy as well as scoring and asked in all the exams They will confirm the selection if all the questions attempted wisely with little practice. It is recommanded to Take Mock test based on C Programming topic and Const / Volatile Qualifier topic based quiz.

## C Programming Const / Volatile Qualifier solved examples question

You can get here fully solved Const / Volatile Qualifier examples with a detailed answer and description. You can solve Const / Volatile Qualifier problems with solutions, the questions by companies wise by filtering the questions, additionally, you can check what type of questions are being asked in IT companies Written Round from Const / Volatile Qualifier. Const / Volatile Qualifier became one of the most important sections in the entire competitive exams, Companies Campus, and entrance online test. Go through Const / Volatile Qualifier Examples, Const / Volatile Qualifier sample questions. You can Evaluate your level of preparation in Const / Volatile Qualifier by Taking the Q4Interivew Const / Volatile Qualifier Online Mock Test based on most important questions. All the Const / Volatile Qualifier practice questions given here along with answers and explanations are absolutely free, you can take any number of time any mock Test.

## Why C Programming Const / Volatile Qualifier?

In this practice section, you can practice C Programming Questions based on "Const / Volatile Qualifier" and improve your skills in order to face the interview, competitive examination, IT companies Written exam, and various other entrance tests (CAT, GATE, GRE, MAT, Bank Exam, Railway Exam etc.) with full confidence.

## Where can I get C Programming Const / Volatile Qualifier questions and answers with explanation?

Q4Interview provides you lots of fully solved C Programming (Const / Volatile Qualifier) questions and answers with Explanation. Solved examples with detailed answer description, explanation are given and it would be easy to understand. You can download C Programming Const / Volatile Qualifier quiz questions with answers as PDF files and eBooks.

## Where can I get C Programming Const / Volatile Qualifier Interview Questions and Answers (objective type, multiple-choice, quiz, solved examples)?

Here you can find objective type C Programming Const / Volatile Qualifier questions and answers for interview and entrance examination. Multiple choice and true or false type questions are also provided.