Monday, September 5, 2016
S.B. Roll no. __________
COMPUTER PROGRAMMING USING C
Duration: 3 hrs
1. State true or false
b. ‘C’ was primarily developed as a system programming language.
c. ‘C’ is a high level language with same low level features.
d. ‘if’ is a valid identifier in ‘C’
e. ‘%’ operator takes only integer operands.
f. In an expression involving ‘11’ operator, evaluation will be stopped if one of its operands evaluates to true.
g. If n has the value of 3. Then the output of the statement
Printf (“%d %d”, n++, +=n”); is 3,5
h. ++ is a unary operator.
i. While passing an array as an actual argument, the function call must have the array name alone.
j. If a two dimensional array is used as a formal parameter, then the first (row) subscript may subscript may be left empty.
Note : Attempt any five questions
a. Explain the use of if-else statement
b. Differentiate between flowchart and algorithm with example.
c. Write a program in ‘C’ language to swap two value.
d. Differentiate between call by value and call by reference.
e. Differentiate between structure and union with example.
f. Write a program in ‘C’ language to check whether the umber is prime or not.
g. Compare between arrays and pointers.
3. What is the use of loop? Describe the syntax and purpose of while do while and for loop using programming example.
Write a program to do the following :
a. Program debugging
b. I/O statements
c. Array of structures
punjabtechnicaluniversity.blogspot.in Roll No......................... ... Total No. of Questions : 07] ...
Roll No……….. Total No. of Questions: 07 B.Com. (Sem.-1 st ) FINANCIAL ACCOUNTING Subject Code: BCOP-101 Paper ID: [B1101] ...
punjabtechnicaluniversity.blogspot.in Click Here for Syllabus of B-Tech 1st Year . http://ptu.ac.in/userfiles/file/engg_syllab/1st_and_...
Business Organisation and Management, Question Paper of B.Com 1st Semester,Download Previous Years Question Paper 2Roll No…….. Total No. of Questions: 07 B.Com (Sem.-1 st ) BUSINESS ORGANIATION AND MANAGEMENT Subject Code: BCOP-102 (2011 &a...
Roll No……. Total No. of Questions:07 B.COM (Sem.-1 st ) BUSINESS MATHEMATICS SUBJECT CODE: BCOP-104 (2011 Batch) PAPER ID: ...
punjabtechnicaluniversity.blogspot.in Roll No. ...................... Total No. of Questions : 13] ...
punjabtechnicaluniversity.blogspot.in Master Of Technology (M-Tech) Syllabus SYLLABUS FOR MASTER OF TECHNOLOGY (M-Tech) Br...
punjabtechnicaluniversity.blogspot.in Click Downlink for Dowload of Scheme and Syllabus of B.Com. Professional Batch 2011onwards ht...
B.Sc. IT (402) (S05) / 102 (New) (Sem. - 4th) BASIC MATHEMATICS – I, Punjab Technical University, PTU, Question paperpunjabtechnicaluniversity.blogspot.in Roll No. ................. Total No. of Questions : 13] ...
punjabtechnicaluniversity.blogspot.in Roll No . ............ Total No. of Questions : 07) ...