*RAN-1811000101040001*
R A N - 1 8 1 1 0 0 0 1 0 1 0 4 0 0 0 1
RAN-1811000101040001
First Year B.C.A. (Semester - I) Examination
February - 2021
104 - Computer Programming And Programming Methodology (New)
Time: 3 Hours ] [ Total Marks: 70
k|Q“p : / Instructions
(1)
“uQ¡ v$ip®h¡g r“ip“uhpmu rhNsp¡ DÑfhlu ‘f Ahíe gMhu. Seat No.:
Fill up strictly the details of signs on your answer book
Name of the Examination:
First Year B.C.A. (Semester - I)
Name of the Subject :
104 - Computer Programming And Programming Methodology (New)
Subject Code No.: 1811000101040001 Student’s Signature
(2) All questions are compulsory.
(3) Figure to the right indicate full marks.
(4) Mention your options clearly.
(5) Question 1(A) is of MCQ type, Mention question number and appropriate answer in
answer book. Choose only one option.
Q-l (A) Do as directed (Any Ten) (10)
1. Which is valid expression in C language?
A. char my_variable = “ABC”;
B. char my_variable = ‘ABC’;
C. char my_variable = ‘A’;
D. char my_variable = “A”;
P0874
RAN-1811000101040001 ] [1] [ P.T.O. ]
2. Extension of C source code file is ..............
A. .c C. .obj
B. .cpp D. .exe
3. Which of the following is correct control specifier for double data type?
A. %d C. %f
B. %u D. %lf
4. Which of the following is correct statement?
A. #define n = 5 C. #define n 5
B. #define int n = 5 D. #define n = 5;
5. Operator % in the C language is called................. .
A. Percentage operator C. Division operator
B. Modulus operator D. Quotient operator
6. What is the output of the C program?
void main()
{
int a = 3+5/2;
printf(“%d”,a);
getch();
}
A. 3
B. 5
C. 2
D. Can not assign an expression to variable at the time of declaration.
7. Which mathematical function would you use to round off 8.33 to 9?
A. ceil(8.33) C. ceil(8.33,9)
B. floor(8.33) D. floor(8.33,9)
P0874
RAN-1811000101040001 ] [2] [ Contd.
8. In C language, the symbolic constant is defined ..................... .
A. Before main C. Any where
B. After main D. None of these
9. switch statement cannot accept
A. int C. float
B. char D. None of these
10. A label statement consists of an identifier followed by
A. ; C. ,
B. : D. =
11. An array index starts with .......................
A. -1 C. 2
B. 1 D. 0
Q-l (B) Answer in short (any five) (10)
1. What is an object code?
2. Explain keyword.
3. Give the syntax of for loop.
4. Explain strcpy().
5. Explain nested if condition.
6. Define the term algorithm.
7. Explain relational operators with an example.
Q-2 Answer the following questions. (Any three) (15)
A. Explain flowchart in detail.
B. Explain constant in detail.
C. Explain scanf(), getc(), getch(), gets(), and getchar().
D. Explain C program body structure in detail.
P0874
RAN-1811000101040001 ] [3] [ P.T.O. ]
Q-3 Answer the following questions. (Any three) (15)
A. Explain any five mathematical functions in detail.
B. Explain switch....case statement in detail.
C. Explain exit control loop in detail.
D. Write a short note on one dimensional array.
Q-4 Answer the following questions. (Any three) (15)
A. Write a short note on pointer.
B. Explain jumping statement in detail with an example.
C. Explain linear search method of one-dimensional array with an example.
D. Explain ternary and sizeof() operators in detail with an example.
Q-5 Write an algorithm or a program to print factorial of inputted number. (5)
OR
Q-5 Write an algorithm or a program to reverse a string. (5)
P0874
RAN-1811000101040001 ] [4] [ 3810 ]