Veer Narmad South Gujarat University 2011-1st Year B.C.A Computer Application SB-1424 - 204 : Programming language - 1 ( Sem - 2 ) - Question Paper
SB-1424
First Year B. C. A. (Sem. II) Examination March / April - 2011 204-Programming Language-I
[Total Marks : 70
Time : Hours]
Instructions
Seat No.:
M CnsLLnlcj.L{l [qoicu u? snqw <h>h41.
Fillup strictly the details of signs on your answer book.
Name of the Examination :
F. Y. B. C. A. (Sem. 2)
Name of the Subject:
204-Programming Language - 1
Student's Signature
-Subject Code No.: |
|
-Section No. (1,2,.....): Nil |
(2) All questions are compulsory.
(3) Do not interchange sub questions.
1 Answer the following in brief : (any seven) 14
(i) Give the rules for writing one dimensional array definition.
(ii) What is a purpose of external variable ? What is its scope ?
(iii) What is structure member ? What is a relationship between structure member and structure ?
(iv) What do you mean by overflow and underflow of data ?
(v) Differentiate between if and goto statement.
(vi) Differentiate between break and continue.
(vii) How can you assign hexadecimal and octal value to integer value ?
(viii) Explain any two string functions.
Do as directed :
(a) Write a program to display the following pattern for say n=7 B A Z Y X W V U T S R Q P
O N M L K J I H G FED C B A
(a) Write the different features of macro and compare it with variable.
(b) Define the structure called Inventory that will describe the information like Ino, Iname, price, and qty. Read record for 5 items and write a program to sort on name of the item. Display records in appropriate form.
3 Attempt the following :
following operations on array :
(a) Traversing
(b) Insertion
(c) Deletion
(d) Sorting
(b) Explain different branching structure in C.
4 Answer the following :
(a) Write a program to display circular matrix of given 8 number N. If input is 4 then
16 |
15 |
14 |
13 |
5 |
4 |
3 |
12 |
6 |
1 |
2 |
11 |
7 |
8 |
9 |
10 |
(a) Explain the type conversion. Also describe the 8 conditions in which explicit and implicit conversion
is used
(b) How can 7 Operator is used inside a Union and a 5 structure?
OR
variations of the word.
E.g. If input is space
Then output should be
space paces acesp cespa espac.
SB-1424] 3 [ 3600 ]
Attachment: |
Earning: Approval pending. |