/CampusTechnicalPrograms

Solutions of questions generaly asked during technical skill test phase of campus recrutment process.

Primary LanguageC++

100 Programs for Campus

Solutions of questions generaly asked during technical skill test phase of campus recrutment process.


Question List:

Sno. Questions CPP Python JavaScript
1 Write a program to find the reverse of a given string. View View View
2 Write a program to check the given string is palindrome or not. View View View
3 Write a program to reverse the given number. View View View
4 A Fibonacci sequence is defined as follows: The first and second terms in the sequence are 0 and 1. Subsequent terms are found by adding the preceding two terms in the sequence. Write a C program to generate the first n terms of the sequence. View View View
5 Write a program to find the factorial of a given number. View View View
6 Write a program to find the factorial of a given number using recursion. View View View
7 Write a program to print the Fibonacci series using recursion. View View View
8 Write a program finds the GCD of two given integers using recursion. View View View
9 Write a C program to check the given number is prime number or not. View View View
10 Write a function to interchange two integer values using call-by-value technique. View View View
11 Write a function to interchange two integer values using call by reference technique. View View View
12 Write a program to find the power (a, b) using recursion. View View View
13 Write a program to print the following (pyramid of numbers). View View View
14 Write a program to find the gcd of the given 2 numbers. View View View
15 Write a C program that uses functions to perform the following operations: i. To insert a sub-string in to given main string from a given position. ii. To delete n Characters from a given position in a given string. iii. To replace a character of string either from beginning or ending or at a specified location. View View View
16 Write a program to swap two values without using temporary variable. View View View
17 Write a program to check the given year is leap year or not. View View View
18 Wap to implement linear search using recursion. View View View
19 Wap implement linear search without using recursion. View View View
20 Wap to implement Binary search using recursion. View View View
21 Wap implement Binary search without using recursion. View View View
22 Write a function to sort 1d integer array using Bubble sort. View View View
23 Write a function to sort 1d integer array using Selection sort. View View View
24 Write a function to sort 1d integer array using Insertion sort. View View View
25 Write a function to sort 1d integer array using Merge sort. View View View
26 Write a program to find both the largest and smallest number of an array of integers. View View View
27 Write a program to find the smallest and largest element in a two dimensional array. View View View
28 Write a C function to generate Pascal's triangle. View View View
29 Write a function to convert a string into its opposite case. View View View
30 Write a program to print the grade of the student as follows: If m>=60 print grade as FIRST If m>=50 and m<60 print grade as SECOND If m>=40 and m<50 print grade as THIRD If m<40 and print grade as FAILED View View View
31 Write a C program to find the sum of individual digits of a positive integer. View View View
32 Wap for Matrix multiplication by checking compatibility. View View View
33 Write a function which takes 1d integer array as an argument and return the maximum value. View View View
34 Write a function which takes a matrix as an argument and return its transpose. View View View
35 Write a program to copy the string into another string using pointers. View View View
36 Write a function which takes a string as an argument and return its length.(using pointers). View View View
37 Write a program to find 1+1/2+1/3+1/4.... Value. View View View
38 Wap to find NCr value. View View View
39 Write a program to calculate mn value using do-while loop. View View View
40 Write a program to check whether the given number is an Amstrong number or not. View View View
41 Write a program to check whether the two strings are identical or not. View View View
42 Wap to sort the characters in a given string. View View View
43 Wap to check the given matrix is symmetric or not. View View View
44 Write a program to illustrate usage of automatic,globel,extern,static and register variables. View View View
45 Write a program to find the sum of 1 d integer array(using malloc( ) ). View View View
46 Define a structure with the name complex which contains rael part and imaginary part.write the functions to add, subtract and multiply two complex numbers using returning as an complex number. View View View
47 Define a structure with the name student which contains sno,sname,marks.wap to read and n students information and print the details of the students whose marks greater than or equal to average marks of the students. View View View
48 Write a C program using structure to create a library catalogue with the following fields; Access number, author's name, Title of the book, year of publication, publisher's name, price. View View View
49 Write a C program to compute the monthly pay of 100 employees using each employee's name, basic-pay.The DA is computed as 52% of the basic pay. Gross-salary (Basic-pay+DA).Print the employees name and gross salary. View View View
50 Write a function to compare two structure variables. View View View
51 Write a function to copy the contents of one student into another student record Of same. View View View
52 Write a program to illustrate unions. View View View
53 Explaining pointer to a structure variable with example. View View View
54 Write a program to copy the contents of one file into another file. View View View
55 Write a program to count the number of words, lines and characters in the given file. View View View
56 Write a program to print the data of the file onto the monitor in reverse order. View View View
57 Write a C program to reverse the first n characters in a file. (Note: The file name and n are specified on the command line). View View View
58 Write a C program to open a pre-existing file and add information at the end of file.Display the contents of the file before and after appending. View View View
59 Write a function to sort 1d integer array using Quick sort. View View View
60 Write a program to implement stack operations using Arrays. View View View
61 Write a program to implement Queue operations using Arrays. View View View
62 Write a program to implement stack operations using Linked List. View View View
63 Write a program to implement Queue operations using Linked List. View View View
64 Write a program to perform Singly Linked List Operations(create,insert,delete,traversing). View View View
65 Write a program to perform Doubly Linked List Operation(create,insert,delete,traversing). View View View
66 Write a Function to reverse the single linked list. View View View
67 Write a program to perform Binary Tree Operations (create, insert, delete, traversing). View View View
68 Write a Function to combine two singly linked lists. View View View
69 Write a program to implement circular Queue Operations. View View View
70 Write a c program for addition of two matrices. View View View
71 Write a c program for subtraction of two matrices View View View
72 Write a c program for multiplication of two matrices. View View View
73 Write a c program to find out sum of diagonal element of a matrix. View View View
74 Write a c program to find out transport of a matrix. View View View
75 Write a c program for scalar multiplication of matrix. View View View
76 C program to find inverse of a matrix. View View View
77 Lower triangular matrix in c View View View
78 Upper triangular matrix in c View View View
79 Strassen's matrix multiplication program in c View View View
80 C program to find determinant of a matrix View View View
81 Write a c program to find out largest element of an array. View View View
82 Write a c program to find out second largest element of an unsorted array. View View View
83 Write a c program to find out second smallest element of an unsorted array. View View View
84 Write a c program which deletes the duplicate element of an array. View View View
85 Write a c program for delete an element at desired position in an array. View View View
86 Write a c program for insert an element at desired position in an array. View View View
87 C program to find largest and smallest number in an array View View View
88 C program for Strong number. View View View
89 C Program for Perfect number. View View View
90 Write a c program to solve quadratic equation. View View View
91 C program to print hello world without using semicolon View View View
92 Write a c program for Floyd�s triangle. View View View
93 Write a c program which produces its own source code as its output View View View
94 Write a c program to add two numbers without using addition operator. View View View
95 Write a c program to subtract two numbers without using subtraction operator. View View View
96 Program in c to print 1 to 100 without using loop. View View View
97 Write a c program to convert octal number to hexadecimal number. View View View
98 C program to convert each digits of a number in words View View View
99 Write a c program to convert decimal number to octal number. View View View