Breaking

LightBlog

Saturday, 8 July 2017

O Level C language July 2015 Solved Question Paper

M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH ‘C’ LANGUAGE July, 2015


M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH ‘C’ LANGUAGE

NOTE:
IMPORTANT INSTRUCTIONS:

1. Question Paper in English and Hindi and Candidate can choose any one language.
2. In case of discrepancies in language, English version will be treated as final.
3. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and
PART TWO contains FIVE questions.
4. PART ONE is to be answered in the OMR ANSWER SHEET only, supplied with the question paper, as per the instructions contained therein. PART ONE is NOT to be answered in the answer book.
5. Maximum time allotted for PART ONE is ONE HOUR. Answer book for PART TWO will be
supplied at the table when the answer sheet for PART ONE is returned. However,candidates, who complete PART ONE earlier than one hour, can collect the answer book for PART TWO immediately after handing over the answer sheet for PART ONE.

TOTAL TIME: 3 HOURS TOTAL MARKS: 100
(PART ONE – 40; PART TWO – 60)

PART ONE
(Answer all the questions)

1. Each question below gives a multiple choice of answers. Choose the most appropriate one and enter in the “OMR” answer sheet supplied with the question paper, following instructions therein. (1x10)

1.1 Which of the following is the correct order of evaluation for the below expression?
z = x + y * z / 4 % 2 - 1
A) * / % + - =
B) = * / % + -
C) / * % - + =
D) * % / - + =


1.2 Which of the following is the correct order if calling functions in the below code?
a = f1(23, 14) * f2(12/4) + f3();
A) f1, f2, f3
B) f3, f2, f1
C) Order may vary from compiler to compiler
D) None of the above


1.3 How many times "IndiaBIX" is get printed?
int main()
{
int x;
for(x=-1; x<=10; x++)
{
if(x < 5)
continue;
else
break;
printf("IndiaBIX");
}
return 0;
}

A) Infinite times
B) 11 times
C) 0 time
D) 10 times



1.4 What do the following declaration signify? void *cmp();
A) cmp is a pointer to an void type.
B) cmp is a void type pointer variable.
C) cmp is a function that return a void pointer.
D) cmp function returns nothing.



1.5 When following piece of code is executed, what output will be generated?
#include<stdio.h>
int main(){
char arr[7]="Network";
printf("%s", arr);
return 0; }
A) Network
B) N
C) Garbage value
D) Compilation error

1.6 The result of a Relational operation is always
A) either True or False
B) is less than or is more than
C) is equal or less or more
D) All of the above


1.7 The keyword used to transfer control from a function back to the calling function is
A) switch
B) goto
C) go back
D) return


1.8 What is the similarity between a structure, union and enumeration?
A) All of them let you define new values
B) All of them let you define new data types
C) All of them let you define new pointers
D) All of them let you define new structures


1.9 Which of the following cannot be used as identifiers?
A) Spaces
B) Digits
C) Underscores
D) Letters

1.10 How many times is a do while loop guaranteed to loop?
A) 0
B) Infinitely
C) 1
D) Variable


2. Each statement below is either TRUE or FALSE. Choose the most appropriate one and ENTER in the “OMR” answer sheet supplied with the question paper, following instructions therein. (1x10)

2.1 Functions can be called either by value or reference.(T)
2.2 Comma operator is used for separation.(T)
2.3 The size of a structure can be determined by both size of variable name and size of (struct tag). (T)
2.4 While loop is post tested loop.(F)
2.5 All of the following are valid expressions in C.(T)
a = 2 + (b = 5);
a = b = c = 5;
a = 11 % 3;
2.6 A variable is a string that varies during program execution.(F)
2.7 void (*ptr)() is a pointer to a function which receives nothing and returns nothing.(T)
2.8 Calling a uninitialized variable will provide zero value.(F)
2.9 C language cannot be used for database manipulation.(T)
2.10 In the expression a=b=5 the order of Assignment is NOT decided by Associativity of
operators.(F)