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

Final Round QP

PYQ

Uploaded by

ayman patil
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Final Round QP

PYQ

Uploaded by

ayman patil
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

B.L.D.E.A’s Vachana Pitamaha Dr. P. G.

Halaka College of Engineering


and Technology, Vijayapur
Department of Computer Science and Engineering

FINAL ROUND QUESTIONS


1. Check Vowel or Consonant
In English, there are 5 vowel le ers and 21 consonant le ers. In lowercase
alphabets, ‘a’, ‘e’, ‘i’, ‘o’, and ‘u’ are vowels and all other characters (‘b’, ‘c’, ‘d, ‘f’….)
are consonants. Similarly in uppercase alphabets, ‘A’, ‘E’, ‘I’, ‘O’, and ‘U’ are vowels,
and the rest of the characters are consonants.

2. Print Prime Numbers From 1 to N


Prime numbers are posi ve integers greater than 1 that have no divisors other than
1 and themselves.

3. LCM of Two Numbers

Write a C program to nd the LCM of two numbers. LCM (Least Common Mul ple)
of two numbers is the smallest posi ve number that can be divided by both
numbers without leaving a remainder. For example, the LCM of 15 and 25 is 75.

4. Reverse Number Program

The reverse of a number means reversing the order of digits of a number. In this
ar cle, we will learn how to reverse the digits of a number in C programming
language. For example, if number num = 12548, the reverse of number num is
84521.

5. Find The Median

The median of a list of numbers is essen ally its middle element a er sor ng. The
same number of elements occur a er it as before. Given a list of numbers with an
odd number of elements, nd the median?
ti
fi
ti
fi
tt
ft
ti
ti
tti
tt
ft
ti
ti
Example: arr = [5,3,1,2,4]
The sorted array is arr=[1,2,3,4,5] . The middle element and the median is 3.

6. Find The Leap Year

A leap year is a year that contains an addi onal day in February month i.e. February
29. It means that a leap year has 366 days instead of the usual 365 days.

7. Find the sum of Natural Numbers using Recursion


Note: The concept of recursion must be used

8. Total Duplicate Elements in an Array


In the given example array {4, 2, 8, 3, 2, 8, 5, 1, 7, 4}, the duplicate elements are 2, 8,
and 4. The program correctly counts and displays that there are 4 duplicate elements
in the array.

9. Largest Of Three Numbers


Develop a C program to e ciently iden fy the k-largest number among three input
integers. Implement a func on ndKthLargest that takes three integers (a, b, c) and
an integer k as input, returning the k-largest number.

10. Exponen al without using pow() method


Develop a C program to calculate exponen a on without u lizing the standard
pow() method. The algorithm should e ciently handle both posi ve and nega ve
exponents, providing accurate results while op mizing for performance.
ti
ffi
ti
fi
ffi
ti
ti
ti
ti
ti
ti
ti
ti

You might also like