0% found this document useful (0 votes)
2 views

C & Java Programs in Interview

The document lists various C and Java programming tasks commonly encountered in interviews. It includes tasks such as checking for perfect numbers, generating Fibonacci series, and implementing sorting algorithms in C, as well as string manipulation and searching techniques in Java. The tasks are designed to assess programming skills and problem-solving abilities.

Uploaded by

C45somya
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)
2 views

C & Java Programs in Interview

The document lists various C and Java programming tasks commonly encountered in interviews. It includes tasks such as checking for perfect numbers, generating Fibonacci series, and implementing sorting algorithms in C, as well as string manipulation and searching techniques in Java. The tasks are designed to assess programming skills and problem-solving abilities.

Uploaded by

C45somya
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/ 3

c programs in interview

1.​ Write a c program to check given number is


perfect number or not.
2.​ Write a c program to check given number is
Armstrong number or not.
3.​ Write a c program to check given number is
prime number or not.
4.​ C program to check a number is odd or even.
5.​ Write a c program to check given number is
palindrome number or not.
6.​ Write a c program to solve quadratic equation.
7.​ Write a c program to print Fibonacci series of
given range.
8.​ Write a c program to get factorial of given
number.
9.​ Write a c program for Floyd’s triangle.
10.​ Write a c program to print Pascal triangle.
11.​ Write a c program to generate multiplication
table.
12.​ Write a c program to find out L.C.M. of two
numbers.
13.​ Write a c program to find out H.C.F. of two
numbers.
14.​ Write a c program for addition,
subtraction,multiplication of two matrices.
15.​ Write a c program for bubble sort,insertion
sort.
16.​ Write a c program for selection sort,quick sort.
17.​ C program to find largest and smallest number
in an array
18.​ Write a c program to find out the sum of series
1 + 2 + …. + n.
19.​ Write a c program which reads string from file.
20.​ Write a c program which writes array in the
file.

JAVA Program
1.​Reverse a String
2.​Check if a String is a Palindrome
3.​Factorial of a Number
4.​Fibonacci Series
5.​Prime Number Check
6.​Armstrong Number
7.​Swap Two Numbers Without Using a Third
Variable
8.​Find Largest Element in an Array
9.​Count Occurrences of a Character in a String
10.​ Remove Duplicates from a String
11.​ Anagram Check
12.​ Count Words in a String
13.​ Reverse Words in a Sentence
14.​ Find Duplicate Elements in an Array
15.​ Bubble Sort
16.​ Linear Search
17.​ Binary Search
18.​ Check for Leap Year
19.​ Find GCD (Greatest Common Divisor)
20.​ Implement Singleton Class in Java

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy