Aspire Study
Log in
Sign Up
Home
Exams
Library
Online Forms
Feedback
Jamia Millia Islamia MCA C Programming Language Previous Year Questions (PYQs) – Page 5 of 5
Light
Jamia Millia Islamia MCA C Programming Language Previous Year Questions (PYQs) – Page 5 of 5
A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations
Jamia Millia Islamia MCA
Previous Year Questions
Jamia Millia Islamia MCA
Previous Year Questions
Jamia Millia Islamia MCA
Qus : 41
3
Which bitwise operator is suitable for turning off a particular bit in a number?
1
&& operator
2
|| operator
3
& operator
4
! operator
View Solution
Video Solution
Discussion
✓
Solution
Use bitwise AND with a mask having 0 at that bit.
Qus : 42
2
Consider the following lists, and then select the correct option after matching them. $\begin{array}{|c|l|c|l|} \hline \textbf{List–I} & & \textbf{List–II} & \\ \hline 1. & \text{Procedural Oriented Language} & P. & \text{COBOL} \\ \hline 2. & \text{Object Oriented Language} & Q. & \text{HTML} \\ \hline 3. & \text{Business Oriented Language} & R. & \text{C++} \\ \hline 4. & \text{Web Page} & S. & \text{Pascal} \\ \hline \end{array}$
1
(1,S), (2,Q), (3,P), (4,R)
2
(1,S), (2,R), (3,P), (4,Q)
3
(1,P), (2,R), (3,S), (4,Q)
4
(1,S), (2,P), (3,Q), (4,R)
View Solution
Video Solution
Discussion
✓
Solution
Procedural Oriented → Pascal $(1,S)$ Object Oriented → C++ $(2,R)$ Business Oriented → COBOL $(3,P)$ Web Page → HTML $(4,Q)$ Correct match: $(1,S), (2,R), (3,P), (4,Q)$
Qus : 43
2
The C programming language uses which of the following data types to store real numbers?
1
int
2
float
3
char
4
double
View Solution
Video Solution
Discussion
✓
Solution
Real numbers (decimal values) are stored using floating-point data types such as float or double. In MCQ context, the expected answer is float.
Qus : 44
3
Which of the following is NOT a valid operator in C?
1
+
2
&
3
#
4
%
View Solution
Video Solution
Discussion
✓
Solution
+, &, and % are valid operators in C. # is not an operator; it is used in preprocessor directives like #include and #define.
Qus : 45
2
The operator "&&" in C represents:
1
Bitwise AND
2
Logical AND
3
Bitwise OR
4
Logical OR
View Solution
Video Solution
Discussion
✓
Solution
&& performs logical AND between two conditions and returns true only if both conditions are true.
Qus : 46
4
Which of the following is NOT a valid C language function prototype?
1
int sum(int a, int b);
2
void display();
3
int calculate();
4
void main();
View Solution
Video Solution
Discussion
✓
Solution
Standard C specifies main should return int, so void main() is not considered a proper function prototype.
Qus : 47
3
In C programming, which function is used to open a file for reading?
1
open()
2
read()
3
fopen()
4
fileopen()
View Solution
Video Solution
Discussion
✓
Solution
The function fopen() is used to open a file.
Qus : 48
4
Which of the following is a correct form of a function declaration in C?
1
functionName(int a, int b);
2
int functionName(int a, int b)
3
function(int a, int b)
4
int function(int a, int b);
View Solution
Video Solution
Discussion
✓
Solution
A function declaration must include the return type and function name.
Qus : 49
3
Which function is used to find the length of a string in C?
1
length()
2
size()
3
strlen()
4
strsize()
View Solution
Video Solution
Discussion
✓
Solution
The strlen() function in the string.h library returns the length of a string excluding the null character.
Example:
strlen("hello") = 5
«
1
…
3
4
5
»
Jamia Millia Islamia MCA
Online Test Series,
Information About Examination,
Syllabus, Notification
and More.
Click Here to
View More
Jamia Millia Islamia MCA
Online Test Series,
Information About Examination,
Syllabus, Notification
and More.
Click Here to
View More
×
Get Free Preparation Strategy
Ask Your Question or Put Your Review.
Add Comment
Please provide more information - at least 10 characters
Add Comment
×
Info.