How To Exam?

a knowledge trading engine...


Periyar University 2005 B.Sc Electronics Allied I — COMPUTER PROGRAMMING - Question Paper

Sunday, 27 January 2013 01:30Web

Third Semester
Electronics
Allied I — COMPUTER PROGRAMMING
Time : 3 hours Maximum : 100 marks
ans ALL ques..
part A — (10 x two = 20 marks)
1. The symbol used to terminate every C statement
is
(a) double quotation (b) semi colon ; (c) right braces (d) /*.
2. The —— always precedes preprocessor
| directives
(a) # (b) /*
(c) { (d) !.

3- stores its outputs in a string instead
of displaying or printing it directly
(a) strlen (b) sscant
(c) sprintf (d) malloc.
4. The function returns the current
position in the file
(a) ftell (b) fseek
(c) size of (d) fopen.
5. What separates the 3 expression of a for
statement?
(a) Comma (b) Colon
(c) Semicolon (d) Braces.
6. The data kind int or signed int that demands
exactly
(a) eight bits (b) 16 bits
(c) 24 bits (d) 32 bits.
7. Keyword equivalent for character
(a) ch (b) char
(c) character (d) chartr.
8. Declaration of Arrays
(a) type variable-name [size];
(b) type variable-name (size);
(c) type variable—name [size]
(d) type variable-name (size).
9. fopen (SI, S2) function is used to
(a) open a file named SI of kind S2
(b) open a file named SI of kind S2, return a pointer to the file
(c) open 2 files SI and S2
(d) open file SI and S2 in learn mode.
10. Putchar (c) is used to
(a) send a string to the standard output device
(b) send data items to the standard output device
(c) send a single character to the standard output device
(d) send a string to a file.
part B — (5 x six = 30 marks)
11. (a) Write the hierarchy of Arithmetic operators in
C with an example.
Or
(b) Write a program to obtain a 2nd largest of provided 5 numbers.
12. (a) With syntax and example discuss switch
statement.
Or
(b) Differentiate while ... do and do ... while with an example.
13. (a) Write a program using pointers to determine a
length of a character string.
Or
(b) discuss the difference ranging from call by reference and call by value.
14. (a) What is meant by the subsequent terms :
(i) Array of structure
(ii) Nested structure?
Or
(b) describe a structure type, strut personal that would contain person name, date of joining and salary. Using this structure write a program to learn this info for 1 person from the keyboard and print the identical on the screen.
15. (a) Write short notes on :
(i) ftell ()
(ii) fprintfO
(iii) fopen ().
Or
(b) Distinguish ranging from the subsequent functions :
(i) get c and get char
(ii) printf and fprintf
part C — (5 x 10 = 50 marks)
16. (a) discuss in detail data kinds in C.
Or
(b) discuss in detail any four input output statements.
17. (a) Write a program to evaluate the roots of a
quadratic formula.
Or
(b) With syntax and example :
(i) Switch ... case. (5)
(ii) Break and goto. (5)
18. (a) explain the use of multidimensional array
with an example.
Or
(b) What is command line argument discuss with an example.
19. (a) discuss the subsequent :
(i) Static variable (4)
(ii) Register variable (3)
(iii) External variable. (3)
Or (b) What is recursion? discuss with an example.
20. (a) discuss preprocessor in detail.
Or (b) discuss any four file handling statements.





( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Periyar University 2005 B.Sc Electronics Allied I — COMPUTER PROGRAMMING - Question Paper