0% found this document useful (0 votes)
66 views1 page

Lab Exam PDF

This document outlines an exam for a computer programming course. It lists 25 programming problems to solve in 3 hours for full marks of 60. The problems cover a range of programming concepts like variable swapping, recursion, loops, arrays, strings, sorting, searching, and mathematical operations. Students will be evaluated on problem definition, program discussion, results, implementation, algorithms, and an oral exam.

Uploaded by

project testing
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views1 page

Lab Exam PDF

This document outlines an exam for a computer programming course. It lists 25 programming problems to solve in 3 hours for full marks of 60. The problems cover a range of programming concepts like variable swapping, recursion, loops, arrays, strings, sorting, searching, and mathematical operations. Students will be evaluated on problem definition, program discussion, results, implementation, algorithms, and an oral exam.

Uploaded by

project testing
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

ME/B.

Tech/SEM-2/CS291/2015-16

Basic Computation and Principle of Computer Programming

Time Alloted:3hours Full Marks:60

Distribution of marks: Problem Definition-4; Discussion of program-12;Result -4;Problem listing/Implementation-10;


Algorithm-10;Viva Voce-20

1) WAP to swap the values of two variables without using pointer.


2) WAP to print GCD of two numbers using recursion.
3) WAP to print the Fibonacci Series.
4) WAP to check whether a number is prime using function.
5) WAP to check whether a number is Armstrong (three digit) or not.
6) WAP to print the following Pattern using Loop.
1
2 3 2
3 4 5 4 3
4 5 6 7 6 5 4
7) WAP to print roll number and name who score the highest marks among N students.
8) WAP to print the following pattern:

* *
** **
*** ***
**** ****
***** *****
************
9) WAP to find the transpose of a matrix.
10) WAP to sort the elements of an unsorted array using Bubble Sort.
11) WAP to delete an element from array.
12) WAP using function reverse of a string without using string library functions.
13) WAP to calculate the length of a string without using string library functions.
14) WAP to insert a new element in a specified position in an array.
15) WAP to find the Maximum and Minimum element of array.
16) WAP to calculate the sum of two matrix.
17) WAP to copy a string to another string without using library functions.
18) Write a recursive function to calculate factorial of a number. Also calculate S= 1 + 1/2! + 1/3! + ……………+ 1/n!
19)WAP to print Pascal triangle..
20) WAP to check whether a number is palindrome or not without using string library function.
21) WAP of Binary search.
22) WAP to check even/odd and find out sign of the value using switch case.
23) WAP to convert a binary number into its decimal number.
24) WAP to check a number is perfect or not.
25) WAP of Linear search.

You might also like