-TED (rs)-2131

Reg. No.

EEVTSTON-2015)

Signature

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 ?

10 5

PROGRAMMING IN C.pdf

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.

2MB Sizes 2 Downloads 35 Views

Recommend Documents

PROGRAMMING IN C.pdf
Page 1 of 2. müslümgürses türkü albümü indir.gta 3 apk indir mob.org.directx 11 download windows 7 32 bit indir gezginler.aimersoft hd converter.

Programming In Lua.pdf
Sign in. Loading… Whoops! There was a problem loading more pages. Whoops! There was a problem previewing this document. Retrying... Download. Connect ...

Functional Programming in Scala - GitHub
Page 1 ... MADRID · NOV 21-22 · 2014. The category design pattern · The functor design pattern … ..... Play! ∘ Why Play? ∘ Introduction. Web Dictionary.

Macro Programming in ImageJ - GitHub
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.

pdf-1425\the-jr-programming-language-concurrent-programming-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.

Functional Programming Principles in Scala.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 -
Programming in PHP – PHP001 http://ureddit.com/class/41140/programming-in-php. This course is designed for beginner and intermediate level developers, ...

Scalaz: Functional Programming in Scala - GitHub
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).

Programming in Three Dimensions - Marc Najork
[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

Programming in C: A Tutorial
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 ...

Uniform value in Dynamic Programming
We define, for every m and n, the value vm,n as the supremum payoff the decision maker can achieve when his payoff is defined as the average reward.

PIC Microcontrollers - Programming in C.pdf
2 Apr 2017 - 43551 -- 48926 -- -- -- -- -- -- -- 40895 -- 29657 -- 40875 54352 -- -- -- -- --. Whoops! There was a problem loading this page. Retrying... PIC Microcontrollers - Programming in C.pdf. PIC Microcontrollers - Programming in C.pdf. Open.

Functional Programming in JavaScript
Functional Reactive Programming · Learning React: Functional Web Development with React and Flux · CSS Secrets: Better Solutions to Everyday Web Design ...

Uniform value in dynamic programming - CiteSeerX
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 ...