SECOND SEMESTER DIPLOMA EXAMINAIION IN ENGINEERING/TECHNOLOGY OCTOBER. 2016
-
PROGRAMMING
IN
C
(Common to CT, CM and IF)
lTime
:3
hours
(Maximum marks : 100)
A (N4a:
Marks
I
Answer the following questions in one or two sentences. Each question carries 2 marks
l. 2. 3. 4. 5.
Give the syntax of simple
if
statement.
Define fi.nction.
Gve one difference between anay and structure.
p in
d a
il Answer any fivequestions t#;ffi.]i-J
m . w
w w
y l o
Write the syntax of declaring one dimensional integer array.
PAK|-
l. 2. 3. 4. 5. 6. 7.
m o .c
List any two keywords in C.
Describe conhol instructions
in
B
(5x2: l0)
question carries 6 marks.
C.
Explain hierarchy of operaton.
Compare call by value and call by reference parameter passing mechanism.
Explain automatic arrd static storage classes in C.
Write a C program to find the largest element from an array. Write a C program to find the transpose of a matrix. Give the declaration of struchre named student with the following elements. student name
roll number integer a:ray
[1
7]
of 5 marks.
(5x6:
30)
[e.r.o.
l
2
Marks'
PART-
C
Ma,ximum marks : 60) (Answer one full question from each unit. Each firll question caries 15 marks.)
UNrr
-
I
ill (a) Explain the switch and case statements with example' (b)
9
write a c program to print the multiplication table of a number.
6
On
IV
(a)
Distinguish between while and do '.......... while with example'
o)
Compare break and continue statements
UNrr
v
(a)
-
9 6
in C' II
Expiain recursion. Write a progarn to find the factorial
of
a number using 9
recursion.
(b) List the primary data type and give exarnple for each.
m o .c
On
9
(a) Write the features of C preprocessor. (b) List the uses of fi,nctions in C.
VI
UNrr
-
(b)
w w
g
6
9 6
Describe the initialisation of two dimensional array'
m . w
x
d a
Explain array of pointers.
p in On
6
y l o
III
(a) Write a C program to add two matrices. (b) Write a progam that passes an entire alray to a function' VIil (a)
6
UNrr
-
iV
(a) Explain the string frmctions strlenQ,sfcpyQ,stcatQ (b) Describe the use of structures.
and strcmpQ with
examples. l0 5
On
(a)
Describe array
O)
Explain about array of pointers to strings.
of structures. How can it be implemented in a program ?
Give the syntax of simple if statement. 3. ... Explain hierarchy of operaton. 3. ... ill (a) Explain the switch and case statements with example' ... Expiain recursion.
Sign in. Loading⦠Whoops! There was a problem loading more pages. Whoops! There was a problem previewing this document. Retrying... Download. Connect ...
example codes using your own computer and run those macros. Modify- .... 10there is no declaration of types, such as number or string, in ImageJ macro. 12 ...... how folders are organized in your laptop) that organizes many classes in.
... apps below to open or edit this item. pdf-1425\the-jr-programming-language-concurrent-progr ... rnational-series-in-engineering-and-computer-scie.pdf.
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Functional ...
Programming in PHP â PHP001 http://ureddit.com/class/41140/programming-in-php. This course is designed for beginner and intermediate level developers, ...
one value of type B. This is all a function is allowed to do. No side-effects! .... case class Success[+E, +A](a: A) extends Validation[E, A] ... phone: String).
[10]. We have identified four potential benefits of using a 3D notation : it can alleviate the screen space ... together with a host of other properties, such as color, texture, shape, etc. Visual ...... To our best knowledge, Cube was the first visu
is often used for system programming and bit-manipulation, octal numbers are an important part .... corresponding ascii letters are a fixed distance apart. ..... Simple variables (not arrays) are passed in C by ``call by value'', which means that ...
Functional Reactive Programming · Learning React: Functional Web Development with React and Flux · CSS Secrets: Better Solutions to Everyday Web Design ...
that for each m ⥠0, one can find n(m) ⥠1 satisfying vm,n(m)(z) ⤠vâ(z) â ε. .... Using the previous construction, we find that for z and z in Z, and all m ⥠0 and n ...