Hello, Students Welcome to New Blog. In this Blog There are ten multiple choice questions of String unit of Advance C in BCA-I (SEM-II).
This blog may help you in writing an assignment because this multiple choice questions of Advance C is represented in sequence (unit wise). So please read this blog carefully and note down in your notes. And with the help of Advance C MCQ (unit-I 'string')
May gain your knowledge. This question may help you in viva.
BCA -I (SEMESTER-II)
Advance C Unit-I MCQ
![]() |
| C language MCQ |
1. In a string we can Store -
a) group of char
b) group of float
c) single value
d) both a and b
Ans : (a) group of char
2. Choose the correct Syntax of string -
a) data type stringname;
b) datatype stringname [size];
c) data type [size]
d) stringname [size]
Ans : (b) datatype stringname [size];
3. Following function is used to read the whole string -
a) puts()
b) gets()
c) scanf()
d) printf()
Ans : (b) gets()
4. Following is correct Syntax of gets function -
a) gets (any variable)
b) gets (any variable);
c) (any variable) gets;
d) gets any variable;
Ans : (b) gets(any variable);
5. Following function is used to write the whole string -
a) gets()
b) scanf()
c) puts()
d) printf()
Ans : (c) puts()
6. Following function is used to copy two string
a) strcmp()
b) strcat()
c) strcpy()
d) strcopy()
Ans : (c) stcpy()
7. What is correct Syntax of strcpy() -
a) strcopy(string 1);
b) strcpy(strings);
c) strcpy(any string);
d) strcpy(string 1,string 2);
Ans : (d) strcpy(string1,string2);
8. Following function is used to compare two string -
a) strcompare()
b) strmove()
c) strcmp()
d) strcmpr()
Ans : (c) strcmp()
9. If string are same that strcmp() will return -
a) ASCII VALUE
b) string
c) zero (0)
d) string are same
Ans : (c) zero (0)
10. If a string are different than strcmp() will return -
a) ASCII VALUE
b) string
c) 0
d) string are same
Ans : (a) ASCII VALUE
Next ten MCQ uploading Coming soon.
FAQ
- C language MCQ type question.
- C language assignment.
- Advance C MCQ type questions.
- Advance C Assignment.
- BCA-I (SEM-II) Advance C MCQ
- Advance C Unit-I multiple choice questions

If you have a doubts or any queries please contact us
ReplyDelete