Skip to content

Latest commit

History

48 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

100 Programs for Campus

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


Question List:

Sno.QuestionsCPPPythonJavaScript
1Write a program to find the reverse of a given string.ViewViewView
2Write a program to check the given string is palindrome or not.ViewViewView
3Write a program to reverse the given number.ViewViewView
4A 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.ViewViewView
5Write a program to find the factorial of a given number.ViewViewView
6Write a program to find the factorial of a given number using recursion.ViewViewView
7Write a program to print the Fibonacci series using recursion.ViewViewView
8Write a program finds the GCD of two given integers using recursion.ViewViewView
9Write a C program to check the given number is prime number or not.ViewViewView
10Write a function to interchange two integer values using call-by-value technique.ViewViewView
11Write a function to interchange two integer values using call by reference technique.ViewViewView
12Write a program to find the power (a, b) using recursion.ViewViewView
13Write a program to print the following (pyramid of numbers).ViewViewView
14Write a program to find the gcd of the given 2 numbers.ViewViewView
15Write 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.ViewViewView
16Write a program to swap two values without using temporary variable.ViewViewView
17Write a program to check the given year is leap year or not.ViewViewView
18Wap to implement linear search using recursion.ViewViewView
19Wap implement linear search without using recursion.ViewViewView
20Wap to implement Binary search using recursion.ViewViewView
21Wap implement Binary search without using recursion.ViewViewView
22Write a function to sort 1d integer array using Bubble sort.ViewViewView
23Write a function to sort 1d integer array using Selection sort.ViewViewView
24Write a function to sort 1d integer array using Insertion sort.ViewViewView
25Write a function to sort 1d integer array using Merge sort.ViewViewView
26Write a program to find both the largest and smallest number of an array of integers.ViewViewView
27Write a program to find the smallest and largest element in a two dimensional array.ViewViewView
28Write a C function to generate Pascal's triangle.ViewViewView
29Write a function to convert a string into its opposite case.ViewViewView
30Write 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 FAILEDViewViewView
31Write a C program to find the sum of individual digits of a positive integer.ViewViewView
32Wap for Matrix multiplication by checking compatibility.ViewViewView
33Write a function which takes 1d integer array as an argument and return the maximum value.ViewViewView
34Write a function which takes a matrix as an argument and return its transpose.ViewViewView
35Write a program to copy the string into another string using pointers.ViewViewView
36Write a function which takes a string as an argument and return its length.(using pointers).ViewViewView
37Write a program to find 1+1/2+1/3+1/4.... Value.ViewViewView
38Wap to find NCr value.ViewViewView
39Write a program to calculate mn value using do-while loop.ViewViewView
40Write a program to check whether the given number is an Amstrong number or not.ViewViewView
41Write a program to check whether the two strings are identical or not.ViewViewView
42Wap to sort the characters in a given string.ViewViewView
43Wap to check the given matrix is symmetric or not.ViewViewView
44Write a program to illustrate usage of automatic,globel,extern,static and register variables.ViewViewView
45Write a program to find the sum of 1 d integer array(using malloc( ) ).ViewViewView
46Define 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.ViewViewView
47Define 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.ViewViewView
48Write 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.ViewViewView
49Write 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.ViewViewView
50Write a function to compare two structure variables.ViewViewView
51Write a function to copy the contents of one student into another student record Of same.ViewViewView
52Write a program to illustrate unions.ViewViewView
53Explaining pointer to a structure variable with example.ViewViewView
54Write a program to copy the contents of one file into another file.ViewViewView
55Write a program to count the number of words, lines and characters in the given file.ViewViewView
56Write a program to print the data of the file onto the monitor in reverse order.ViewViewView
57Write a C program to reverse the first n characters in a file. (Note: The file name and n are specified on the command line).ViewViewView
58Write 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.ViewViewView
59Write a function to sort 1d integer array using Quick sort.ViewViewView
60Write a program to implement stack operations using Arrays.ViewViewView
61Write a program to implement Queue operations using Arrays.ViewViewView
62Write a program to implement stack operations using Linked List.ViewViewView
63Write a program to implement Queue operations using Linked List.ViewViewView
64Write a program to perform Singly Linked List Operations(create,insert,delete,traversing).ViewViewView
65Write a program to perform Doubly Linked List Operation(create,insert,delete,traversing).ViewViewView
66Write a Function to reverse the single linked list.ViewViewView
67Write a program to perform Binary Tree Operations (create, insert, delete, traversing).ViewViewView
68Write a Function to combine two singly linked lists.ViewViewView
69Write a program to implement circular Queue Operations.ViewViewView
70Write a c program for addition of two matrices.ViewViewView
71Write a c program for subtraction of two matricesViewViewView
72Write a c program for multiplication of two matrices.ViewViewView
73Write a c program to find out sum of diagonal element of a matrix.ViewViewView
74Write a c program to find out transport of a matrix.ViewViewView
75Write a c program for scalar multiplication of matrix.ViewViewView
76C program to find inverse of a matrix.ViewViewView
77Lower triangular matrix in cViewViewView
78Upper triangular matrix in cViewViewView
79Strassen's matrix multiplication program in cViewViewView
80C program to find determinant of a matrixViewViewView
81Write a c program to find out largest element of an array.ViewViewView
82Write a c program to find out second largest element of an unsorted array.ViewViewView
83Write a c program to find out second smallest element of an unsorted array.ViewViewView
84Write a c program which deletes the duplicate element of an array.ViewViewView
85Write a c program for delete an element at desired position in an array.ViewViewView
86Write a c program for insert an element at desired position in an array.ViewViewView
87C program to find largest and smallest number in an arrayViewViewView
88C program for Strong number.ViewViewView
89C Program for Perfect number.ViewViewView
90Write a c program to solve quadratic equation.ViewViewView
91C program to print hello world without using semicolonViewViewView
92Write a c program for Floyd�s triangle.ViewViewView
93Write a c program which produces its own source code as its outputViewViewView
94Write a c program to add two numbers without using addition operator.ViewViewView
95Write a c program to subtract two numbers without using subtraction operator.ViewViewView
96Program in c to print 1 to 100 without using loop.ViewViewView
97Write a c program to convert octal number to hexadecimal number.ViewViewView
98C program to convert each digits of a number in wordsViewViewView
99Write a c program to convert decimal number to octal number.ViewViewView

About

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

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages