0% found this document useful (0 votes)
23 views

1 20 22 BDC 13 A 1 1 A Obj: S. N O YE AR MAJ OR S U B UN IT Chap TER SE C. Q.T YPE

Uploaded by

madhudhaya0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

1 20 22 BDC 13 A 1 1 A Obj: S. N O YE AR MAJ OR S U B UN IT Chap TER SE C. Q.T YPE

Uploaded by

madhudhaya0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 42

S.

S
YE MAJ UN CHAP SE Q.T
N U QUESTION «»
AR OR IT TER C. YPE
O B
1 20 BDC 13 1 1 A OBJ When C Language was invented? ED
22 A

A. 1970 B. 1972

C. 1978 D. 1979

Answer is : B
2 20 BDC 13 1 1 A OBJ How many loops are there in C ED
22 A

A. 2 B. 3

C. 4 D. 1

Answer is : B
3 20 BDC 13 1 1 A OBJ Which of the following is executed by Preprocess? ED
22 A

A. #include<stdio.h> B. return 0
void main(int argc , char **
C. D. None of above
argv)

Answer is : A
4 20 BDC 13 1 1 A OBJ How many main() function we can have in our project? ED
22 A

A. 1 B. 2

C. No Limit D. Depends on Compiler

Answer is : A
5 20 BDC 13 1 1 A OBJ The ASCII code of ‘A’ is? ED
22 A

A. 66D B. 41H

C. 0100 0010 D. 0110 0011

Answer is : B
6 20 BDC 13 1 1 A OBJ What is the job of Assembler in C programming? ED
22 A

It converts a
It converts source code into assembly language
A. B.
assembly code program into machine
language
It convert code generated by
C. Preprocessor to assembly D. None of the above
code

Answer is : B
7 20 BDC 13 1 1 A OBJ #include<stdio.h> ED
22 A
int main()
{
int a@ = 10;
printf("%d", a@);
return 0;
}
A. 10 B. 10@
[Error] stray '@' in
C. @ D.
program

Answer is : D
8 20 BDC 13 1 1 A OBJ What is the extension of File produced by compiler on ED
22 A
Windows?

A. .a B. .exe

C. .out D. .obj

Answer is : B
9 20 BDC 13 1 1 A OBJ int,chrar,float,real are all ED
22 A

A. codes B. pragmas

C. Keywords D. prototype

Answer is : C
10 20 BDC 13 1 1 A OBJ which is an electornic machine that makes performing ED
22 A
any task very easy.

A. Computer B. keyboard
C. mouse D. monitor

Answer is : A
11 20 BDC 13 1 1 A OBJ ALU Stands for ED
22 A

A. Annuallogic unit B. Arithmetic logic unit

C. Americallogic unit D. American label unit

Answer is : B
12 20 BDC 13 1 1 A OBJ what is the step by step process to solve a problem ED
22 A

A. Algorithm B. Beta

C. Alpha D. cybase

Answer is : A
13 20 BDC 13 1 1 A OBJ ANSI Stands for ED
22 A

American National
A. B. Americannationalsavingin
standard Institute
American National American National standard
C. D.
saving Income Information

Answer is : A
14 20 BDC 13 1 1 A OBJ The Structure of the C Language can be divided in the ---- ED
22 A
--------------- parts

A. 2 B. 3

C. 4 D. 6

Answer is : D
15 20 BDC 13 1 1 A OBJ Every program statement in a C program must end with a- ED
22 A
---------------

A. , B. ;

C. * D. ~

Answer is : B
16 20 BDC 13 1 1 A OBJ C is a general purpose _________ language. ED
22 A

A. Machine B. Assembly

C. Middle level D. High

Answer is : C
17 20 BDC 13 1 1 A OBJ The size of integer in bytes ED
22 A

A. 8 B. 2

C. 4 D. 3

Answer is : B
18 20 BDC 13 1 1 A OBJ # define is a compiler directive and a not a statement. ED
22 A

A. Assembler B. compiler

C. preprocessor D. automatic

Answer is : C
19 20 BDC 13 1 1 A OBJ Preprocessor directive are placed at the ________ of the ED
22 A
program

A. end B. middle

C. beginning D. all the above

Answer is : C
20 20 BDC 13 1 1 A OBJ The _____ function is used to display the output on the ED
22 A
screen.

A. Printf B. Print

C. Put D. Output

Answer is : A
21 20 BDC 13 1 1 A OBJ C was evolved from A) ALGOL B) ED
22 A
BCPL C) B D) all the above

A. ALGOL B. BCPL
C. B D. All of the above

Answer is : D
22 20 BDC 13 1 1 A OBJ The size of Character in bytes ED
22 A

A. 2 B. 1

C. 4 D. 8

Answer is : B
23 20 BDC 13 1 1 A OBJ The size of signed long int in bytes ED
22 A

A. 2 B. 4

C. 8 D. 10

Answer is : B
24 20 BDC 13 1 1 A OBJ The size of float in bytes ED
22 A

A. 1 B. 2

C. 4 D. 8

Answer is : C
25 20 BDC 13 1 1 A OBJ The size of long double is in bytes ED
22 A

A. 1 B. 4

C. 8 D. 10

Answer is : D
26 20 BDC 13 1 1 A OBJ Do not use semicolon at the end of _______ directive ED
22 A

A. #define B. main

C. for D. do

Answer is : A
27 20 BDC 13 1 1 A OBJ Use _______ quotes for string constans ED
22 A

A. single B. double

C. dot D. all the above

Answer is : B
28 20 BDC 13 1 1 A OBJ __________ is used to print a decimal integer. ED
22 A

A. %d B. %x

C. %c D. %s

Answer is : A
29 20 BDC 13 1 1 A OBJ ED
22 A
______ is used to print a single character

A. %g B. %x

C. %c D. %s

Answer is : C
30 20 BDC 13 1 1 A OBJ When braces are used to group statements, make sure that ED
22 A
the opening brace has a corresponding _____brace last

A. First B. Closing

C. last D. opening

Answer is : B
31 20 BDC 13 2 1 A OBJ which is a powerful decision-making statement ED
22 A

A. while B. do

C. if D. for

Answer is : C
32 20 BDC 13 2 1 A OBJ --------------is a two-way decision statement. ED
22 A

A. while B. if
C. do D. for

Answer is : B
33 20 BDC 13 2 1 A OBJ The switch expression must be an _____ type. ED
22 A

A. Internal B. Float

C. Storing D. All the above

Answer is : A
34 20 BDC 13 2 1 A OBJ How many default labels for switch statement ED
22 A

A. 1 B. 2

C. 3 D. many

Answer is : A
35 20 BDC 13 2 1 A OBJ The use of exit ( ) function requires the inclusion of the ED
22 A
header file

A. stdlib.h B. stdio.h

C. conio.h D. main.h

Answer is : A
36 20 BDC 13 2 1 A OBJ --------------------practice is to avoid using goto ED
22 A

A. Bad B. better

C. best D. good

Answer is : D
37 20 BDC 13 2 1 A OBJ Three actions of for loops are initialization, _______ ED
22 A
incrementing

A. Testing B. looping

C. selection D. all the above

Answer is : A
38 20 BDC 13 2 1 A OBJ The statements control the flow of execution are also ED
22 A
known as ____ statements

A. for B. while

C. control D. do…while

Answer is : C
39 20 BDC 13 2 1 A OBJ If statement-block may be a single statement or _______ ED
22 A
of statement.

A. Two B. group

C. many D. control

Answer is : B
40 20 BDC 13 2 1 A OBJ In C has a built – in multiway decision statement known ED
22 A
as a ______

A. for B. do

C. if D. switch

Answer is : D
41 20 BDC 13 2 1 A OBJ ED
22 A
A program loop consists of _______ Segments

A. 1 B. 2

C. 3 D. 4

Answer is : B
42 20 BDC 13 2 1 A OBJ The entry –controlled is also known as _______ ED
22 A

A. pretest loop B. while

C. for D. All of the above

Answer is : A
43 20 BDC 13 2 1 A OBJ The exit-controlled is also known as ED
22 A

A. post test loop B. Do while


C. for D. none

Answer is : A
44 20 BDC 13 2 1 A OBJ The simplest of all the looping structures in C is the ED
22 A
________ statement

A. for B. do..while

C. while D. switch

Answer is : C
45 20 BDC 13 2 1 A OBJ Use ______ loop if the counter-based control is ED
22 A
necessary.

A. do..while B. for

C. while D. switch

Answer is : A
46 20 BDC 13 2 1 A OBJ Use ______ loop if the sentinel-based control is required. ED
22 A

A. while B. for

C. switch D. do ..while

Answer is : A
47 20 BDC 13 2 1 A OBJ ED
22 A
Do not forget to place the increment statement in the body of a ------Or do …

A. switch B. For

C. while D. All of the above

Answer is : C
48 20 BDC 13 2 1 A OBJ An_______is a fixed –size sequenced collection of ED
22 A
element of the same data type.

A. Data B. Information

C. Array D. none

Answer is : C
49 20 BDC 13 2 1 A OBJ ED
22 A
In an array individual values are called _______

A B
variables data
. .
C D
elements All of the above
. .

Answer is : C
50 20 BDC 13 2 1 A OBJ
22 A
The general form of array declaration is type _____________[size].

A B
data elements
. .
C D
variable name none
. .

Answer is : C

S
S. YE MAJ UN CHAP SE Q.T
U QUESTION «»
NO AR OR IT TER C. YPE
B
51 20 BDC 13 2 1 A OBJ An array that uses more than two subscript is referred to ED
22 A
as__________ array

A. one dimensional B. Twodimensional

C. Three Dimensional D. multidimensional

Answer is : D
52 20 BDC 13 2 1 A OBJ ED
22 A
An array can be initialized either at compile time or at ____________.

A. static B. Dynamic

C. void D. Runtime

Answer is : D
53 20 BDC 13 2 1 A OBJ ED
22 A
________ is the process of arranging the elements of an array in order.

A. sorting B. searching

C. Dynamic D. All of the above

Answer is : A
54 20 BDC 13 2 1 A OBJ The process of allocating memory at compile time is ED
22 A
known as _________ memory location.

A. static B. dynamic

C. both D. all of the above

Answer is : A
55 20 BDC 13 2 1 A OBJ The arrays that receive static memory allocation are ED
22 A
called ___________ array.

A. static B. Dynamic

C. both D. All of the above

Answer is : A
56 20 BDC 13 2 1 A OBJ ED
22 A
Dynamic array are created using points variables and memory management

A. malloc B. calloc

C. realloc D. All of the above

Answer is : D
57 20 BDC 13 2 1 A OBJ _________ is the process of finding the location of the ED
22 A
specified element in a list

A. Technique B. searching

C. data D. All of the above


Answer is : B
58 20 BDC 13 2 1 A OBJ Loops in C Language are implemented using.? ED
22 A

A. While Block B. For Block

C. Do While Block D. All the above

Answer is : D
59 20 BDC 13 2 1 A OBJ What is the output of C Program.? ED
22 A int main()
{
while(true)
{
printf("RABBIT");
break;
}

return 0;
}
RABBIT is printed
A. RABBIT B. unlimited number of
times.
C. No output D. Compiler error.

Answer is : D
60 20 BDC 13 2 1 A OBJ Choose a correct C Statement. ED
22 A

a-- is (a=a-1) POST


a++ is (a=a+1) POST DECREMENT Opeartor
A. B.
INCREMENT Operator --a is (a=a-1) PRE
DECREMENT Opeator
++a is (a=a+1) PRE
C. D. All the above
INCRMENT Operator

Answer is : D
61 20 BDC 13 3 1 A OBJ ED
22 A
The C ________ provides several tools that use unavailable in other high-lev

A. language B. preprocessor

C. compiler D. none

Answer is : B
62 20 BDC 13 3 1 A OBJ ___________ function concatenate two strings. ED
22 A

A. strcon() B. strcat()

C. stricat() D. All of the above

Answer is : B
63 20 BDC 13 3 1 A OBJ __________ function compares two strings ED
22 A

A. strcmp() B. strcpy()

C. stcmp() D. All of the above

Answer is : A
64 20 BDC 13 3 1 A OBJ _______ variables are also referred to as local or internal ED
22 A
variables

A. static B. external

C. automatic D. register

Answer is : C
65 20 BDC 13 3 1 A OBJ n which header file is the NULL macro defined? ED
22 A

A. stdio.h B. stddef.h

C. stdio.h and stddef.h D. math.h

Answer is : C
66 20 BDC 13 3 1 A OBJ The precedence of the _________ operator is higher than ED
22 A
all arithmetic and relational operators.

A. member B. structure

C. logical D. All

Answer is : A
67 20 BDC 13 3 1 A OBJ ____________is a function used to open an existing file ED
22 A

A. fopen() B. Open

C. Open() D. none

Answer is : A
68 20 BDC 13 3 1 A OBJ What is (void*)0? ED
22 A

Representation of NULL Representation of void


A. B.
Pointer pointer
C. Error D. Null

Answer is : A
69 20 BDC 13 3 1 A OBJ Stdio.h stands for the name ED
22 A

A. standardinputoutput B. standard bios

C. Basic input output D. Standardized language

Answer is : A
70 20 BDC 13 3 1 A OBJ How will you print \\n on the screen? ED
22 A

A. printf("\\n"); B. echo"\\n";

C. printf('n'); D. printf("\\\\n");

Answer is : D
71 20 BDC 13 3 1 A OBJ If the two strings are identical, then strcmp() function ED
22 A
returns

A. -1 B. 1

C. 0 D. Yes

Answer is : C
72 20 BDC 13 3 1 A OBJ The library function used to find the last occurrence of a ED
22 A
character in a string is

A. strnstr() B. laststr()
C. strrchr() D. strstr()

Answer is : C
73 20 BDC 13 3 1 A OBJ which of the following function is more appropriate for ED
22 A
reading in a multi-word string?

A. printf(); B. scanf();

C. gets(); D. puts();

Answer is : C
74 20 BDC 13 3 1 A OBJ Which directory the compiler first looks for the file ED
22 A
when using #include?

Current directory where


A. B. C:COMPILERINCLUDE
program is saved
Both (b) and (c)
C. S:SOURCEHEADERS D.
simultaneously

Answer is : B
75 20 BDC 13 3 1 A OBJ #include<stdio.h>int main();void main(){ ED
22 A printf("Okay"); }

A. okay B. No Output
Compile Error.We
Compiler error.Mismatch in
C. cannot declare main() D.
declaration & definition.
function.

Answer is : D
76 20 BDC 13 3 1 A OBJ What function can be used to free the memory allocated ED
22 A
by calloc()?

A. dealloc(); B. strcat();

C. free(); D. memcpy();

Answer is : C
77 20 BDC 13 3 1 A OBJ How many main() function we can have in our project. ED
22 A
A. 1 B. 2

C. No Limit D. Depends on compiler

Answer is : A
78 20 BDC 13 3 1 A OBJ What is sizeof() in C? ED
22 A

A. Operator B. Function

C. Macro D. None of these

Answer is : A
79 20 BDC 13 3 1 A OBJ hich of the following is executed by Preprocess ED
22 A

A. #include<stdio.h> B. return 0
void main(int argc,char **
C. D. 1
argv)

Answer is : A
80 20 BDC 13 3 1 A OBJ How many times CppBuzz.com is printed? ED
22 A

void main()
{
int a = 0;
while(a++ < 5)
printf("CppBuzz.com");
}
A. 4 times B. 5 times

C. o time D. Infinity time

Answer is : B
81 20 BDC 13 3 1 A OBJ The function ___________ is used to determine the ED
22 A
length of a string.

A. len B. strlen

C. length D. strangle

Answer is : B
82 20 BDC 13 3 1 A OBJ The functions strcat has __________ parameters ED
22 A

A. 2 B. 3

C. 4 D. 5

Answer is : A
83 20 BDC 13 3 1 A OBJ What is an Array in C language.? ED
22 A

An array contains
A group of elements of same
A. B. more than one
data type.
element
Array elements are stored in
C. memory in continuous or D. All the above.
contiguous locations.

Answer is : D
84 20 BDC 13 3 1 A OBJ Choose a correct statement about C language arrays. ED
22 A

An array address is the An array size must be


A. address of first element of B. declared if not
array itself. initialized immediately.
Array size is the sum of
C. sizes of all elements of the D. All the above
array.

Answer is : D
85 20 BDC 13 3 1 A OBJ What are the Types of Arrays.? ED
22 A

A. int, long, float, double B. struct, enum

C. char D. All the above

Answer is : D
86 20 BDC 13 3 1 A OBJ An array Index starts with.? ED
22 A

A. -1 B. 0

C. 1 D. 2

Answer is : B
87 20 BDC 13 3 1 A OBJ Choose a correct statement about C language arrays. ED
22 A

Array element
An array size can not changed value can be
A. B.
once it is created. changed any
number of times
To access Nth element of an
C. array students, use students[n- D. All the above
1] as the starting index is 0.

Answer is : D
88 20 BDC 13 3 1 A OBJ What is the output of C Program.? ED
22 A

int main() {

int a[];

a[4] = {1,2,3,4};

printf("%d", a[0]); }

A. 1 B. 2

C. 4 D. Compiler error

Answer is : D
89 20 BDC 13 3 1 A OBJ What is the output of C Program.? ED
22 A

int main() {

int a[3] = {20,30,40};

a[0]++;

int i=0;

while(i<3) {

printf("%d ", i[a]);

i++; }

}
A. 20 30 40 B. 41 30 20

C. 21 30 40 D. None of the above

Answer is : C
90 20 BDC 13 3 1 A OBJ What is the output of C Program with arrays.? ED
22 A

int main()

int rollno[3]=[1001,1002,1003];

printf("%d", rollno[1]);

A. 1002 B. 1003

C. address of 1002 D. Compiler error

Answer is : D
91 20 BDC 13 4 1 A OBJ
22 A
A function is a self-contained block of code that performs Ea Dparticular _____

A. program B. function

C. module D. Task

Answer is : D
92 20 BDC 13 4 1 A OBJ A function can be called by simply using the function ED
22 A
name followed by a list of _____________

A. parantheses B. parameter

C. actualparameter D. none

Answer is : C
93 20 BDC 13 4 1 A OBJ ED
22 A
Passing address of parameters to the functions is referred to as pass by ____

A. address B. value

C. array D. string
Answer is : A
94 20 BDC 13 4 1 A OBJ A variable declared inside a function by default assumes ED
22 A
_________ storage variables.

A. local B. global

C. extern D. register

Answer is : A
95 20 BDC 13 4 1 A OBJ Passing an array to a function must be called by passing ED
22 A
only the __________

A. value B. size

C. array D. all

Answer is : C
96 20 BDC 13 4 1 A OBJ ED
22 A
Passing an array to a function, the prototype must show that the _________

A. value B. size

C. argument D. none

Answer is : C
97 20 BDC 13 4 1 A OBJ The operator used to get value at address stored in a ED
22 A
pointer variable is

.
.
.
A. * B. &

C. && D. ||

Answer is : A
98 20 BDC 13 4 1 A OBJ Choose correct statement about Functions in C ED
22 A
Language.
A) A Function is a group
of c statements which can
Every Function has a
A. be reused any number of B.
return type.
times.

Every Function may no


C. D. All the above.
may not return a value.

Answer is : D
99 20 BDC 13 4 1 A OBJ Choose a correct statement about C ED
22 A
Language Functions.

A function name can


A function name can not
start with an
A. be same as a predefined C B.
Underscore( _ ) or A to
Keyword.
Z or a to z.
Default return type of any
C. D. All the above.
function is an Integer.

Answer is : D
10 20 BDC 13 4 1 A OBJ Choose a correct statement about C Function.?
0 22 A

main()

printf("Hello");

}
"main" is the name of default main() is same
A. B.
must and should Function. as int main()
By default, return 0 is added as
C. the last statement of a function D. All the above
without specific return type.

Answer is : D

S.N YEA MAJO SU UNI CHAPTE SEC Q.TYP


QUESTION «»
O R R B T R . E
101 2022 BDC 13A 4 1 A OBJ A function which calls itself is called E D
a ___ function.

A. Self Function B. Auto Function

C. Recursive D. Static Function


Function

Answer is : C
102 2022 BDC 13A 4 1 A OBJ What is the output of C Program E D
with functions.?

void show();

int main()

show();

printf("ARGENTINA ");

return 0;

void show()

printf("AFRICA ");

ARGENTINA AFRICA
A. B.
AFRICA ARGENTINA
C. ARGENTINA D. Compiler error

Answer is : B
103 2022 BDC 13A 4 1 A OBJ How many values can a C Function E D
return at a time.?

Maximum of
A. Only One Value B.
two values
Maximum of Maximum of 8
C. D.
three values values

Answer is : A
104 2022 BDC 13A 4 1 A OBJ What are types of Functions in C E D
Language.?

Library User Defined


A. B.
Functions Functions
Both Library
None of the
C. and User D.
above
Defined

Answer is : C
105 2022 BDC 13A 4 1 A OBJ Choose correct statements about C E D
Language Pass By Value.

Pass By Value Pass By


copies the variable Value does
A. B.
value in one more not use
memory location. Pointers.
Pass By Value
protects your source
or original variables All the
C. D.
from changes in above
outside functions or
called functions.

Answer is : D
106 2022 BDC 13A 4 1 A OBJ Which of the following is the correct E D
syntax to send an array as a parameter
to function?
A. func(&array); B. func(#array);

C. func(*array); D. func(array[size]);

Answer is : A
107 2022 BDC 13A 4 1 A OBJ What will be the output of the E D
following C code?

1. #include <stdio.h>
2. void foo(int*);
3. int main()
4. {
5. int i = 10, *p =
&i;
6. foo(p++);
7. }
8. void foo(int *p)
9. {
10. printf("%d\n",
*p);
11. }

Some garbage
A. 10 B.
value
Compile time Undefined
C. D.
error behaviour

Answer is : A
108 2022 BDC 13A 4 1 A OBJ What will be the output of the E D
following C code?

1. #include <stdio.h>
2. int main()
3. {
4. int i = 10;
5. void *p = &i;
6. printf("%f\n",
*(float*)p);
7. return 0;
8. }

Compile time Undefined


A. B.
error behaviour
C. 10 D. 0.000000

Answer is : D
109 2022 BDC 13A 4 1 A OBJ Comment on the following pointer E D
declaration.

int *ptr, p;
ptr and p, both
ptr is a pointer to
A. B. are pointers to
integer, p is not
integer
ptr is a pointer to ptr and p both
C. integer, p may or D. are not pointers
may not be to integer

Answer is : A
110 2022 BDC 13A 4 1 A OBJ What will be the output of the E D
following C code?

1. #include <stdio.h>
2. int main()
3. {
4. int *ptr, a = 10;
5. ptr = &a;
6. *ptr += 1;
7. printf("%d,%d/n",
*ptr, a);
8. }

A. 10,10 B. 11,10

C. 10,11 D. 11,11

Answer is : D
111 2022 BDC 13A 4 1 A OBJ Comment on the following C E D
statement.

const int *ptr;


You cannot
You cannot
change the
A. B. change the
value pointed
pointer ptr itself
by ptr
You May or You can change
may not change the pointer as
C. D.
the value well as the value
pointed by ptr pointed by it

Answer is : A
112 2022 BDC 13A 4 1 A OBJ Which is an indirection (in pointer E D
value ) operator among the following?

A. & B. *

C. -> D. .

Answer is : B
113 2022 BDC 13A 4 1 A OBJ Which of the following does not E D
initialize ptr to null (assuming variable
declaration of a as int a=0;)?
int *ptr = &a –
A. int *ptr = &a; B.
&a;
int *ptr = a – All of the
C. D.
a; mentioned

Answer is : A
114 2022 BDC 13A 4 1 A OBJ What will be the output of the E D
following C code?

1. #include <stdio.h>
2. int x = 0;
3. void main()
4. {
5. int *ptr = &x;
6. printf("%p\n",
ptr);
7. x++;
8. printf("%p\n ",
ptr);
9. }
Different
A. Same address B.
address
Compile time
C. D. Varies
error

Answer is : A
115 2022 BDC 13A 4 1 A OBJ What will be the output of the E D
following C code?

1. #include <stdio.h>
2. void main()
3. {
4. int x = 0;
5. int *ptr = &x;
6. printf("%d\n",
*ptr);
7. }

A. Address of x B. Junk value

C. 0 D. Run time error

Answer is : C
116 2022 BDC 13A 4 1 A OBJ What is the correct way to declare and E D
assign a function pointer?

(Assuming the function to be


assigned is "int multi(int,
int);")
int (*fn_ptr)(int, int *fn_ptr(int,
A. B.
int) = multi; int) = multi;
int *fn_ptr(int, none of the
C. D.
int) = &multi; mentioned

Answer is : A
117 2022 BDC 13A 4 1 A OBJ Calling a function f with a an array E D
variable a[3] where a is an array, is
equivalent to __________
A. f(a[3]) B. f(*(a + 3))
all of the
C. f(3[a]) D.
mentioned

Answer is : D
118 2022 BDC 13A 4 1 A OBJ What will be the output of the E D
following C code?

1. #include <stdio.h>
2. void main()
3. {
4. char s[] =
"hello";
5. s++;
6. printf("%c\n",
*s);
7. }

A. Compile time error B. h

C. e D. o

Answer is : A
119 2022 BDC 13A 4 1 A OBJ Which one is not return Type keyword E D
in C?

A. void B. printf

C. int D. float

Answer is : B
120 2022 BDC 13A 4 1 A OBJ The '*" symbol is used for ? E D

only refer the


A. only Multiply B.
address values
None of the
C. A & B D.
above

Answer is : C
121 2022 BDC 13A 5 1 A OBJ Structure with in a structure means E D
_________ of a structure.

A. loop B. module

C. nesting D. none

Answer is : C
122 2022 BDC 13A 5 1 A OBJ include int main (){ FILE E D
*fp; fp =
fopen("source.txt", "r");
return 0;}
For reading and
A. For reading B.
writing
For creating a For creating a
new file new file
C. D.
"source.txt" for "source.txt" for
reading writing.

Answer is : A
123 2022 BDC 13A 5 1 A OBJ Choose a correct statement about C E D
file "R" mode operation using
fopen.

fopen("abc.txt","r");

If the file
abc.txt is
If the file abc.txt is
not found,
A. found, fopen returns B.
fopen
a FILE pointer.
returns
NULL or 0.
File abc.txt is only
opened in Read
All the
C. Mode. Now write D.
above
operation is
performed.

Answer is : D
124 2022 BDC 13A 5 1 A OBJ What is the need for closing a file in C E D
language.?

Closing a file
fclose(fp) closes a
clears Buffer
file to release the
A. B. contents from
memory used in
RAM or
opening a file.
memory.
Unclosed files
occupy memory
C. and PC hangs D. All the above
when on low
memory.

Answer is : D
125 2022 BDC 13A 5 1 A OBJ Where is a file temporarily stored E D
before read or write operation in C
language.?

A. Notepad B. RAM

C. Hard disk D. Buffer

Answer is : D
126 2022 BDC 13A 5 1 A OBJ What is a C FILE data type.? E D

FILE is like a FILE is like a


A. B.
Structure only Union only
FILE is like a
None of the
C. user define int D.
above
data type

Answer is : A
127 2022 BDC 13A 5 1 A OBJ What is the keyword used to declare a E D
C file pointer.?

A. file B. FILE

C. FILEFP D. filefp

Answer is : B
128 2022 BDC 13A 5 1 A OBJ What is a structure in C language.? E D

A structure is a
A structure is a
collection of
collection of
elements that
A. elements that B.
can be of
can be of same
different data
data type.
type.
Elements of a
C. structure are D. All the above
called members.

Answer is : D
129 2022 BDC 13A 5 1 A OBJ What is the size of a C structure.? E D

A. C structure is B. Size of C
always 128 structure is the
bytes. total bytes of
all elements of
structure.
Size of C
structure is the None of the
C. D.
size of largest above
element.

Answer is : B
130 2022 BDC 13A 5 1 A OBJ What is the output of C program with E D
structures.?

int main()

structure hotel

int items;

char name[10];

}a;

strcpy(a.name, "TAJ");

a.items=10;

printf("%s", a.name);

return 0;

A. TAJ B. Empty string


None of the
C. Compiler error D.
above

Answer is : C
131 2022 BDC 13A 5 1 A OBJ Choose a correct statement about C E D
structures.
Structure
Structure elements members can
can be initialized not be
A. B.
at the time of initialized at
declaration. the time of
declaration
Only integer
members of
None of the
C. structure can be D.
above
initialized at the
time of declaraion

Answer is : B
132 2022 BDC 13A 5 1 A OBJ Choose a correct statement about C E D
structure elements.?

structure
Structure elements elements are
are stored on stored in
A. B.
random free register
memory locations memory
locations
structure elements
are stored in None of the
C. D.
contiguous above.
memory locations

Answer is : C
133 2022 BDC 13A 5 1 A OBJ A C Structure or User defined data E D
type is also called.?

Derived data Secondary data


A. B.
type type
Aggregate data
C. D. All the above
type

Answer is : D
134 2022 BDC 13A 5 1 A OBJ What are the uses of C Structures.? E D

structure is used Structures are


to implement used in
A. B.
Linked Lists, Operating
Stack and Queue System
data structures functionality
like Display
and Input
taking.
Structure are
used to exchange
C. D. All the above
information with
peripherals of PC

Answer is : D
135 2022 BDC 13A 5 1 A OBJ What are the first and second E D
arguments of fopen?

A character
A character string string
containing the containing the
name of the file & name of the
A. B.
the second user & the
argument is the second
mode argument is
the mode
A character string
containing file
None of the
C. pointer & the D.
mentioned
second argument
is the mode

Answer is : A
136 2022 BDC 13A 5 1 A OBJ For binary files, a ___ must be E D
appended to the mode string.

A. Nothing B. “b”

C. “binary” D. “01”

Answer is : B
137 2022 BDC 13A 5 1 A OBJ What will fopen will return, if there is E D
any error while opening a file?

A. Nothing B. EOF
Depends on
C. NULL D.
compiler

Answer is : C
138 2022 BDC 13A 5 1 A OBJ What is the return value of getc()? E D

The next
character from
EOF for end of
A. the stream is B.
file or error
not referred by
file pointer
None of the
C. Nothing D.
mentioned

Answer is : B
139 2022 BDC 13A 5 1 A OBJ When a C program is started, O.S E D
environment is responsible for opening
file and providing pointer for that file?
A. Standard input B. Standard output
All of the
C. Standard error D.
mentioned

Answer is : D
140 2022 BDC 13A 5 1 A OBJ In C language, FILE is of which data E D
type?

A. int B. char *
None of the
C. struct D.
mentioned

Answer is : C
141 2022 BDC 13A 5 1 A OBJ What is meant by ‘a’ in the following E D
C operation?

fp = fopen("DCFNameList.txt",
"a");

A. Attach B. Append

C. Apprehend D. Add

Answer is : B
142 2022 BDC 13A 5 1 A OBJ Which of the following mode E D
argument is used to truncate?

A. a B. f

C. w D. t
Answer is : C
143 2022 BDC 13A 5 1 A OBJ Which type of files can’t be opened E D
using fopen()?

A. .txt B. .bin
none of the
C. .c D.
mentioned

Answer is : D
144 2022 BDC 13A 5 1 A OBJ What is FILE reserved word? E D

A structure tag One of the


A. declared in B. basic data types
stdio.h in c
Pointer to the It is a type
C. structure defined D. name defined in
in stdio.h stdio.h

Answer is : D
145 2022 BDC 13A 5 1 A OBJ stdout, stdin and stderr are ________ E D

A. File pointers B. File descriptors

C. Streams D. Structure

Answer is : A
146 2022 BDC 13A 5 1 A OBJ Which of the following statements E D
about stdout and stderr are true?

Both connected
A. Same B.
to screen always
stdout is line
Both connected
buffered but
C. to screen by D.
stderr is
default
unbuffered

Answer is : C
147 2022 BDC 13A 5 1 A OBJ Which one of the following is correct E D
syntax for opening a file.

FILE
A FILE *fopen(const
*fopen(cons B.
. *filename)
t *filename,
const char
*mode)
FILE
*open(const FILE
D
C. *filename, open(const*filename
.
const char )
*mode)

Answer is : A
148 2022 BDC 13A 5 1 A OBJ What is the function of the mode ‘ E D
w+’?

create text file create text file


for writing, for update,
A. B.
discard previous discard previous
contents if any contents if any
create text file create text file
for writing, do for update, do
C. not discard D. not discard
previous previous
contents if any contents if any

Answer is : B
149 2022 BDC 13A 5 1 A OBJ If the mode includes b after the initial E D
letter, what does it indicates?

A. text file B. big text file

C. binary file D. blueprint text

Answer is : C
150 2022 BDC 13A 5 1 A OBJ _____removes the named file, so that
a subsequent attempt to open it will
fail.

remove(const
A. B. remove(filename)
*filename)
C. remove() D. fclose(filename)

Answer is : A

S.NO YEAR MAJOR SUB UNIT CHAPTER SEC. Q.TYPE QUESTION «»


151 2022 BDC 13A 1 1 B DESC What is ASCII . E D
152 2022 BDC 13A 1 1 B DESC what are the keywords used E D
in cprograms.

153 2022 BDC 13A 1 1 B DESC List out any five keywords E D
basically used.

154 2022 BDC 13A 1 1 B DESC what are operators in C E D


Language.

155 2022 BDC 13A 1 1 B DESC what is Typeconversion. E D

156 2022 BDC 13A 1 1 B DESC E D

Difference between
Sturctures and Union.

157 2022 BDC 13A 1 1 B DESC Listout some of the E D


Expression in C.

158 2022 BDC 13A 1 1 B DESC Importance of Identifiers in C E D


Programming Language.

159 2022 BDC 13A 1 1 B DESC List out the datatypes in c E D

160 2022 BDC 13A 1 1 B DESC What is computer? Explain its E D


Applications.

161 2022 BDC 13A 2 1 B DESC E D


What do you mean by
Decision Statement.

162 2022 BDC 13A 2 1 B DESC Define Looping in C program. E D

163 2022 BDC 13A 2 1 B DESC what is the use of enum in c E D


programming.

164 2022 BDC 13A 2 1 B DESC what is switch statement and E D


what is its uses.

165 2022 BDC 13A 2 1 B DESC what does break statement E D


mean in c programming
language.

166 2022 BDC 13A 2 1 B DESC List out the use of while loop E D
in c program.

167 2022 BDC 13A 2 1 B DESC what is the use of if then else E D
in c program.

168 2022 BDC 13A 2 1 B DESC Discuss about use of Decision E D


Statements in c.

169 2022 BDC 13A 2 1 B DESC Write a program using switch E D


statement with example.

170 2022 BDC 13A 2 1 B DESC write a program by using do E D


while statements.

171 2022 BDC 13A 3 1 B DESC what do you mean by Array. E D

172 2022 BDC 13A 3 1 B DESC Define strcat. E D

173 2022 BDC 13A 3 1 B DESC what do you mean by strlen() E D

174 2022 BDC 13A 3 1 B DESC what do you mean by strcat() E D

175 2022 BDC 13A 3 1 B DESC what is the use of strrev(). E D

176 2022 BDC 13A 3 1 B DESC what does [] refere to in c E D


program.

177 2022 BDC 13A 3 1 B DESC what do you mean by E D


Multidimensional Array.

178 2022 BDC 13A 3 1 B DESC Compare Single and Multi E D


Dimensional Array?

179 2022 BDC 13A 3 1 B DESC Explain about String E D


Functions.

180 2022 BDC 13A 3 1 B DESC What is function .Explain with E D


example.

181 2022 BDC 13A 4 1 B DESC Define Pointers. E D

182 2022 BDC 13A 4 1 B DESC Write a syntax for a pointer E D


variables.

183 2022 BDC 13A 4 1 B DESC what do you mean by Arrays. E D

184 2022 BDC 13A 4 1 B DESC Define Function and list its E D
uses.

185 2022 BDC 13A 4 1 B DESC What is the use of Return E D


statement in C.

186 2022 BDC 13A 4 1 B DESC what does & and * refers. E D

187 2022 BDC 13A 4 1 B DESC what are the Advantages of E D


pointers.

188 2022 BDC 13A 4 1 B DESC What is Recursion? Explain E D


with an example.

189 2022 BDC 13A 4 1 B DESC Explain about function E D


prototypes.

190 2022 BDC 13A 4 1 B DESC Explain about post-Increment E D


and post decrement, pre-
increment and pre-decrement
with a program.

191 2022 BDC 13A 5 1 B DESC How to initializes a pointer? E D

192 2022 BDC 13A 5 1 B DESC what do you mean by file? E D

193 2022 BDC 13A 5 1 B DESC Define streams in C. E D

194 2022 BDC 13A 5 1 B DESC What is struct in C. E D

195 2022 BDC 13A 5 1 B DESC What is union refer to? E D

196 2022 BDC 13A 5 1 B DESC What are operation on file? E D

197 2022 BDC 13A 5 1 B DESC Classify storage classes. E D

198 2022 BDC 13A 5 1 B DESC What are the ways of E D


creating Structure Variables
in c?

199 2022 BDC 13A 5 1 B DESC Purpose of Union in c? E D

200 2022 BDC 13A 5 1 B DESC Compare Structure and Union


in C?
S.NO YEAR MAJOR SUB UNIT CHAPTER SEC. Q.TYPE QUESTION « »
201 2022 BDC 13A 1 1 C DESC List Out the Major part in C E D
program with Example
Program

202 2022 BDC 13A 1 1 C DESC What is ASCII.Explain. E D


203 2022 BDC 13A 1 1 C DESC Write a program for factorial. E D

204 2022 BDC 13A 1 1 C DESC Write a program to add two E D


numbers and Discuss the
Process

205 2022 BDC 13A 1 1 C DESC What are the Datatypes in C E D


Language.

206 2022 BDC 13A 1 1 C DESC Explain about Type E D


conversion

207 2022 BDC 13A 1 1 C DESC write a program for prime E D


number.

208 2022 BDC 13A 1 1 C DESC Explain a program for to E D


check given number is even
number or not.

209 2022 BDC 13A 1 1 C DESC Explain about the character E D


set in C Language.

210 2022 BDC 13A 1 1 C DESC write a C program to add E D


two numbers.

211 2022 BDC 13A 2 1 C DESC what are Decision statement E D


in c .

212 2022 BDC 13A 2 1 C DESC what is looping in c program E D


.List with one example.

213 2022 BDC 13A 2 1 C DESC what is the use of goto E D


statement in c program.

214 2022 BDC 13A 2 1 C DESC what is switch statement and E D


explain its uses.

215 2022 BDC 13A 2 1 C DESC Examine a C program using if E D


else for amount Withdraw in
ATM.

216 2022 BDC 13A 2 1 C DESC Explain a C program using do E D


while.

217 2022 BDC 13A 2 1 C DESC where break statement is E D


used. explain.

218 2022 BDC 13A 2 1 C DESC E D

what is Looping .List with one


example/

219 2022 BDC 13A 2 1 C DESC what is the use of enum in c E D


programming language
.Explain.

220 2022 BDC 13A 2 1 C DESC write a program to find the E D


biggest of two numbers in C.

221 2022 BDC 13A 3 1 C DESC Discuss about the Parts of E D


Functions.

222 2022 BDC 13A 3 1 C DESC Explain about the features of E D


functions.

223 2022 BDC 13A 3 1 C DESC What are the types of E D


function prototypes

224 2022 BDC 13A 3 1 C DESC write a program to Add two E D


numbers using functions.

225 2022 BDC 13A 3 1 C DESC Explain about the Library E D


functions in C.

226 2022 BDC 13A 3 1 C DESC Differentiate Formal E D


Arguments and Actual
Arguments.

227 2022 BDC 13A 3 1 C DESC what are String in C E D


programming Language.

228 2022 BDC 13A 3 1 C DESC Write a program for string E D


reverse.

229 2022 BDC 13A 3 1 C DESC write a program to compare E D


two strings in c program.

230 2022 BDC 13A 3 1 C DESC write a program to reverse a E D


string.

231 2022 BDC 13A 4 1 C DESC what is function prototypes E D


list out the types.

232 2022 BDC 13A 4 1 C DESC what are the uses of E D


pointers.

233 2022 BDC 13A 4 1 C DESC Explain the different Function E D


Types.

234 2022 BDC 13A 4 1 C DESC what is the syntax for call by E D
value.

235 2022 BDC 13A 4 1 C DESC what is the syntax for call by E D
reference.

236 2022 BDC 13A 4 1 C DESC what is function and explain E D


about the types.

237 2022 BDC 13A 4 1 C DESC what is Recursion .Explain E D


with an example.

238 2022 BDC 13A 4 1 C DESC Explain about Library E D


functions in C.

239 2022 BDC 13A 4 1 C DESC what are header files in C E D


.Estimate.

240 2022 BDC 13A 4 1 C DESC Explain how to compile and E D


run a c program.

241 2022 BDC 13A 5 1 C DESC Explain Structure within a E D


Structure.

242 2022 BDC 13A 5 1 C DESC Explain briefly about E D


Structure declaration and
initialization with an example.

243 2022 BDC 13A 5 1 C DESC What are file operations in C? E D

244 2022 BDC 13A 5 1 C DESC Difference between struct E D


and union.

245 2022 BDC 13A 5 1 C DESC What is the use of fseek? E D

246 2022 BDC 13A 5 1 C DESC Explain about pointers with E D


an example.

247 2022 BDC 13A 5 1 C DESC Explain r w a modes in file. E D

248 2022 BDC 13A 5 1 C DESC Explain syntax to open file E D


and read file using funtion.

249 2022 BDC 13A 5 1 C DESC Explain about the features of E D


Structure.

250 2022 BDC 13A 5 1 C DESC write a c program by using


the concept of structure.

You might also like