PYTHON PROGRAMS

CRT PROGRAMS
.

.

.

.

 40 Programming Questions (Ordered by Complexity — Easy to Hard)

🟢 Level 1: Very Easy

  1. Print "Hello, World!"

  2. Add two numbers

  3. Swap two numbers using a third variable

  4. Check if a number is even or odd

  5. Check if a number is positive, negative or zero

  6. Find the largest of two numbers

  7. Find the largest of three numbers

  8. Check if a year is a leap year

  9. Simple calculator using switch case

  10. Sum of first N natural numbers using loop


🟡 Level 2: Easy

  1. Factorial of a number using loop

  2. Reverse a number

  3. Check if a number is palindrome

  4. Check if a number is Armstrong

  5. Generate Fibonacci series up to N terms

  6. Count the number of digits in a number

  7. Find GCD and LCM of two numbers

  8. Display multiplication table of a number

  9. Print star pyramid pattern

  10. Count digits, vowels and consonants in a string


🟠 Level 3: Moderate

  1. Find largest element in an array

  2. Linear search in an array

  3. Sort an array (Bubble sort or Selection sort)

  4. Matrix addition (2D array)

  5. Matrix multiplication

  6. Reverse a string

  7. Check if a string is palindrome

  8. Write a function to check prime number

  9. Factorial using recursion

  10. String concatenation and comparison


🔵 Level 4: Intermediate

  1. Swap values using pointers (C) / references (Java/Python)

  2. Structure to store and display student details (C)

  3. Create a class for employee with methods (Java/Python OOP)

  4. Use constructor and destructor (Java/Python)

  5. Demonstrate inheritance with base and derived class (Java/Python)

  6. File handling – write data to a file

  7. File handling – read data from a file and count characters

  8. Menu-driven program using functions (Calculator)

  9. Create a basic stack using array

  10. Program to find frequency of elements in an array

Comments

Popular Posts