img

Blog Details

img
Design

Most Important Program to check your Logic

Administration / 27 Dec, 2024

Programming Questions

1. Find Maximum Length and Second Maximum Length Word of a Paragraph

Write a program to find the maximum length and second maximum length word from the following paragraph: "Welcome to shiva concept solution, we provide IT training & placement assistance"


2. Count Total Repeated Characters in Each Word in a Paragraph

Write a program to count the total repeated characters in each word in the following paragraph: "Welcome to shiva concept solution, we provide IT training & placement assistance"


3. Factorial or Prime Number Table in Fibonacci Series

Write a program to print the factorial if a number is not prime. Otherwise, display the multiplication table if the number is prime in the Fibonacci series.


4. Create Decorator for Table and Factorial Programs

Write a program to create a decorator that will convert a table program to a factorial program. Both table and factorial should be written in expression format.


5. Print Pattern

Write a program to print the following pattern:

A a B b C
  A a B b
    A a B
      A a
        A

Write a program to print the following pattern:

1 0 0 1 0
  1 0 0 1
    1 0 1
      1 0
        1

6. Convert Name into Binary Number

Write a program to convert a name into a binary number.


7. Convert Binary Number into Decimal Number

Write a program to convert any binary number into a decimal number.


8. Create a LinkedList Class

Write a program to create a class to manage a LinkedList (data and address) and add items and display items from the LinkedList.

0 comments