Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
28 views8 pages

(CC-102) (Introduction To Programming) - 2018

The document is an examination paper for B.C.A. Sem.-I on the subject of 'Introduction to Programming Language Using C' and 'Problem Solving and C Programming'. It includes various questions covering topics such as machine level language, C program structure, algorithms, flowcharts, operators, loops, arrays, and functions. The paper consists of multiple sections requiring detailed explanations, algorithms, and true/false statements, with a total of 70 marks allocated.

Uploaded by

rjuyal217
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views8 pages

(CC-102) (Introduction To Programming) - 2018

The document is an examination paper for B.C.A. Sem.-I on the subject of 'Introduction to Programming Language Using C' and 'Problem Solving and C Programming'. It includes various questions covering topics such as machine level language, C program structure, algorithms, flowcharts, operators, loops, arrays, and functions. The paper consists of multiple sections requiring detailed explanations, algorithms, and true/false statements, with a total of 70 marks allocated.

Uploaded by

rjuyal217
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Seat No.

: _______________

DA-107
December-2018
B.C.A., Sem.-I
CC-102 : Introduction to Programming Language Using C
(New Syllabus)
Time : 2:30 Hours] [Max. Marks : 70

1. (A) Answer the following :


(1) What is machine level language ? Explain machine level language with all
its limitations and advantages. 7
(2) What is basic structure of C program ? Write steps to execute C program. 7

ir
OR
(1) Write an algorithm and draw a flowchart to generate even numbers between

ls
100 to 200.
(2) Define constant and variable. Write different rules for the name of variable.
(B) Answer the following : (any four) 4
(1) Which is the incorrect variable name ?
ea
(a) goto (b) ok
(c) hello (d) i_m
(2) Mnemonic code is used in _________.
(a) Assembly language (b) Higher level language
R

(c) Machine level language (d) None of the above language.


(3) Flowchart can consist of which different parts ?
(1) Input (2) Process (3) Output
G

(a) (1) and (2) (b) (2) and (3)


(c) None (d) All of the above
(4) ________ is the first function that is called up when the program is
@

executed.
(a) main () (b) printf ()
(c) scanf () (d) clrscr ()
(5) ________ is single line comment.
(a) // (b) \\
(c) /* (d) /* */
(6) The word ‘int’ is a
(a) keyword (b) password
(c) header file (d) none of the above
DA-107 1 P.T.O.

www.Realsir.in Instagram : @GRealsir


2. (A) Answer the following :
(1) Explain relational and logical operators. 7
(2) Explain IO functions: printf(), scanf(), getchar() and putchar(). 7
OR
(1) Explain different if statements with syntax.
(2) Explain unary, binary and ternary operators with syntax.
(B) Answer the following : (any four) 4
(1) A header file is : ________
(a) A file that contains standard library functions.
(b) A file that contains definitions and macros.
(c) A file that contains user defined functions.
(d) A file that is present in current working directory.

ir
(2) In C size of is a ________.
(a) Variable (b) Operator
(c) Keyword (d) None of the above
(3)

(c) .h
ls
The extension of header file is
(a) .f (b)
(d)
.p
.c
ea
(4) Precedence of operators determines operator ________.
(a) is important (b) is used first
(c) operates on largest numbers (d) execute fast
(5) Switch statement cannot work with ________ data type.
R

(a) int (b) char


(c) float (d) any of the above
G

(6) ________ operator has highest precedence.


(a) () (b) *
(c) = (d) &&
@

3. (A) Answer the following :


(1) Explain for loop and nested loop. 7
(2) Define an array. Explain different options to initialize one dimensional and
two dimensional array. 7
OR
(1) What is loop ? Explain while loop and do while loop and differentiate both.
(2) What is an array ? Write the relation between array name and element
number. How array elements can be referred using base address ?
DA-107 2

www.Realsir.in Instagram : @GRealsir


(B) Answer the following : (any three) 3
(1) The keyword ________ is used to terminate the loop.
(a) break (b) goto
(c) quit (d) short

(2) The size of the array can be defined by


(a) [] (b) ()
(c) {} (d) <>

(3) Int a[5]={l,2,3,4,5};


What does a[2] in the sample code above contain ?

ir
(a) 2 (b) 4
(c) 1 (d) 3

(4)
ls
Two dimensional array a [3] [4] has ________
ea
(a) 3 rows and 4 columns (b) 12 rows and 12 columns
(c) 4 rows and 3 columns (d) 7 rows and 7 columns

(5) The continue statement is used to ________


R

(a) Continue the next iteration of the loop statement.


(b) Skip the block of loop statement.
G

(c) Exit from the outermost block even it is used in the innermost block.
(d) Continue execution of the program even error occurs.
@

4. (A) Answer the following :


(1) Explain strcmp() and strcat() functions in depth. 7
(2) Write different categories of user defined function. Explain any two in
depth. 7
OR
(1) Explain different elements of user defined functions.
(2) What is function ? Explain nesting of function with syntax.
DA-107 3 P.T.O.

www.Realsir.in Instagram : @GRealsir


(B) Answer the following : (any three) 3
(1) A function calls itself is called _______.
(a) calling itself (b) main calling
(c) recursion (d) none of the above

(2) The function name itself is _______.


(a) an address (b) definition
(c) value (d) none of the above

(3) What is the length of null string ?


(a) 0 (b) 1
(c) 2 (d) None of the above

ir
(4) Which variable retains its value in between function calls ?
(a) Auto (b) Static

ls
(c) Register (d) Extern

(5) _______ function is used to copy source string in the destination string.
(a) strcat() (b) strcpy()
ea
(c) strcmp() (d) strlen()
_______________
R
G
@

DA-107 4

www.Realsir.in Instagram : @GRealsir


Seat No. : _______________

DA-107
December-2018
B.C.A., Sem.-I
CC-102 : Problem Solving and C Programming
(Old Syllabus)
Time : 2:30 Hours] [Max. Marks : 70

1. (A) Answer the following :

(1) Write features of machine level language and differentiate it with assembly

ir
language. 7

(2) Write an algorithm and draw a flowchart to generate a series : 7

ls
1, 4, 9, 16, 25.., 100

OR
ea
(1) Write features of higher level language and differentiate it with assembly
language.

(2) Write an algorithm and draw a flowchart to find N!. Where the value of N is
R

provided by the user.

(B) Fill in the blanks : (any four) 4


G

(1) C is ________ language.(procedural / non-procedural)


@

(2) To convert assembly language to machine language ________ is used.

(3) The symbol of process is ________ in flowchart.

(4) The graphical representation of an algorithm is called ________.

(5) The task of compiler is, to convert ________ language to machine


language.

(6) ________ language is also called symbolic language.


DA-107 5 P.T.O.

www.Realsir.in Instagram : @GRealsir


2. (A) Answer the following :

(1) Differentiate variable and constant and write rules to define name of
variable. 7

(2) Explain all logical operators provided by C language. 7

OR
(1) Explain in depth : (i) Typecasting (ii) Comments

(2) Explain relational operators in depth.

(B) State true or false : (any four) 4

(1) Local variables belongs to automatic storage class.

(2) The name of variable can be keyword.

ir
(3) There can be any number of main functions in a single C program.

ls
(4) Every C program ends with END word.

(5) The putchar function is used to write character.

(6) The purpose of header file is to store source code of a program.


ea
3. (A) Answer the following :

(1) Explain switch case statement with its limitations in depth. 7


R

(2) Explain while loop in depth and differentiate it with do while loop. 7

OR
G

(1) Explain different types of if statements with syntax.

(2) Explain break and continue in depth and differentiate both.


@

(B) State true or false : (any three) 3

(1) One if can have only one else statement.

(2) In the nested loop the innermost loop executed minimum time.

(3) The while loop is exit controlled loop.

(4) With use of goto, backward jump is possible in C program.

(5) for loop can not be written within while loop.


DA-107 6

www.Realsir.in Instagram : @GRealsir


4. (A) Answer the following :

(1) Explain how array can be created of different dimensions and can be
initialized ? 7

(2) How string can be created ? Explain strlen and strcmp functions. 7

OR
(1) Define an array. Explain relation between array name and index number.
How elements can be referred using base address ?

(2) Define string and explain strcat and strcpy functions.

(B) Fill in the blanks : (any three) 3

(1) The array data type is ________ to store a string.

ir
(2) The string manipulation functions are available in ________ header file.

(3) The string is terminated with ________ character.

(4)

(5)
ls
The array index starts with ________.

To store double value in array, the datatype of an array should be ________.


ea
____________
R
G
@

DA-107 7 P.T.O.

www.Realsir.in Instagram : @GRealsir


ir
ls
ea
R
G
@

DA-107 8

www.Realsir.in Instagram : @GRealsir

You might also like