Midterm Examination Lab BSCS First Semester in case of moellim blockage but if the university doesn't allow us to accommodate such cases your submission will be canceled without any notice. 

Midterm Examination Lab BSCS First Semester

Time Allowed: till deadline                                                          Total Marks: 20

Q1: Write a C++ program that converts Capital letters into small and small into Capital letters. Both input and converted letter must be printed on the console.                                                                                            (5Marks)

Example output:

Input Letter: M

Output Letter: m

Q2: Write a program to print all prime numbers between the range taken from the user. (Ask the user to enter starting and ending numbers).                                                                                           (5Marks)

 

Q3: Write a program to take input in integer Array and print all the even indexes values in reverse order on the console.                                                               (5Marks)                                                                        

 

Example output:

Input: 123456789

Output: 97531

Q4: Write a program that inputs the height of the triangle and displays a triangle of characters. For example, if the user enters 5 it displays the following:                                        (5Marks)

Enter the height of the triangle:

A

B C

D E F

G H I J

K L M N O

P Q R S

T U V

W X

Y  


 Submission link:

 Click for submission 

 


Post a Comment

Previous Post Next Post