# Category Archives: School Programming

## Program to print the pattern with two hollow Triangles

Given a number n, the task is to write a program to draw the following pattern using ‘\$’. \$ \$ \$ \$ \$ \$ \$… Read More »

## Program to find the maximum element in a Matrix

Given a NxM matrix. The task is to find the maximum element in this matrix. Examples: Input: mat[4][4] = {{1, 2, 3, 4}, {25, 6,… Read More »

## Different types of Coding Schemes to represent data

Any text-based data is stored by the computer in the form of bits(a series of 1s and 0s), and follows the specified Coding Scheme. The… Read More »

## Total money to be paid after traveling the given number of hours

Given the travel cost of a cab is m rupees for first n hours per hour and then is x rupees per hour, given the… Read More »

## Check if a string is palindrome in C using pointers

Given a string. The task is to check if the string is a palindrome or not using pointers. You are not allowed to use any… Read More »

## Nested switch statement in C++

Switch-case statements: These are a substitute for long if statements that compare a variable to several integral values The switch statement is a multiway branch… Read More »

## CBSE Class 11 C++ | Sample Paper -2

Model Question Paper Class- XI Computer Science M.M: 70 Time: 3 hrs. Instructions: 1. All Question are compulsory. 2. Programming language :C++ Q.1[A] How is… Read More »

## CBSE Class 11 C++ Sample Paper-3

Class- XI [Computer Science] Time Duration: 3 Hrs M. M. 70 General instructions: (i) All questions are compulsory (ii) Programming language : C++ SECTION A… Read More »

## Program to find the Nth term of series 5, 12, 21, 32, 45……

Given a number N, The task is to write a program to find the Nth term of the below series: 5, 12, 21, 32, 45……… Read More »

## Python program to create a list of tuples from given list having number and its cube in each tuple

Given a list of numbers of list, write a Python program to create a list of tuples having first element as the number and second… Read More »

## Program to find the Nth number of the series 2, 10, 24, 44, 70…..

Given a number N, the task is to find the Nth (N may be up to 10^18) term of this series: 2, 10, 24, 44,… Read More »

## Python program to print all even numbers in a range

Given starting and end points, write a Python program to print all even numbers in that given range. Example: Input: start = 4, end =… Read More »

## Python program to print all odd numbers in a range

Given starting and end points, write a Python program to print all odd numbers in that given range. Example: Input: start = 4, end =… Read More »

## Program to find N-th term of series 1, 2, 11, 12, 21….

Given a number N, the task is to find the Nth term of the series: 1, 2, 11, 12, 21… Examples: Input : N =… Read More »

## Python program to print odd numbers in a List

Given a list of numbers, write a Python program to print all odd numbers in given list. Example: Input: list1 = [2, 7, 5, 64,… Read More »