BCA TU C Programming 2020 MCQ with answers
BCA Second Semester- C Programming -2020 MCQ
i)
Which compilation unit is responsible for adding header tiles content in the
source code?
a)
Linker b) Compiler c) Assembler d) Preprocessor
ii)
What is the meaning of the following line of code?
void sum (int, int);
a)
sum is function which takes int arguments
b) sum is a function which takes
two int arguments and returns void
c)
it will produce compilation error
d)
Can't comment
iii)
Which header file is essential for using strcmp() function?
a)string.h b) strings.h c) text.h d.
strcmp.h
iv)
Which of the following is not a branching statement in C?
a)
return b) goto c) pointer d) continue
v)
Array can be considered as set of elements stored in consecutive memory
locations but having
a) Same data type b) Different data type c) Same scope d) None of the above
vi)
If int a=5, b= 8, then what will be the value of int c= b++a--?
a) 3 b) 4 c)2
d) None of the above
vii)
Suppose you are a piece of code: circle (100,100,50); in C, then what is meant
by 50?
a)
center b) diameter c) perimeter d) radius
viii)
Suppose that the code:
struct
student
{char
named [20];
int
age;
char
address [25];
}
std;
Then,
what is the size of std?
a) 47 bytes b) 20 bytes c) 25 bytes d) None
of the above
ix)
Suppose you are given a piece of code:
int
a = 5*b;
b
= &a;
printf("%u”,
b);
Then,
what will be the output?
a)
5 b) address of a c) address of b d) Garbage value
x)
Which of the following is not a valid file opening mode?
a)
read b) write c)
execute d) append
Below is PDF of this MCQ embedded which you can download or View:
Download C Programming MCQ 2020 with answers
- Downloading Notes
- Downloading Syllabus
- Downloading Question papers
- Downloading Books
- Downloading Notices
- Checking Results within the app
0 Comments