Green  Blue  Orange  Red

baner
You are here:   Home Scheme and Syllabus
large small default
COMPUTER PROGRAMMING LABORATORY PDF Print E-mail
Written by Administrator   
Thursday, 24 September 2009 09:14

 

 

Sub Code  : 06 CPL 16 /06 CPL 26                    
IA Marks    :25

Hrs/ Week : 03

Exam Hours : 03

Total Hrs.  : 42

Exam Marks : 50

 

PART – A

 

  1. Create a document using a suitable word processing package, like MS Word, with at least three paragraphs and perform the following operations:

(i)                  Set left margin 1” and right margin 0.75”

(ii)                Centre the heading and make it bold.  Increase the font size

(iii)               Underline the specified words in the document and change them to italics

(iv)              Conduct spell check and correct them suitably

(v)                Demonstrate use of numbering and bullets

(vi)              Exchange paragraphs 2 and 3 using cut and paste facility

(vii)             Put suitable headers and footers

(viii)           Count the number of words and lines

(ix)              Demonstrate use of drawing tools

(x)                Include suitable logo/emblem/symbol

 

  1. Create a formal letter using a suitable word processing package, like MS Word, to place a purchase order for procurement of books, having the following information.

 

Sl. No.

Title of the book

Details of the book

No. of copies

Author

Edition

Publisher

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  1. Create and execute a DOS batch file HELPDOS.BAT which provides on-line help facility for the following DOS commands – date, time.

 

  1. Create and execute a DOS batch file MYMOVE.BAT with 2 parameters, which creates anew directory (given by parameter 1) and moves the file (given by parameter 2) from the current directory to newly created directory.

 

  1. Write a C program to find and output all the roots of a given quadratic equation, for non-zero coefficients.  (Using if…else statement)

 

  1. Write a C program to simulate a simple calculator that performs arithmetic operations like addition, subtraction, multiplication, and division only on integers. Error message should be reported, if any attempt is made to divide by zero. (Using switch statement)

 

  1. Write a C program to generate and print first ‘N’ Fibonacci numbers.

(Using looping constructs)

 

  1. Write a C program to find the GCD and LCM of two integers and output the results along with the given integers. Use Euclid’s algorithm. (Using looping constructs)

 

  1. Write a C program to reverse a given four digit integer number and check whether it is a palindrome or not.  Output the given number with suitable message.

(Using looping constructs)

 

  1. Write a C program to find whether a given number is prime or not.  Output the given number with suitable message. (Using looping constructs)

 

PART – B

 

  1. Write a C program to input N real numbers in ascending order into a single dimension array.  Conduct a binary search for a given key integer number and report success or failure in the form of a suitable message.

 

  1.  Write a C program to input N integer numbers into a single dimension array.  Sort them in ascending order using bubble sort technique.  Print both the given array and the sorted array with suitable headings.

 

  1. Write a C program to evaluate the given polynomial f(x) = a4x4 +  a3x3 + a2x2 + a1x + a0 for given value of x and the coefficients using Horner’s method. (Using single dimension arrays to store coefficients)

 

  1. Write a C program to read two matrices A(M x N) and B(P x Q) and compute the product of A and B after checking compatibility for multiplication.  Output the input matrices and the resultant matrix with suitable headings and format. (Using two dimension arrays where array size M, N, P,Q ≤ 3)

 

  1. Write C user defined functions

(i)                  to input N integer numbers into a single dimension array.

(ii)                to conduct a linear search. 

Using these functions, write a C program to accept the N integer numbers & given key integer number and conduct a linear search. Report success or failure in the form of a suitable message.

 

  1. Write C user defined functions

(i)                  to input N integer numbers into a single dimension array.

(ii)                to sort the integer numbers in ascending order using bubble sort technique.

(iii)               To print the single dimension array elements.  

Using these functions, write a C program to input N integer numbers into a single dimension array, sort them in ascending order, and print both the given array & the sorted array with suitable headings.

 

  1. Write C user defined functions

(i)                  to input N integer numbers into a single dimension array.

(ii)                to sort the integer numbers in descending order using selection sort technique.

(iii)               To print the single dimension array elements. 

Using these functions, write a C program to input N integer numbers into a single dimension array, sort them in descending order, and print both the given array & the sorted array with suitable headings.

 

 

  1. Write C user defined functions

(i)                  to input N real numbers into a single dimension array. 

(ii)                compute their mean.

(iii)               compute their variance

(iv)              compute their standard deviation.

Using these functions, write a C program to input N real numbers into a single dimension array, and compute their mean, variance & standard deviation. Output the computed results with suitable headings.

 

  1. Write C user defined functions

(i)                  To read the elements of a given matrix of size M x N

(ii)                To print the elements of a given matrix of size M x N

(iii)               To compute the product of two matrices

Using these functions, write a C program to read two matrices A(M x N) and B(P x Q) and compute the product of A and B after checking compatibility for multiplication.  Output the input matrices and the resultant matrix with suitable headings and format.

(Using two dimension arrays where array size M, N, P,Q ≤ 3)

 

  1. Write a C program to read a matrix A(M x N) and to find the following using user defined functions:

(i)                  Sum of the elements of the specified row

(ii)                Sum of the elements of the specified column

(iii)               Sum of all the elements of the matrix

Output the computed results with suitable headings.

 

Reference Book :

 

Programming Techniques through C, M.G. V. Murthy, Pearson Education, 2002

 

Note:  In the practical examination the student has to answer two questions. One question from Part A and one question from Part B will be selected by the student by lots. All the questions listed in the syllabus have to be included in the lots.   The change of question (Part A only / Part B only / Both Part A & Part B) has to be considered, provided the request is made for the same, within half an hour from the start of the examination.  The allotment of marks is as detailed below:

 

Sl. No.

Activity

Max. Marks

1.

Procedure

Writing program & procedure for the assigned problems along with algorithms / flowchart

Part A

5*

Part B

5*

2.

Conduction

Execution of the program and showing the results in proper format

Part A

10

Part B

20

3.

Viva-voce**

10

Total Max. Marks

50

Minimum passing Marks (40% of Max. Marks)

20

 

 

                * To be considered as zero if student has been allowed change of    

                   question.

** One of the viva-voce questions shall be to ask the student to identify some of the following parts of a typical Personal Computer System: Motherboard, Extension board, SMPS, CPU, HDD, FDD, Primary Memory, Various ports.

 

 

***********