You are here: Home / Topics / Search /
Showing 1012 Search Results for :

Logging and Auding Linux Commands

Filed under: Linux on 2024-04-26 12:58:17
# Display messages in kernel ring buffer.dmesg# Display logs stored in the systemd journal.journalctl# Display logs for a specific unit (service).journalctl -u servicename

Top Linux Commands for Security

Filed under: Linux on 2024-04-26 12:57:31
# Change the current user's password.passwd# Switch to the root account with root's environment. (Login shell.)sudo -i# Execute your current shell as root. (Non-login shell.)sudo -s# List sudo privileges for the current user.sudo -l# Edit the sudoers configuration file.visudo# Display the current SE

Top Linux Commands for Disk Usage

Filed under: Linux on 2024-04-26 12:56:36
# Show free and used space on mounted filesystemsdf -h# Show free and used inodes on mounted filesystemsdf -i# Display disks partitions sizes and typesfdisk -l# Display disk usage for all files and directories in human readable formatdu -ah# Display total disk usage off the current directorydu -sh&n

Top Linux Commands for File Transfers

Filed under: Linux on 2024-04-26 12:56:06
# Secure copy file.txt to the /tmp folder on serverscp file.txt server:/tmp# Copy *.html files from server to the local /tmp folder.scp server:/var/www/*.html /tmp# Copy all files and directories recursively from server to the current system's /tmp folder.scp -r server:/var/www /tmp# Synchronize /ho

Top Linux Commands for Searching Operations

Filed under: Linux on 2024-04-26 12:54:27
# Search for pattern in filegrep pattern file# Search recursively for pattern in directorygrep -r pattern directory# Find files and directories by namelocate name# Find files in /home/john that start with "prefix".find /home/john -name 'prefix*'# Find files larger than 100MB in /homefind /home -size

Top Linux Commands for Installing Packages

Filed under: Linux on 2024-04-26 12:53:52
# Search for a package by keyword.yum search keyword# Install package.yum install package# Display description and summary information about package.yum info package# Install package from local file named package.rpmrpm -i package.rpm# Remove/uninstall package.yum remove package# Install software fr

Top Linux Commands for Archieved (Tar Files)

Filed under: Linux on 2024-04-26 12:53:13
# Create tar named archive.tar containing directory.tar cf archive.tar directory# Extract the contents from archive.tar.tar xf archive.tar# Create a gzip compressed tar file name archive.tar.gz.tar czf archive.tar.gz directory# Extract a gzip compressed tar file.tar xzf archive.tar.gz# Create a tar 

Top Linux command for Networking purpose

Filed under: Linux on 2024-04-26 12:52:37
# Display all network interfaces and IP addressip a# Display eth0 address and detailsip addr show dev eth0# Query or control network driver and hardware settingsethtool eth0# Send ICMP echo request to hostping host# Display whois information for domainwhois domain# Display DNS information for domain

File permission commands in Linux

Filed under: Linux on 2024-04-26 12:51:57
PERMISSION      EXAMPLE        U   G   W       rwx rwx rwx     chmod 777 filename       rwx rwx r-x     chmod 775 filename       rwx r-x r-x     chmod 755 filename&n

Process Management Top Linux Commands

Filed under: Linux on 2024-04-26 12:51:21
# Display your currently running processesps# Display all the currently running processes on the system.ps -ef# Display process information for processnameps -ef | grep processname# Display and manage the top processestop# Interactive process viewer (top alternative)htop# Kill process with process I

File and Directory Management Top Linux commands

Filed under: Linux on 2024-04-26 12:50:52
# List all files in a long listing (detailed) formatls -al# Display the present working directorypwd# Create a directorymkdir directory# Remove (delete) filerm file# Remove the directory and its contents recursivelyrm -r directory# Force removal of file without prompting for confirmationrm -f file# 

User Information and Management Top Linux Commands

Filed under: Linux on 2024-04-26 12:49:59
# Display the user and group ids of your current user.id# Display the last users who have logged onto the system.last# Show who is logged into the system.who# Show who is logged in and what they are doing.w# Create a group named "test".groupadd test# Create an account named john, with a comment of "

Performance Monitoring and Statistics Top Linux Commands

Filed under: Linux on 2024-04-26 12:49:19
# Display and manage the top processestop# Interactive process viewer (top alternative)htop# Display processor related statisticsmpstat 1# Display virtual memory statisticsvmstat 1# Display I/O statisticsiostat 1# Display the last 100 syslog messages  (Use /var/log/syslog for Debian based syste

Hardware Information Top Linux Commands

Filed under: Linux on 2024-04-26 12:48:22
# Display messages in kernel ring bufferdmesg# Display CPU informationcat /proc/cpuinfo# Display memory informationcat /proc/meminfo# Display free and used memory ( -h for human readable, -m for MB, -g for GB.)free -h# Display PCI deviceslspci -tv# Display USB deviceslsusb -tv# Display DMI/SMBIOS (h

System Information Top Linux Commands

Filed under: Linux on 2024-04-26 12:47:52
# Display Linux system informationuname -a# Display kernel release informationuname -r# Show operating system information such as distribution name and versioncat /etc/os-release# Show how long the system has been running + loaduptime# Show system host namehostname# Display all local IP addresses of

Program to explain Generic Interfaces in Java

Filed under: Java on 2024-04-13 09:09:43
//  Program to explain Generic Interfaces.interface MinMax<T extends Comparable<T>> {T min();T max();}class MyClass<T extends Comparable<T>> implements MinMax<T> {T[ ] vals;MyClass(T[ ] o) { vals = o;}public T min() { T v = vals[0

Program to explain Generic class with Wildcard in Java

Filed under: Java on 2024-04-13 09:06:42
// Program to explain Generic class with Wildcard.class  GenericStats<T extends Number> {T[ ]  nums;   GenericStats(T[ ]  o) { nums = o;}double average() { double sum = 0.0; for(int i=0; i < nums.length; i++) {  sum += nums[ i

Program 2 to explain Generic method with Bounded type in Java

Filed under: Java on 2024-04-12 18:38:35
// Program to explain Generic method with Bounded type.// GenericType<? extends upperBoundType>import java.util.ArrayList;import java.util.List;public class  GenericTest10 {public static double getAverage(List<? extends Number> numberList) { double total = 0.0; f

Program to explain Generic Method in Java

Filed under: Java on 2024-04-12 18:37:56
// Program to explain Generic Method.public class  GenericTest7 {// generic method printArraypublic static <T> void printArray(T[ ] inputArray) { // display array elements for (T element : inputArray)  System.out.printf("%s  ", element); System.out.print

Program to explain Simple Generic class in Java

Filed under: Java on 2024-04-12 18:32:56
// Program to explain Simple Generic class.class   A<T> {T ob;A(T o) { ob = o;}T getob() { return ob;}void showType() { System.out.println("Type of T is " + ob.getClass().getName());}}public class  GenericTest1{public static void main(String args[ ]

How did I Setup bootstrap css in my Java EE project?

Filed under: Java EE on 2024-03-30 20:48:24
During my setup of java EE project. I faced one problem. I was unable to include bootstrap css in my project. I tried many ways to do this.<link rel="stylesheet" href="assets/vendor/bootstrap/css/bootstrap.min.css"/>But it was not being included in my webpages (.jsp pages) so i searched on goo

Project Structure - TypeScript

Filed under: TypeScript on 2024-03-18 12:45:47
Create two folders with the name ‘src’ and ‘public’. ‘src’ will be responsible to keep ts files & ‘public’ will be responsible to keep js & html files.Execute the following commands:tsc --initThis command will be responsible to create a tsconfig.json file. Open the tsconfig.j

Parallel Programming with Axios - TypeScript

Filed under: TypeScript on 2024-03-18 12:35:28
Example 1:As we can see from the output, all three sleep functions run and they print out how long they have run for. We can also see how long the main function has run, just over 3000ms. This shows that we are running these tasks in parallel, if we weren't, the main function would have run for abou

Consuming Rest Api - Typescript

Filed under: TypeScript on 2024-03-18 12:28:53
APIs are mechanisms that enable two software components to communicate with each other using a set of definitions and protocols. For example, the weather bureau's software system contains daily weather data.Example 1: Fetch Data & use JSON.stringifymain.tsimport axios from 'axios';async function

Generics in Typescript

Filed under: TypeScript on 2024-03-18 12:15:16
The purpose of generics in programming languages, including TypeScript, is to provide a way to write reusable code that can work with different types while maintaining type safety. Generics allow you to define types or functions that can adapt to various data types, without sacrificing compile-time 

Indexable Type Interface - Typescript

Filed under: TypeScript on 2024-03-18 12:04:22
In TypeScript, an indexable type interface allows you to define a type that can be accessed using indexing, similar to how you access elements in an array or properties in an object. This feature allows you to specify the types for indexing operations using specific key types.To define an indexable 

Excess Property Checks in Interface - Typescript

Filed under: TypeScript on 2024-03-18 11:57:41
In TypeScript, excess property checks occur when you try to assign an object literal to a variable or parameter with a defined type or interface that doesn't include all the properties of the object literal. By default, TypeScript performs excess property checks to ensure type safety and prevent pot

Optional Property interface typescript

Filed under: TypeScript on 2024-03-18 11:50:20
In TypeScript, you can define optional properties in an interface by appending a question mark (?) to the property name. This allows you to specify that a property is not required to be present in objects that implement the interface.Example 3: Optional Propertyindex.ts:interface Person {  &nbs

Interface Duck type in Typescript

Filed under: TypeScript on 2024-03-18 11:48:38
Duck Typing is a way of programming in which an object passed into a function or method supports all method signatures and attributes expected of that object at run time. The object's type itself is not important. Rather, the object should support all methods/attributes called on it.It refers to the

Interface in Typescript

Filed under: TypeScript on 2024-03-18 11:41:03
In TypeScript, an interface is a way to define the structure of an object. It specifies the properties and methods that an object should have. Interfaces are used for type checking during development and for documentation purposes.Example 1:index.ts:interface Person {name: string;age: number;greet: 

Abstract Class in Typescript

Filed under: TypeScript on 2024-03-18 11:37:35
Abstraction in TypeScript is a concept that allows you to create classes with abstract methods and properties. Abstract classes cannot be instantiated directly but serve as a blueprint for other classes to inherit from.Example 1:index.ts:abstract class Animal {name: string;constructor(name: string) 

Inheritance in TypeScript

Filed under: TypeScript on 2024-03-18 11:36:27
Inheritance is a mechanism that allows a class to inherit properties and methods from another class. It enables code reuse and promotes the concept of a hierarchical relationship between classes. TypeScript supports single inheritance, meaning a class can only inherit from a single base class. To im

TypeCasting in Typescript

Filed under: TypeScript on 2024-03-18 11:11:32
TypeScript supports typecasting, which allows you to explicitly change the type of a value. There are following ways to perform typecasting in TypeScript: using the as keyword and using angle bracket syntax (<>).In TypeScript, assertion and typecasting are often used interchangeably, but they 

TypeScript - Basic Types of Data

Filed under: TypeScript on 2024-03-18 11:01:22
JavaScript has three very commonly used primitives: string, number, and boolean. Each has a corresponding type in TypeScript. string represents string values like "Hello, world" number is for numbers like 42. JavaScript does not have a special runtime value for integers, so there’s 

Singleton Design Pattern - TypeScript

Filed under: TypeScript on 2024-03-14 17:15:36
The Singleton pattern can be useful in various scenarios where you need to ensure that there is only one instance of a class and provide global access to that instance. Some real-time use cases of the Singleton pattern include:Database Connections: When working with a database, you may want to have 

Creating Class in Typescript

Filed under: TypeScript on 2024-03-14 11:08:37
TypeScript offers full support for the class keyword introduced in ES2015.Class MembersHere’s the most basic class - an empty one:class Point {}This class isn’t very useful yet, so let’s start adding some members.FieldsA field declaration creates a public writeable property on a class:class Po

TypeScript Overview and Installation Guides

Filed under: TypeScript on 2024-03-14 10:06:45
TypeScript is an open-source language that is developed and maintained by Microsoft under the Apache 2 license. TypeScript is a strongly typed superset of JavaScript which compiles to plain JavaScript. It needs a compiler to compile and generate in a JavaScript file. TypeScript is the ES6 

Concepts of Typescript

Filed under: TypeScript on 2024-03-14 10:04:15
TypeScript is a programming language developed by Microsoft that extends JavaScript by adding static typing to it. It aims to enhance the development experience by providing better tooling, error checking, and code organization. Here are some key concepts in TypeScript: Static Typing: TypeScrip

How to get Database data using Hibernate? Explained by Impl class

Filed under: Java on 2024-03-11 21:27:10
Before viewing this example. Go and learn  (Hibernate Configuration using java file)package com.mysite.firstJavaDbApp.serviceImpl;import java.util.List;import org.hibernate.Session;import org.hibernate.SessionFactory;import org.hibernate.Transaction;import com.mysite.firstJavaDbApp.beans.Employ

Hibernate Configuration using Java Singleton Class

Filed under: Java on 2024-03-11 21:24:26
package com.mysite.firstJavaDbApp.config;import java.util.Properties;import org.hibernate.SessionFactory;import org.hibernate.boot.registry.StandardServiceRegistryBuilder;import org.hibernate.cfg.Configuration;import org.hibernate.service.ServiceRegistry;import com.mysite.firstJavaDbApp.beans.Employ

Java Program to find area of triangle

Filed under: Java on 2024-03-05 21:41:47
import java.util.Scanner;class AreaOfTriangle {  public static void main(String args[])    {              Scanner s= new Scanner(System.in);               System.out.println("Enter the width

Java Program to find area of rectangle

Filed under: Java on 2024-03-05 21:40:08
import java.util.Scanner;class AreaOfRectangle {  public static void main(String args[])    {              Scanner s= new Scanner(System.in);              System.out.println("Enter the lengt

Java Program to find area of circle

Filed under: Java on 2024-03-05 21:33:32
import java.util.Scanner;class AreaOfCircle {  public static void main(String args[])    {              Scanner s= new Scanner(System.in);               System.out.println("Enter the radius:

Classes in Java

Filed under: Java Tutorial on 2024-03-03 20:42:59
In Object-Oriented Programming language, Classes and Objects are the essential building blocks. The “class” keyword is used to declare the class followed by a reference name.Syntax:class Car {//class body}Classes are known as the blueprint of object creation. Classes that are defined by the user

Type Casting in Java

Filed under: Java Tutorial on 2024-03-03 20:36:44
In Java, Type Casting is a process of converting a variable of one data type into another.Type casting can be categorized into two types:Implicit type castingExplicit type castingImplicit typecasting:It is known as widen or automatic type casting. The process to convert a small range data type varia

Primitive Data Types in java

Filed under: Java Tutorial on 2024-03-01 21:08:59
There are eight primitive data types that are supported in Java programming language. These are the fundamental and predefined datatypes of the programming language. Java determines the size of each primitive data type, it cannot be changed. Reserved keywords represent primitive data types.The primi

Understanding Variables in Java

Filed under: Java Tutorial on 2024-03-01 20:50:25
In Java, the variables can be declared to store data in the program for a specific time. In a programming language, few variations are there todeclare a variable. The following program will explain to declare and then initialize an int variable.public static void main(String[] args) {int data1;data1

Variable and Data Type in Java

Filed under: Java Tutorial on 2024-03-01 20:43:00
VariableVariables occupy the memory to store data for a particular time. Data Type A data type is used to identify the size and type of information stored in a variable. Data types help in memory management. It helps to assign thememory depending upon the type of data type. Most importantl

First Program in Java

Filed under: Java Tutorial on 2024-03-01 20:39:53
This Java program has been developed to display the text 'Hello Planet!' onthe console screen.// File-Name: Hello.javapublic class Hello {     public static void main(String[] args) {     // Displaying "Hello Planet!" on the console     System.out.println

what is JDK, JRE, Garbage Collector and Classpath in Java

Filed under: Java Tutorial on 2024-03-01 16:56:07
Java Development Kit (JDK): Overview: The JDK is a comprehensive package for Java development. It encompasses essential components like the compiler, Java Runtime Environment (JRE), Java debuggers, documentation, and more. To write, compile, and run Java programs, it's imperative to install the

Program to Serialize Student Deserialize student object in Java

Filed under: Java on 2024-03-01 06:48:15
// Program to Serialize Student Deserialize student object.import java.io.*;class Student implements Serializable{int rno;String sname;double marks; // ConstructorStudent( int r, String nm, double m ){ rno = r; sname = nm; marks = m;}void display(){ System.out.println(" Roll

Program to Serialize Student object in Java

Filed under: Java on 2024-03-01 06:47:34
// Program to Serialize Student object student object.import java.io.*;class Student implements Serializable{int rno;String sname;double marks; // ConstructorStudent( int r, String nm, double m ){ rno = r; sname = nm; marks = m;}void display(){ System.out.println(" Roll No. 

Program to De-serialize object of Box class in Java

Filed under: Java on 2024-03-01 06:46:15
// Program to De-serialize object of Box class.import java.io.*;import java.util.*;// Box classclass Box  implements  Serializable{// instance variablesprivate double width;private double height;private double depth;// default constructorBox(){ width = 0; height = 0; depth =

Program to Serialize object of Box class in Java

Filed under: Java on 2024-03-01 06:45:40
// Program to Serialize object of Box class.import java.io.*;import java.util.*;// Box classclass  Box  implements Serializable{// instance variablesprivate double width;private double height;private double depth;// default constructorBox(){ width = 0; height = 0; depth = 0;

Program to read data from text file using FileReader in Java

Filed under: Java on 2024-03-01 06:44:32
// Program to read data from text file using // FileReader  and display it on the monitor.import java.io.*;class FileReaderDemo{public static void main( String args[ ] ) throws IOException{ // attach file to FileReader FileReader fr = null; try {  fr = new FileRead

What is Bytecode in the Development Process

Filed under: Java on 2024-02-27 15:43:54
Description: During the development process, Java source code is compiled into a special format called bytecode by the Javac compiler found in the Java Development Kit (JDK). This bytecode can be executed by the JVM and is saved with a .class extension.

What is Java Virtual Machine (JVM)?

Filed under: Java on 2024-02-27 15:42:54
Definition: The JVM is a critical component in the world of Java programming. It serves two primary functions: enabling Java applications to run across various devices and operating systems (the "Write once, run anywhere" principle) and efficiently managing and optimizing program memory. Technical D

Create a method named calc, which accepts an integer (int), a character (char) and one more integer (int), and depending on the character, returns the result

Filed under: Java on 2024-02-27 13:59:41
Create a method named calc, which accepts an integer (int), a character (char) and one more integer (int), and depending on the character, returns the result of the corresponding operation on numbers:'+' — sum of integers'-' — integer difference (first minus second)'*' — product of integers'/'

Event Types in Node Js

Filed under: NodeJs on 2024-02-22 21:01:23
Sr.No.Events & Description1newListener1. event − String: the event name2. listener − Function: the event handler functionThis event is emitted any time a listener is added. When this event is triggered, the listener may not yet have been added to the array of listeners for the event.2removeL

Event Emitter Pattern in Node Js

Filed under: NodeJs on 2024-02-22 20:51:05
AIM:To demonstrate the event emitter patternObjective:Explanation of event emitter pattern with programme.Theory:The EventEmitter is a module that facilitates communication/interaction between objects in Node. EventEmitter is at the core of Node asynchronous event-driven architecture. Many of Node

Standard Callback Pattern in Node Js

Filed under: NodeJs on 2024-02-22 20:46:50
AIM: To demonstrate the use of Standard callback pattern Objective: Node js callback pattern function callback Theory: Callback is an asynchronous equivalent for a function. A callback function is called at the completion of a given task. Node makes heavy use of callbacks. All the APIs of 

Node.js – Console

Filed under: NodeJs on 2024-02-22 20:42:55
Node.js console is a global object and is used to print different levels of messages to stdout and stderr. There are built-in methods to be used for printing informational, warning, and error messages. It is used in synchronous way when the destination is a file or a terminal and in asynchronous way

Node.js - REPL Terminal

Filed under: NodeJs on 2024-02-22 20:38:39
REPL stands for Read Eval Print Loop and it represents a computer environment like a Windows console or Unix/Linux shell where acommand is entered and the system responds with an output in an interactive mode. Node.js or Node comes bundled with a REPLenvironment. It performs the following tasks −R

Traditional Web Server Model

Filed under: NodeJs on 2024-02-22 16:28:21
The traditional web server model consists of a pool of threads which may process requests. Each time a new request comes in, it is assigned to a different thread in the pool. In the event a request is received and a thread is not available, the request will have to wait until a previous request fini

How to Install Node.js and NPM on Windows

Filed under: NodeJs on 2024-02-22 16:25:43
In a web browser, navigate to https://nodejs.org/en/download/. Click the Windows Installer button to download the latest default version. At the time this article was written, version 10.16.0-x64 was the latest version. The Node.js installer includes the NPM package manager.Step 2: Install Node.js a

What is Node.js Process Model

Filed under: NodeJs on 2024-02-22 16:22:25
The Node.js process model differs from traditional web servers in that Node.js runs in a single process with requests being processed on a single thread. One advantage of this is that Node.js requires far fewer resources. When a request comes in, it will be placed in an event queue. Node.js uses an 

Advantage of Node Js

Filed under: NodeJs on 2024-02-22 16:20:16
The ability to scale up quickly: Each of the nodes in Node.js is based around an “event.” A customer buys an in-app purchase, or sends an email to customer service, for instance. The amount of nodes you can add to your core programming function are nearly limitless. This means you can scale vert

What is Node Js?

Filed under: NodeJs on 2024-02-22 16:18:35
It is a free, open-source, cross-platform runtime environment that runs on JavaScript. Meant mainly for the server side, or client side, of a mobile application, it is a full-stack development environment that divides up tasks into fully separate “nodes.”When people ask, “what are the advantag

Ball Game example In Java

Filed under: Java on 2024-02-16 10:05:17
In this example, i have shown you an example which have mainly three classes:BallGame.javaBallGameImpl.javaApp.javaWhat does this game does?In this game, you will fill the no. of players and no. of balls. Then this game will distribute these balls among the players. After distribution it will tell h

How to update vscode .deb in ubuntu?

Filed under: Coding on 2024-01-16 19:39:28
To update Visual Studio Code (VSCode) on Ubuntu using the .deb package, you can follow these steps:you can manually download the latest .deb package from the VSCode website, and then install it using the following steps:Download the Latest .deb Package:Go to the VSCode website and download the lates

Unit-6: Functions | BCA semester 1

Filed under: BCA Study Material on 2023-10-31 09:08:27
basic types of functionIn C programming, there are two basic types of functions:Library functions: These are the built-in functions in C that are included in the C library. For example, printf, scanf, strcpy, etc. Library functions are used to perform specific tasks, such as reading from the standar

Unit-3: Control structures : BCA semester 1

Filed under: BCA Study Material on 2023-10-30 07:39:03
Control structures in C programming allow you to control the flow of execution of your program based on conditions or repetition. There are three main control structures in C:Conditional (if-else) statements: These are used to execute a block of code only if a certain condition is met.Example:int x 

Java program to sort an array in ascending order

Filed under: Java on 2023-10-29 09:53:28
In this java program, we are reading total number of elements (N) first, and then according the user input (value of N)/total number of elements, we are reading the elements. Then sorting elements of array in ascending order and then printing the elements which are sorted in ascending order.Programi

Java String compareTo() Example Code

Filed under: Java on 2023-10-26 21:45:31
class Main { public static void main(String[] args) {   String str1 = "Learn Java";   String str2 = "Learn Java";   String str3 = "Learn Kolin";   int result;   // comparing str1 with str2   result = str1.compareTo(str2);   S

Java String split() Example

Filed under: Java on 2023-10-26 21:42:57
class Main { public static void main(String[] args) {   String text = "Java is a fun programming language";   // split string from space   String[] result = text.split(" ");   System.out.print("result = ");   for (String str : result) {  &n

Program to use File class and its methods in Java

Filed under: Java on 2023-10-25 06:51:37
//  Program to use File class and its methodsimport java.io.*;class FileDemo{   public static void main(String args[ ])    {       File f = new File("FileDemo.java");       System.out.println("File : " + f.getName() + (f.isFile() 

Program to use URLConnection class in Java

Filed under: Java on 2023-10-25 06:49:31
//  Program to use URLConnection class.import java.io.*;import java.net.*;import java.util.Date;class URLConnectionDemo{public static void main(String args[ ]) throws Exception{ int ch; URL ob = new URL("http://www.bethedeveloper.com/java/"); URLConnection uc = u.openConnection()

Program to display all parts of URL in Java

Filed under: Java on 2023-10-25 06:48:59
// Program to display all parts of URL.import java.net.*;class URLDemo{public static void main( String args[ ] ) throws Exception{ URL ob = new URL("http://www.bethedeveloper.com/java/"); System.out.println(" Protocol : " + ob.getProtocol()); System.out.println(" Host : " + ob.getHost

Program to Display host name by IP address in Java

Filed under: Java on 2023-10-25 06:48:30
// Program to Display host name by IP address.import java.net.*;class HostName{public static void main( String args[ ] ) { // byte ad[ ] = { (byte)192, (byte)168, 1, 2 };  try {  // InetAddress ip = InetAddress.getByAddress( ad );  InetAddress ip = InetAddress.getB

Program to create Menu in AWT in Java

Filed under: Java on 2023-10-25 06:47:10
//  Program to create Menu in AWT.import java.awt.*;import java.applet.*;import java.awt.event.*;class MyMenu extends Frame implements ActionListener{String str="";CheckboxMenuItem cmiBold , cmiItalic;MenuItem miNew , miOpen , miSave, miCut, miCopy, miPaste, miRed, miGreen, miBlue;MyMenu(){&nbs

Program to explain Dialog class in Java

Filed under: Java on 2023-10-25 06:46:42
//  Program to explain Dialog class.import java.applet.*;import java.awt.*;import java.awt.event.*;class MyDialog extends Dialog implements ActionListener{  Button b1;  Label l1;    MyDialog( Frame f, String s, boolean u )  { super( f, s, u ); setLayout( 

Program to use GridBagLayout in Java

Filed under: Java on 2023-10-25 06:46:11
// Program to use GridBagLayout.import java.awt.*;import java.awt.event.*;public class GridBagLayoutDemo1 extends Frame{GridBagLayout gb;GridBagConstraints gbc;Button b1, b2, b3, b4, b5, b6, b7;public GridBagLayoutDemo1( String s ){ super( s );    gb = new GridBagLayout(); g

Program to explain CardLayout in Java

Filed under: Java on 2023-10-25 06:45:42
//  Program to explain CardLayout.import java.awt.*;import java.awt.event.*;import java.applet.*;/*<applet code="CardLayoutDemo" width=300 height=100></applet>*/public class CardLayoutDemo extends Applet implements ActionListener, MouseListener {Button b1, b2, b3, b4, b5;Panel 

Program to use GridLayout in Java

Filed under: Java on 2023-10-25 06:45:00
//  Program to use GridLayout.import java.awt.*;import java.awt.event.*;import java.applet.*;/*<applet code="GridLayoutDemo" width="300" height="150"></applet>*/public class GridLayoutDemo extends Applet {Button b1, b2, b3, b4, b5;public void init() { setLayout(new Gr

Program to use Insets in Java

Filed under: Java on 2023-10-25 06:44:35
// Program to use Insets.import java.awt.*;import java.awt.event.*;import java.applet.*;/*<applet code="InsetsDemo" width="300" height="150"></applet>*/public class InsetsDemo extends Applet {Button b1, b2, b3, b4, b5;public void init() { setLayout(new BorderLayout());&nbs

Program to use BorderLayout in Java

Filed under: Java on 2023-10-25 06:44:03
//  Program to use BorderLayout.import java.awt.*;import java.awt.event.*;import java.applet.*;/*<applet code="BorderLayoutDemo" width="300" height="150"></applet>*/public class BorderLayoutDemo extends Applet {Button b1, b2, b3, b4, b5;public void init() { setLayout(

Program to use FlowLayout in Java

Filed under: Java on 2023-10-25 06:43:36
//  Program to use FlowLayout.import java.awt.*;import java.awt.event.*;import java.applet.*;/*<applet code="FlowLayoutDemo" width="300" height="150"></applet>*/public class FlowLayoutDemo extends Applet {Button b1, b2, b3, b4, b5;public void init() { setLayout(new Fl

Program to use Scrollbar AWT control in Java

Filed under: Java on 2023-10-25 06:43:08
//  Program to use Scrollbar AWT control.import java.awt.*;import java.awt.event.*;import java.applet.*;/*<applet code="ScrollbarDemo" width="250" height="150"></applet>*/public class ScrollbarDemo extends Applet implements AdjustmentListener, MouseMotionListener {String msg = 

Program to use List AWT control in Java

Filed under: Java on 2023-10-25 06:42:37
//  Program to use List AWT control.import java.awt.*;import java.awt.event.*;import java.applet.*;/*<applet code="ListDemo" width=300 height=150></applet>*/public class ListDemo extends Applet implements ActionListener {List os, browser;String msg = "";public void init() 

Program to use Choice AWT control in Java

Filed under: Java on 2023-10-25 06:42:11
//  Program to use Choice AWT control.import java.awt.*;import java.awt.event.*;import java.applet.*;/*<applet code="ChoiceDemo" width="300" height="150"></applet>*/public class ChoiceDemo extends Applet implements ItemListener {Choice os, browser;String msg = "";public void in

Program to use CheckboxGroup ( RadioButton ) AWT control in Java

Filed under: Java on 2023-10-25 06:41:41
//  Program to use CheckboxGroup ( RadioButton ) AWT control.import java.awt.*;import java.awt.event.*;import java.applet.*;/*<applet code="RadioButtonDemo" width="250" height="100"></applet>*/public class RadioButtonDemo extends Applet implements ItemListener {String msg = "";

Program to use Checkbox AWT control in Java

Filed under: Java on 2023-10-25 06:40:54
// Program to use Checkbox AWT control.import java.awt.*;import java.awt.event.*;import java.applet.*;/*<applet code="CheckBoxDemo" width="250" height="150"></applet>*/public class CheckBoxDemo extends Applet implements ItemListener {String msg = "";Checkbox cbRed, cbGreen, cbBlue;p

Program to use TextArea AWT control in Java

Filed under: Java on 2023-10-25 06:40:28
//  Program to use TextArea AWT control.import java.awt.*;import java.applet.*;/*<applet code="TextAreaDemo" width="300" height="200"></applet>*/public class TextAreaDemo extends Applet {public void init() { String val =  "Java SE 6 is the latest version of the m

Program to use TextField AWT control in Java

Filed under: Java on 2023-10-25 06:39:56
// Program to use TextField AWT control.import java.awt.*;import java.awt.event.*;import java.applet.*;/*<applet code="TextFieldDemo" width=350 height=150></applet>*/public class TextFieldDemo extends Applet implements ActionListener {TextField tfname, tfpass;public void init() 

AWT frame class example in Java

Filed under: Java on 2023-10-25 06:39:22
//  Program to use Frame class.import java.awt.*;import java.awt.event.*;public class FrameTest extends Frame implements ActionListener{TextField tf;Button b;String s = "";   public  FrameTest(){ tf = new TextField( 10 ); b = new Button( "Show" );  add( "North

AWT button example in Java

Filed under: Java on 2023-10-25 06:38:57
//  Program to use Button  AWT control.import java.awt.*;import java.awt.event.*;import java.applet.*;/*<applet code="ButtonDemo" width=250 height=150></applet>*/public class ButtonDemo extends Applet implements ActionListener {String msg = "";Button b1, b2, b3;public void

AWT Label example in Java

Filed under: Java on 2023-10-25 06:38:35
// Program to use Label  AWT control.import java.awt.*;import java.applet.*;/*<applet code="LabelDemo" width=300 height=100></applet>*/public class LabelDemo extends Applet {public void init() { Label l1 = new Label("Java"); Label l2 = new Label("Programming");&n

Program to use Window Event in Java

Filed under: Java on 2023-10-19 07:07:54
//  Program to use Window Event.import java.awt.*;import java.awt.event.*;public class WindowEventDemo extends Frame implements WindowListener{public WindowEventDemo(){ addWindowListener( this ); setSize( 250, 150 ); setVisible( true );}public void windowOpened( WindowEvent we ){

Program to expain Fucus Event in Java

Filed under: Java on 2023-10-19 07:07:22
//  Program to expain Fucus Event.import java.awt.*;import java.awt.event.*;import java.applet.*;/*<applet code="FocusEventDemo" width="200" height="100"></applet>*/public class FocusEventDemo extends Applet implements FocusListener{Button b1, b2, b3;Label l1, l2;public void init(){

Program to use MouseAdapter class as Inner class in Java

Filed under: Java on 2023-10-19 07:05:55
//  Program to use MouseAdapter class as Inner class.import java.applet.*;import java.awt.event.*;/*<applet code="MouseAdapterInnerTest" width="300" height="100"></applet>*/public class MouseAdapterInnerTest extends Applet {public void init() { addMouseListener(new My

Program to use MouseAdapter class in Java

Filed under: Java on 2023-10-19 07:05:02
//  Program to use MouseAdapter class.import java.applet.*;import java.awt.event.*;/*<applet code="MouseAdapterTest" width="200" height="100"></applet>*/public class MouseAdapterTest extends Applet {public void init() { addMouseListener(new MyMouseAdapter(this));}}cla

Program to explain Key Event with Virtual Key in Java

Filed under: Java on 2023-10-19 07:04:19
//  Program to explain Key Event with Virtual Key.import java.awt.*;import java.awt.event.*;import java.applet.*;/*<applet code="KeyEventTest1" width="300" height="100"></applet>*/public class KeyEventTest1 extends Applet implements KeyListener {String msg = "";int X = 10, Y = 

Program to explain Key Event in Java

Filed under: Java on 2023-10-19 07:03:47
//  Program to explain Key Event.import java.awt.*;import java.awt.event.*;import java.applet.*;/*<applet  code="KeyEventTest"  width="300" height="200"></applet>*/public class KeyEventTest extends Applet implements KeyListener {String msg = "";int X = 10, Y = 20;&nbs

Program to explain Mouse Event and Mouse Motion Event in Java

Filed under: Java on 2023-10-19 07:03:14
//  Program to explain Mouse Event and Mouse Motion Event.import java.awt.*;import java.awt.event.*;import java.applet.*;/*<applet  code="MouseEventTest"  width="300" height="200"></applet>*/public class MouseEventTest extends Applet implements  MouseListener, MouseMo

Program to explain Mouse Motion Event in Java

Filed under: Java on 2023-10-19 07:02:42
//  Program to explain Mouse Motion Event.import java.awt.*;import java.awt.event.*;import java.applet.*;/*<applet  code="MouseMotionEventTest" width="300" height="200"></applet>*/public class MouseMotionEventTest extends Applet implements MouseMotionListener {String msg =

Program to explain Mouse Event in Java

Filed under: Java on 2023-10-19 07:01:58
//  Program to explain Mouse Event.import java.awt.*;import java.awt.event.*;import java.applet.*;/*<applet  code="MouseEventTest1"  width="300" height="200"></applet>*/public class MouseEventTest1 extends Applet implements MouseListener {String msg = "";int mouseX = 

Program to change color using setColor() method in Java

Filed under: Java on 2023-10-16 07:07:57
//  Program to change color using setColor() method.import java.awt.*;import java.applet.*;/*<applet code="GraphicsColor" width="300" height="200"></applet>*/public class  GraphicsColor  extends  Applet {public void paint(Graphics g) { Color c1 = new Co

Program to change Font using setFont() method in Java

Filed under: Java on 2023-10-16 07:07:16
//  Program to change Font using setFont() method.import java.awt.*;import java.applet.*;/*<applet code="DrawStringFontTest1a" width="200" height="100" ></applet>*/public class  DrawStringFontTest1a  extends Applet  {Font f;public void init() { setBackground

Program to draw Arc in Applet using fillArc() method in Java

Filed under: Java on 2023-10-16 07:06:07
// Program to draw Arc in Applet using fillArc() method.import java.awt.*;import java.applet.*;/*<applet code="FillArcTest1a" width="200" height="100" ></applet>*/public class  FillArcTest1a  extends  Applet  {public void paint(Graphics g) { setBackground( C

Program to draw Arc in Applet using drawArc() method in Java

Filed under: Java on 2023-10-16 07:05:37
// Program to draw Arc in Applet using drawArc() method.import java.awt.*;import java.applet.*;/*<applet code="DrawArcTest1a" width="200" height="100" ></applet>*/public class DrawArcTest1a extends Applet  {public void paint(Graphics g) { setBackground( Color.yellow );&nbs

Program to draw oval in Applet using drawOval() method in Java

Filed under: Java on 2023-10-16 07:04:38
//  Program to draw oval in Applet using drawOval() method.import java.awt.*;import java.applet.*;/*<applet code="DrawOvalTest1a" width="200" height="100" ></applet>*/public class DrawOvalTest1a extends Applet  {public void paint(Graphics g) { setBackground( Color.yel

Program to draw line in Frame using drawLine() method in Java

Filed under: Java on 2023-10-16 07:02:07
//  Program to draw line in Frame using drawLine() method.import java.awt.*;public class DrawLineTest1b  extends  Frame  {public DrawLineTest1b(){ setSize(200, 200); setVisible(true);}public void paint(Graphics g) { g.drawLine(20, 40, 180, 180);}public static 

Program to use Thread without Synchronization in Java

Filed under: Java on 2023-10-16 06:50:51
//  Program to use Thread without Synchronization.class Shared{void justDoIt( String s ){ System.out.println( " Starting ::: " + s ); try {  Thread.sleep( 500 ); } catch( InterruptedException e )  { } System.out.println( " Ending ::: " + s );}}class 

Program to use suspend( ) and resume( ) method in Java

Filed under: Java on 2023-10-16 06:48:35
// Program to use suspend( ) and resume( ) method.class NewThread implements Runnable{String tn;Thread t;NewThread( String tname ){ tn = tname; t = new Thread( this, tn ); System.out.println( " New Thread ::: " + t ); t.start();}public void run(){ try {  for( int i

Python program to print formatted string

Filed under: Python on 2023-09-23 06:44:48
print("""a string that you "don't" have to escapeThisis a  ....... multi-lineheredoc string --------> example""")      Output:a string that you "don't" have to escape                                

Program to use setPriority( ) method of Thread in Java

Filed under: Java on 2023-09-22 06:48:31
//  Program to use setPriority( ) method.class A extends Thread{public void run(){ for( int i=1 ; i<=10 ; i++ ) {       System.out.println( " THREAD A = " + i ); } System.out.println( " END OF THREAD A." );}}class B extends Thread{public void run(){&nb

Program to extend multiple classes from Thread class in Java

Filed under: Java on 2023-09-22 06:47:47
//  Program to extend multiple classes from Thread class.class A extends Thread{public void run(){ for( int i=1 ; i<=10 ; i++) {  System.out.println( " Java" ); }}}class B extends Thread{public void run(){ for( int i=1 ; i<=10 ; i++) {  System.out.printl

Java Program to explain Main thread and currentThread( ) method

Filed under: Java on 2023-09-22 06:46:01
// Program Main thread and currentThread( ) methodclass CurrentThread{public static void main( String args[ ] ){ Thread t = Thread.currentThread(); System.out.println( "Current Thread is = " + t ); t.setName( "My Thread" ); System.out.println( "After Changing Name is = " + t );}}

C# program to check whether a character is vowel or consonant

Filed under: C# on 2023-09-22 06:42:40
Here you will find an algorithm and program in C# programming language to check whether the given character is vowel or consonant.Explanation : In English, five alphabets A, E, I, O, and U are called as Vowels. In English, all alphabets other than vowels are Consonant. Algorithm to check whethe

C# Program to Print Fibonacci Series upto N terms

Filed under: C# on 2023-09-21 06:59:51
Here you will find an algorithm and program in C# programming language to print fibonacci series. First let us understand what fibonacci series means.Explanation : The Fibonacci sequence is a sequence consisting of a series of numbers and each number is the sum of the previous two numbers. For Examp

C# program to swap two numbers without using temporary variable

Filed under: C# on 2023-09-21 06:58:23
Here you will find an algorithm and program in C# programming language to swap 2 numbers without using any third or temporary variable.Swapping two number : Swap two numbers means exchange the values of two variables with each other. Suppose we are given 2 numbers num1 = 10 and num2 = 20 and we have

C# Program to Find the Sum of Digits in a Given Number

Filed under: C# on 2023-09-21 06:56:45
Here you will find an algorithm and program in C# programming language to find the sum of digits in number. Now let us understand this.Explanation : Suppose we are having number 12548 and we have to calculate the sum of digits in the given number, so here we have the following digits 1, 2, 5, 4, 8 a

C# Program to Count the Number of Digits in a Number

Filed under: C# on 2023-09-21 06:55:39
Here you will find an algorithm and program in C# programming language to count number of digits in a number. First let us understand this.Explanation : Suppose an input number is given as 12341 then the output will be 5 as there are 5 digits in the given number and digits are 1, 2, 3, 4, 1.Algorith

C# Program to Check Whether the Given Year is Leap Year or Not

Filed under: C# on 2023-09-21 06:54:20
Here you will find an algorithm and program in C# programming language to check whether the given year is leap year or not. First let us understand what is leap year?Explanation : A leap year is a calendar year that contains an additional day added to keep the calendar year synchronized. A leap year

C# program to check whether the given number N is even or odd

Filed under: C# on 2023-09-21 06:52:53
Here you will find an algorithm and program in C# programming language to check whether the given number is even or odd number. First let us understand what is even number and odd number.Explanation : If the number is divisible by 2 then the number is even number and if the number is not divisible b

C# Program to Display Hello World on Screen

Filed under: C# on 2023-09-21 06:50:25
Here you will find an algorithm and program in C# programming language to print Hello World on screen. The "Hello World" program is the first step towards learning any programming language and also one of the simplest programs you will learn. All you have to do is display the message "Hello World" o

Program 2 to create Applet with param tag in Java

Filed under: Java on 2023-09-20 06:41:28
//  Program to create Applet with param tag.import java.awt.*;import java.applet.Applet;/*<applet  code="AppletTest3.class" width="300" height="60"><param name="msg" value="Let's learn Applet.">  </applet>*/public class AppletTest3 extends Applet {String msg = "

Program to create Applet with param tag in Java

Filed under: Java on 2023-09-20 06:40:46
// Program to create Applet with param tag.import java.awt.*;import java.applet.Applet;/*<applet code="AppletTest2b.class" width="300" height="100"><param name="message" value="BIIT Computer Education" /></applet>*/public class  AppletTest2b  extends  Applet {St

Program to use Applet with Button and it's event in Java

Filed under: Java on 2023-09-20 06:39:13
// Program to use Applet with Button and it's event.import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.applet.Applet;import java.awt.Button;/*<applet code="AppletTest2.class" width="300" height="100"></applet>*/public class AppletTest2 extends Applet 

Program to use getCodeBase() and getDocumentBase() in Java

Filed under: Java on 2023-09-20 06:38:44
// Program to use getCodeBase() and getDocumentBase().import java.awt.*;import java.applet.*;import java.net.*;/*<applet code="Applet07" width="300" height="50"></applet>*/public class  Applet07  extends Applet{public void paint(Graphics g) { String msg;  UR

Program with param tag in applet tag in Java

Filed under: Java on 2023-09-20 06:38:12
//  Program with param tag in applet tag.import java.awt.*;import java.applet.*;/*<applet code="Applet06" width="300" height="50"><param name="message" value="Java makes the Web move!"></applet>*/public class  Applet06 extends Applet implements Runnable {String 

Program to display string in Status window in Java

Filed under: Java on 2023-09-20 06:36:38
//  Program to display string in Status window.import java.awt.*;import java.applet.*;/*<applet code="Applet04" width="300" height="50"></applet>*/public class Applet04 extends  Applet{public void init() { setBackground(Color.yellow);}public void paint(Graphics g)&nbs

Program with Banner applet in Java

Filed under: Java on 2023-09-20 06:36:06
// Program with Banner applet.import java.awt.*;import java.applet.*;/*<applet code="Applet03" width="300" height="50"></applet>*/public class  Applet03 extends Applet implements Runnable {String msg = "Java Programming Examples";Thread t = null;boolean flag;public void in

Program to use Applet with init(), start() and paint() in Java

Filed under: Java on 2023-09-20 06:35:34
// Program to use Applet with init(), start() and paint().import java.applet.Applet;import java.awt.*;/*<applet  code="AppletTest1.class" width="300" height="100"></applet>*/public class AppletTest1 extends  Applet {String msg = "";public void init() { setBackgro

Program to use Applet Program and it's Life Cycle in Java

Filed under: Java on 2023-09-20 06:34:59
// Program to use Applet Program and it's Life Cycle.import java.awt.*;import java.applet.*;/*<applet code="Applet01" width="300" height="200"></applet>*/public class  Applet01  extends  Applet {public void init() { setBackground(Color.yellow); System.o

Program to use Boolean Wrapper class in Java

Filed under: Java on 2023-09-19 08:09:43
// Program to use Boolean Wrapper classclass  WrapperBoolean{public static void main( String args[ ] ){ Boolean b1 = new Boolean(false); Boolean b2 = new Boolean("true"); System.out.println(b1.booleanValue()); System.out.println(b2.booleanValue());}}Output:falsetrue

Program to use expression with Wrapper classes in Java

Filed under: Java on 2023-09-19 08:09:17
//  Program to use expression with Wrapper classes.class Wrapper5{public static void main(String args[ ]) { Integer iOb = 100; Double dOb = 123.45; dOb = dOb + iOb; System.out.println("dOb after expression: " + dOb);}}Output:dOb after expression: 223.45

Program to use Simple Wrapper Class in Java

Filed under: Java on 2023-09-19 08:07:19
//  Program to use Simple Wrapper Class.class  Wrapper1{public static void main( String args[ ] ){ // Boxing Integer  iOb = new Integer(100); // Unboxing int i = iOb.intValue(); System.out.println(i + " : " + iOb); }}Output:100 : 100

Program to use enum in an application in Java

Filed under: Java on 2023-09-19 08:06:50
//  Program to use enum in an application.import java.util.Random;enum  Answers {NO, YES, MAYBE, LATER, SOON, NEVER}class Question {Random rand = new Random();Answers ask() { int prob = (int) (100 * rand.nextDouble()); if (prob < 15)  return Answers.MAYBE; 

Comparison in Enum example in Java

Filed under: Java on 2023-09-19 06:56:08
// Program to explain that enum has Ordinal// number that is used in comparison.enum  Colour {Red, Green, Blue, Black, White, Orange, Yellow}class  EnumDemo4 {public static void main(String args[ ]){ Colour c1, c2, c3; // Obtain all ordinal values using ordinal(). 

Program to use Java Enum as a Class type in Java

Filed under: Java on 2023-09-19 06:55:19
//  Program to use Java Enum as a Class type.enum Colour {Red(200), Green(150), Blue(100), Black(250), White(175), Orange(225), Yellow(125);private int price;   // price of each colourColour(int p) {  price = p; }int getPrice() {  return price; 

Java Program to use values() and valueOf() methods of Enum

Filed under: Java on 2023-09-19 06:52:39
//  Program to use values() and valueOf() methods of Enum.enum Colour {Red, Green, Blue, Black, White, Orange, Yellow}class EnumDemo2 {public static void main(String args[ ]){ Colour c1;  System.out.println("All Colour constants: "); Colour  clr[ ] = Colour.va

Program to use Enumeration Named Constants in Java

Filed under: Java on 2023-09-19 06:51:52
//  Program to use Enumeration Named Constants.enum Colour {Red, Green, Blue, Black, White, Orange, Yellow}class EnumDemo1 {public static void main(String args[ ]){ Colour c1; c1 = Colour.Red; System.out.println("Value of c1: " + c1); c1 = Colour.Blue; if(c1 =

Chained exception example in Java

Filed under: Java on 2023-09-19 06:50:25
//  Program to explain Chained Exception.class  ChainedException{static void demoproc() { NullPointerException e = new NullPointerException("top layer"); e.initCause(new ArithmeticException("cause")); throw e;}public static void main(String args[ ]) { try 

User defined exception example 2 in Java

Filed under: Java on 2023-09-19 06:50:00
//  Program to create User-defined Exception//  for checking validity of number for Square root.class NegativeNumberException extends Exception {private double num;NegativeNumberException(double n) { num = n;}public String toString() { return "Square root of " + nu

User defined exception example in Java

Filed under: Java on 2023-09-19 06:49:36
// Program to create User-defined Exception// for checking validity of age.class InvalidAgeException extends Exception {private int age;InvalidAgeException(int a) { age = a;}public String toString() { return "Age: " + age + " is not a valid age.";}}class  Exception14&nb

Finally block example in Java

Filed under: Java on 2023-09-19 06:49:11
// Program to use finally Block with exception handling.class  finallyBlockWithException{// Through an exception out of the method.static void procA() { try  {  System.out.println("inside procA");  throw new RuntimeException("demo"); }  finally 

Throw statement example in Java

Filed under: Java on 2023-09-19 06:48:47
//  Program to use throw statement to raise exception and rethrow the exception.class  ThrowExceptionExample {static void demoproc() { try  {  throw new NullPointerException("demo"); }  catch(NullPointerException e)  {  System.out

Nested try catch block with function example in Java

Filed under: Java on 2023-09-19 06:48:23
// Program to explain Nested Try-Catch Block with Function.class  NestedTryCatchWithFunction{static void nesttry(int a) { try  {  if(a==1)    a = a / (a-a);  if(a==2)   {   int c[ ] = { 1 };   c[10] = 100;  } }

Nested try catch block example in Java

Filed under: Java on 2023-09-19 06:47:47
//  Program to explain Nested Try-Catch Block.class NestedTryCatch{public static void main(String args[ ]) { try  {  int a = args.length;  int b = 10 / a;  System.out.println("a = " + a);  try   {    if(a==1)     a 

Order of exception subclass and superclass in Java

Filed under: Java on 2023-09-19 06:47:05
//Program to explain that, when we use multiple catch statements, it is //important to remember that exception subclasses must come before any of their superclasses.class  MultipleException{public static void main(String args[ ]) { try  {  int a = 0;  int b = 

Multiple exceptions in single catch block example in Java

Filed under: Java on 2023-09-19 06:45:58
// Program to catch Multiple exceptions in single Catch Block.class  Exception6{public static void main(String args[ ]) { try  {  int a = args.length;  System.out.println("a = " + a);  int b = 10 / a;  int c[] = { 1 };  c[10] = 100; }  

Multiple catch block example in Java

Filed under: Java on 2023-09-19 06:45:13
// Program to use Multiple Catch Block with Exception.class Exception05 {public static void main(String args[ ]) { try  {  int a = args.length;  System.out.println("a = " + a);  int b = 10 / a;  int c[ ] = { 1 };  c[10] = 100; }  catch

Try and catch example in Java

Filed under: Java on 2023-09-19 06:44:48
//  Simple try and catch example for exception handlingclass  SimpleTryCatchExample {public static void main(String args[ ]) { int d, a; try  {   d = 0;  a = 10 / d;  System.out.println("This will not be printed."); }  catch 

Stack trace of default Exception Handler of JVM

Filed under: Java on 2023-09-19 06:44:23
// Program without Exception Handling and // stack trace of Default Handler of JVM.class  DefaultException2 {static void subroutine() { int d = 0; int a = 10 / d;}public static void main(String args[ ]) { Exception02.subroutine();}}Output:Exception in thread "

Default Exception Handler of JVM

Filed under: Java on 2023-09-19 06:43:44
// Simple  Program without Exception Handling and // use of Default Handler of JVM.class  DefaultException{public static void main(String args[ ]) { int  d = 0; int  a = 10 / d; // here JVM automatiically handle exaception}}Output:Exception in thread "mai

program to display the examination schedule

Filed under: Python on 2023-09-18 06:58:11
Python program to display the examination schedule. (extract the date from exam_st_date).exam_st_date = (11, 12, 2014)Sample Output: The examination will start from : 11 / 12 / 2014 Code:exam_st_date = (11,12,2014)print( "The examination will start from : %i / %i / %i"%exam_st_date)   &nbs

Python program which takes radius from user and print area

Filed under: Python on 2023-09-18 06:50:25
#Write a Python program which accepts the radius of a circle from the user and compute the area Python: Area of a CircleIn geometry, the area enclosed by a circle of radius r is πr2. Here the Greek letter π represents a constant, approximately equal to 3.14159, which is equal to the ratio of 

Python code to find sum of elements in given array

Filed under: Python on 2023-09-17 22:28:23
#!/usr/bin/python# -*- coding: utf-8 -*-# Python 3 code to find sum# of elements in given arraydef _sum(arr):   # initialize a variable   # to store the sum   # while iterating through   # the array later   sum = 0   # iterate through the a

Python program for implementation of Bubble Sort

Filed under: Python on 2023-09-17 22:27:52
#!/usr/bin/python# -*- coding: utf-8 -*-# Python program for implementation of Bubble Sortdef bubbleSort(arr):   n = len(arr)   # Traverse through all array elements   for i in range(n - 1):   # range(n) also work but outer loop will repeat one time more than 

Python program for implementation of Quicksort Sort

Filed under: Python on 2023-09-17 22:27:24
#!/usr/bin/python# -*- coding: utf-8 -*-# Python program for implementation of Quicksort Sort# This function takes last element as pivot, places# the pivot element at its correct position in sorted# array, and places all smaller (smaller than pivot)# to left of pivot and all greater elements to righ

Python program to swap first and last element of a list

Filed under: Python on 2023-09-17 22:25:39
#!/usr/bin/python# -*- coding: utf-8 -*-# Python3 program to swap first# and last element of a list# Swap functiondef swapList(newList):   size = len(newList)   # Swapping   temp = newList[0]   newList[0] = newList[size - 1]   newList[size - 1] = tem

Python program to find maximum in arr[] of size n

Filed under: Python on 2023-09-17 22:24:05
#!/usr/bin/python# -*- coding: utf-8 -*-# Python3 program to find maximum# in arr[] of size n# python function to find maximum# in arr[] of size ndef largest(arr, n):   # Initialize maximum element   max = arr[0]   # Traverse array elements from second   # and

Python Program to check if a string is palindrome or not

Filed under: Python on 2023-09-17 22:02:50
#!/usr/bin/python# -*- coding: utf-8 -*-# Program to check if a string is palindrome or notmy_str = 'aibohphobia'# make it suitable for caseless comparison# reverse the stringrev_str = reversed(my_str)# check if the string is equal to its reverseif list(my_str) == list(rev_str):   print 'T

Python program to find H.C.F of two numbers

Filed under: Python on 2023-09-17 22:02:23
#!/usr/bin/python# -*- coding: utf-8 -*-# Python program to find H.C.F of two numbers# define a functiondef compute_hcf(x, y):# choose the smaller number   if x > y:       smaller = y   else:       smaller = x   for i in range(

Python Program to display the Fibonacci sequence up to n-th term

Filed under: Python on 2023-09-17 22:01:16
#!/usr/bin/python# -*- coding: utf-8 -*-# Program to display the Fibonacci sequence up to n-th termnterms = int(input('How many terms? '))# first two terms(n1, n2) = (0, 1)count = 0# check if the number of terms is validif nterms <= 0:   print 'Please enter a positive integer'elif nterm

Python program for Armstrong number

Filed under: Python on 2023-09-17 22:00:40
#!/usr/bin/python# -*- coding: utf-8 -*-# Python program to check if the number is an Armstrong number or not# take input from the usernum = int(input('Enter a number: '))# initialize sumsum = 0# find the sum of the cube of each digittemp = numwhile temp > 0:   digit = temp % 10  &

Python program to find the Factorial of any number

Filed under: Python on 2023-09-17 21:59:54
#!/usr/bin/python# -*- coding: utf-8 -*-# Python program to find the factorial of a number provided by the user.# change the value for a different result# To take input from the usernum = int(input('Enter a number: '))factorial = 1# check if the number is negative, positive or zeroif num < 0:&nbs

Python program to find the largest of three numbers

Filed under: Python on 2023-09-17 21:57:19
#!/usr/bin/python# -*- coding: utf-8 -*-# Python program to find the largest number among the three input numbers# change the values of num1, num2 and num3# for a different result# uncomment following lines to take three numbers from usernum1 = float(input('Enter first number: '))num2 = float(input(

Python program to find the roots of Quadratic equation

Filed under: Python on 2023-09-17 21:56:49
#!/usr/bin/python# -*- coding: utf-8 -*-# Solve the quadratic equation ax**2 + bx + c = 0# import complex math moduleimport cmatha = 1b = 5c = 6# calculate the discriminantd = b ** 2 - 4 * a * c# find two solutionssol1 = (-b - cmath.sqrt(d)) / (2 * a)sol2 = (-b + cmath.sqrt(d)) / (2 * a)print 'The s

Python Program to find the area of triangle

Filed under: Python on 2023-09-17 21:55:27
#!/usr/bin/python# -*- coding: utf-8 -*-# Python Program to find the area of triangle# Uncomment below to take inputs from the usera = float(input('Enter first side: '))b = float(input('Enter second side: '))c = float(input('Enter third side: '))# calculate the semi-perimeters = (a + b + c) / 2# cal

Python program to swap two variables

Filed under: Python on 2023-09-17 21:54:55
#!/usr/bin/python# -*- coding: utf-8 -*-# Python program to swap two variables# To take inputs from the userx = input('Enter value of x: ')y = input('Enter value of y: ')# create a temporary variable and swap the valuestemp = xx = yy = tempprint 'The value of x after swapping: {}'.format(x)print 'Th

program to explain static import for static Field in Java

Filed under: Java on 2023-09-17 15:41:32
// program to explain static import for static Field.import java.util.Scanner;import static java.lang.Math.PI;class StaticImport2{public static void main( String args[ ] ){ double r, a; Scanner sc = new Scanner( System.in );  System.out.print("Enter Radius : "); r = sc.nextD

Program to explain static import statement in Java

Filed under: Java on 2023-09-17 15:40:54
//  program to explain static import statement.import static java.lang.Math.*;//   import static java.lang.Math.sqrt;class StaticImport{public static void main( String args[ ] ){ double a = 3.0, b = 4.0; double c = sqrt( a*a + b*b ); System.out.println(" C = " + c );}} 

Import with * sign example in Java

Filed under: Java on 2023-09-17 15:40:07
//  import with * sign.import  java.util.*;class  ImportTest2{public static void main( String args[ ] ){ double r, a; Scanner sc = new Scanner( System.in );  System.out.print("Enter Radius : "); r = sc.nextDouble();  a = 3.14 * r * r;  Syst

Using class without import in Java

Filed under: Java on 2023-09-17 15:39:27
//  Using class without import.class  ImportTest{public static void main( String args[ ] ){ double  r, a; java.util.Scanner sc = new java.util.Scanner( System.in );  System.out.print("Enter Radius : "); r = sc.nextDouble();  a = 3.14 * r * r; &n

Using class with import example in Java

Filed under: Java on 2023-09-17 15:38:49
//  Using class with import.import java.util.Scanner;class ImportTest2{public static void main( String args[ ] ){ double r, a; Scanner sc = new Scanner( System.in );  System.out.print("Enter Radius : "); r = sc.nextDouble();  a = 3.14 * r * r;  Syste

Visibility control in another package example in Java

Filed under: Java on 2023-09-17 15:38:14
// Program to  Visibility Control in Another Package.// First File ( Base.java ) in package p1package  p1;public class  Base {private int n_pri = 1;int n_def = 2;protected int n_pro = 3;public int n_pub = 4;public Base() { System.out.println("base constructor"); Sy

Program to Visibility Control in Same Package example in Java

Filed under: Java on 2023-09-17 15:37:29
// Program to Visibility Control in Same Package.// First File ( Base.java ) in package p1package p1;public class Base {private int n_pri = 1;int n_def = 2;protected int n_pro = 3;public int n_pub = 4;public Base() { System.out.println("base constructor"); System.out.println("n_p

Program to explain Importing Package example in Java

Filed under: Java on 2023-09-17 15:36:40
//  Program to explain Importing Packagepackage MyPack;public class  Balance {String name;double bal;public Balance(String n, double b) { name = n; bal = b;}public void show() { if(bal<0)  System.out.print("--> "); System.out.println(name + ": 

Program to explain Creating Package in Java

Filed under: Java on 2023-09-17 15:36:05
//  Program to explain Creating Package.package MyPack;class  Balance {String name;double bal;Balance(String n, double b) { name = n; bal = b;}void show() { if(bal<0)  System.out.print("--> "); System.out.println(name + ": Rs. " + bal);}}class 

Program to explain Importing Package in Java

Filed under: Java on 2023-09-17 15:35:29
// Program to explain Importing Package.package  Pack1;public class  First{public void view( ){ System.out.println( "This is First Class." );}}// Second File as (ImportPack1.java in current folder) :import Pack1.*;public class  ImportPack1{public static void main( String args[ ] 

Creating package example in Java

Filed under: Java on 2023-09-17 13:20:18
// Program to explain Creating Package.package  Pack1;class First{public void view( ){ System.out.println( "This is First Class." );}}public class  ImportPack2{public static void main( String args[ ] ){ First f = new First(); f.view();}} Output:This is First Class.

Program to Implement a class from multiple interfaces in Java

Filed under: Java on 2023-09-17 13:18:41
// Program to Implement a class from multiple interfaces.interface  A{void showA();}interface  B {void showB();}class  C  implements  A, B{public void showA(){ System.out.println("showA() of A interface.");}public void showB(){ System.out.println("showB() of B

Polymorphism with interface example in Java

Filed under: Java on 2023-09-17 13:17:59
//  Polymorphism  with interface exampleinterface Shape{void draw();}class Rectangle implements Shape{public void draw(){ System.out.println("Drawing Rectangle.");}}class Triangle implements Shape{public void draw(){ System.out.println("Drawing Triangle.");}}class  Polymorph

Program to explain Inheritance of a interface in Java

Filed under: Java on 2023-09-17 13:16:47
//  Program to explain Inheritance of a interface//  from another interface.interface AInterface{void showA();}interface BInterface extends AInterface {void showB();}class Test  implements BInterface{public void showA(){ System.out.println("showA() of A interface.");}public 

Use fields in interface example in Java

Filed under: Java on 2023-09-17 13:15:33
//  Program to use field in interface.interface AInterface{int  SIZE = 100;void  showA();}class Test  implements  AInterface{public void showA(){ System.out.println("showA() of A interface."); System.out.println("SIZE = " + SIZE);}}class  InterfaceTest2{public

Simple interface example in Java

Filed under: Java on 2023-09-17 13:14:57
//  Program to use Simple Interface.interface  AInterface{void showA();}class Test  implements  AInterface{public void showA(){ System.out.println("showA() of A interface.");}}class  InterfaceTest1{public static void main( String args[ ] ){ Test  t1 = new Test

Program to explain final method restricts in Java

Filed under: Java on 2023-09-17 07:10:08
//  Program to explain final method restricts //  (not allow) the overriding of that methodclass  A{final void display(){ System.out.println(" A\'s display().");}}class  B extends A{// final method can't be override.// void display()void show(){ System.out.println(

Program to explain final class restricts (not allow) in Java

Filed under: Java on 2023-09-17 07:09:35
// Program to explain final class restricts (not allow) // the inheritance from that class.final class A{void display(){ System.out.println(" A\'s display().");}}// final class can't be inherited.// class B extends A // Errorclass B{void display(){ System.out.println(" B\'s display().

Program to explain Polymorphism with abstract class in Java

Filed under: Java on 2023-09-17 07:05:35
//  Program to explain Polymorphism with abstract class.abstract class Shape{abstract void draw();}class Rectangle extends Shape{void draw(){ System.out.println("Drawing Rectangle.");}}class Triangle extends Shape{void draw(){ System.out.println("Drawing Triangle.");}}class  Poly

Program to explain Polymorphism in Java

Filed under: Java on 2023-09-17 07:01:53
//  Program to explain Polymorphism or //  Dynamic Method Dispatch or Run Time Binding.class  Shape{void draw(){ System.out.println("Drawing Shape.");}}class  Rectangle extends Shape{void draw(){ System.out.println("Drawing Rectangle.");}}class  Triangle exten

Method overriding example in Java

Filed under: Java on 2023-09-17 07:00:43
// Program to explain Method Overriding.class  A {int  i,  j;A(int a, int b) { i = a; j = b;}void show() { System.out.println("i and j: " + i + " " + j);}}class  B extends A {int  k;B(int a, int b, int c) { super(a, b); k = c

Method Overloading example in Java

Filed under: Java on 2023-09-17 07:00:19
// Program to explain Method Overloading.class  A {int i, j;A(int a, int b) { i = a; j = b;}void show() { System.out.println("i and j: " + i + " " + j);}}class  B extends A {int k;B(int a, int b, int c) { super(a, b); k = c;}void show(Strin

Hierarchical inheritance example in Java

Filed under: Java on 2023-09-17 06:58:31
//  hierarchical inheritance exampleclass student1{   private String name;   private int rno;      void setname(String name, int rno)   {       this.name = name;       this.rno = rno;   }  &

Use of super keyword to call super class constructor in Java

Filed under: Java on 2023-09-17 06:57:43
// Program to use super keyword to call Super class constructor to // initialize super class instance variablesclass Box {private double width;private double height;private double depth;Box(Box ob) {  width = ob.width; height = ob.height; depth = ob.depth;}Box(doub

Use of this keyword example in Java

Filed under: Java on 2023-09-17 06:56:56
//  Program to use this keywordclass n {   public int i;   int getI() {       return i;   }}class M extends n {   int a, b;   void sum(int a, int b) {       int d = getI();       this.a

Multilevel inheritance example in Java

Filed under: Java on 2023-09-17 06:56:32
//  Program to explain Multilevel Inheritance.class Box {private double width;private double height;private double depth;Box(Box ob) {  width = ob.width; height = ob.height; depth = ob.depth;}Box(double w, double h, double d) { width = w; height = h;

Simple Inheritance Example 2 in Java

Filed under: Java on 2023-09-17 06:56:01
// Simple Inheritance example 2class  A {int i, j;void showij() { System.out.println("i and j: " + i + " " + j);}}class B extends A {int k;void showk() { System.out.println("k: " + k);}void sum() { System.out.println("i+j+k: " + (i+j+k));}}class  Inh

Simple Inheritance Example in Java

Filed under: Java on 2023-09-17 06:55:33
// Simple Inheritance examplepublic class SimpleInheritance{   public static void main(String[] args) {       SubClass ob1 = new SubClass();       ob1.showmsgSuper();       ob1.showmsgSub();   }}class SuperClass{  &

Array of String Example in Java

Filed under: Java on 2023-09-17 06:55:03
// Program to explain the concept of "ARRAY OF STRING".class  StrArray{public static void main( String args[ ] ){ final int days = 7; String str[ ] = { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"   };   for( int  j=0 ; j<day

stringBuffer reverse () method example in Java

Filed under: Java on 2023-09-17 06:54:31
// Program to explain the following StringBuffer function :// StringBuffer reverse()class  Mreverse{public static void main( String args[ ] ){ StringBuffer sb = new StringBuffer( "Java Programming Examples." ); System.out.println( " String = " + sb );  sb.reverse(); Sys

stringBuffer replace () method example in Java

Filed under: Java on 2023-09-17 06:53:46
// Program to explain the following StringBuffer function :// StringBuffer replace( int startIndex, int endIndex, String str )class  Mreplace1{public static void main( String args[ ] ){ StringBuffer sb = new StringBuffer( "Java Programming Examples." ); System.out.println( " String = 

stringBuffer insert(index, obj) function example in Java

Filed under: Java on 2023-09-17 06:53:13
// Program to explain the following StringBuffer function :// StringBuffer insert( int index, Object ob )class  Minsert1{public static void main(String args[ ]){ StringBuffer sb = new StringBuffer(40); sb = sb.insert(0, 'A'); System.out.println(" String 1 = " + sb);  sb

stringBuffer insert() method example in Java

Filed under: Java on 2023-09-17 06:52:17
// Program to explain the following StringBuffer function :// StringBuffer insert( int index, String str )class  Minsert{public static void main( String args[ ] ){ String s = new String( "Java" ); StringBuffer sb = new StringBuffer( " Examples." ); sb = sb.insert( 0, s ); Sy

stringBuffer deleteCharAt() method in Java

Filed under: Java on 2023-09-17 06:51:38
// Program to explain the following StringBuffer function :// StringBuffer deleteCharAt( int loc )class  MdeleteCharAt{public static void main( String args[ ] ){ StringBuffer sb = new StringBuffer( "Java Programming Examples." ); System.out.println( " String = " + sb );  sb 

stringBuffer delete function in Java

Filed under: Java on 2023-09-17 06:51:06
// Program to explain the following StringBuffer function ://StringBuffer delete( int startIndex, int endIndex )class  Mdelete{public static void main( String args[ ] ){ StringBuffer sb = new StringBuffer( "Java Programming Examples." ); System.out.println( " String = " + sb ); &

Use ViewResolver in Spring MVC

Filed under: Spring on 2023-08-27 17:24:38
view resolver is a class in spring framework which allows us to configure urls dynamically ctrl + shift + T to open type in eclipse, search *Viewresolver you will find InternalResourceViewResolver this class will do it automatically.Make a bean of this class in mainController-servlet.xml file (

Map your Controller with the jsp file (Views) in Spring MVC

Filed under: Spring on 2023-08-27 17:24:05
In previous spring topic, we were returning a string from our methods which were written in our controller.In this topic, we are going to see how to map url with the viewNote: all the views will be stores in WEB-INF folder. You can store anywhere but it is recommended that you store all the views in

toString() method in spring buffer in Java

Filed under: Java on 2023-08-23 18:58:36
// Program to explain the following StringBuffer function ://String toString()class  MtoString{public static void main( String args[ ] ){ StringBuffer sb = new StringBuffer( "Java Programming Examples." );  String s = sb.toString(); System.out.println( " String = " + s );&nb

subString() method example in stringBuffer in Java

Filed under: Java on 2023-08-23 18:57:52
// Program to explain the following StringBuffer function ://String substring( int startIndex )//String substring( int startIndex, int endIndex )class  Msubstring1{public static void main( String args[ ] ){ StringBuffer sb1 = new StringBuffer( "Java Programming Examples." );  Sys

setLength() method example in Java

Filed under: Java on 2023-08-23 18:57:03
// Program to explain the following StringBuffer function :// void setLength( int len )class  MsetLength{public static void main(String args[ ]){ StringBuffer sb1 = new StringBuffer("Java Programming Examples."); System.out.println(" String = " + sb1); sb1.setLength(12); Sys

Use of setCharAt() method in Java

Filed under: Java on 2023-08-23 18:56:33
// Program to explain the following StringBuffer function :// void setCharAt( int where, char ch )class  MsetCharAt1{public static void main( String args[ ] ){ StringBuffer sb1 = new StringBuffer( "Java Nrogramming Examples." ); System.out.println( " String Before Replacing = " + sb1 

capacity() method example in Java

Filed under: Java on 2023-08-23 18:56:04
// Program to explain the following StringBuffer function :// int capacity()class  Mcapacity{public static void main( String args[ ] ){ StringBuffer sb1 = new StringBuffer(); StringBuffer sb2 = new StringBuffer( "Java Programming Examples" ); System.out.println( " Capacity = " + 

stringBuffer append example in Java

Filed under: Java on 2023-08-23 18:55:29
// Program to explain the following StringBuffer function :// StringBuffer append( char c )class  Mappend1{public static void main( String args[ ] ){ StringBuffer sb = new StringBuffer( 40 ); sb = sb.append( 'J' ); System.out.println( " String 1 = " + sb );  sb.append( 

stringBuffer() example in Java

Filed under: Java on 2023-08-23 18:54:55
// Program to explain the following StringBuffer function :// StringBuffer()// StringBuffer( int size )// StringBuffer( String str )class  MStringBuffer1{public static void main(String args[ ]){ StringBuffer sb = new StringBuffer("Java");  System.out.println(" sb = " + sb ); 

lastIndexOf() method example in Java

Filed under: Java on 2023-08-23 18:54:29
// Program to explain the following String function :// int lastIndexOf( String str )class  MlastIndexOf{public static void main( String args[ ] ){ String s1 = "Java Programming Examples Java Programming Examples.";    System.out.println( " Last Index of " + 'P' + " = " + s1

index of() method example in Java

Filed under: Java on 2023-08-23 18:54:04
// Program to explain the following String function :// int indexOf(int ch) // int indexOf( String str )class  MindexOf{public static void main(String args[ ]){ String s1 = "Java Programming Examples Java Programming Examples.";    System.out.println(" Index of " + 'P' 

subString() method example in Java

Filed under: Java on 2023-08-23 18:53:38
// Program to explain the following String function :// String substring( int startIndex )// String substring( int startIndex, int endIndex )class  Msubstring{public static void main( String args[ ] ){ String s1 = "Java Programming Examples.";   String s2 = s1.substring( 5 )

valueOf() method example in Java

Filed under: Java on 2023-08-23 18:53:00
//  Program to explain the following String function ://  static String valueOf( double num )class  MvalueOf {public static void main( String args[ ] ){ char  ch[ ] = { 'J', 'A', 'V', 'A' }; String s1 = String.valueOf( ch ); System.out.println( " String 1 : " 

trim() method example in Java

Filed under: Java on 2023-08-23 18:52:29
// Program to explain the following String function :// String  trim()class  Mtrim{public static void main( String args[ ] ){ String s = "            Java Programming Examples.           ".trim(); System.out.print( "String af

toUpperCase() method example in Java

Filed under: Java on 2023-08-23 18:51:59
// Program to explain the following String function :// String toUpperCase()class  MtoUpperCase{public static void main( String args[ ] ){ String s1 = "Java Programming Examples"; String s2 = s1.toUpperCase(); System.out.println( " Original  String : " + s1 ); System.ou

toLowerCase() method example in Java

Filed under: Java on 2023-08-23 18:51:33
// Program to explain the following String function : // String toLowerCase()class  MtoLowerCase{public static void main( String args[ ] ){ String s1 = "Java Programming Examples."; String s2 = s1.toLowerCase(); System.out.println( " Original  String : " + s1 ); Sy

split() method example in Java

Filed under: Java on 2023-08-23 18:51:06
// Program to explain the following String function :// String[ ] split( Stirng regExp )class  Msplit{public static void main( String args[ ] ){ String s1 = new String( "Java Programming Examples" ); String s2[ ] = s1.split( " " ); System.out.println( " String = " + s2[0] ); 

regionMatches() method example in Java

Filed under: Java on 2023-08-23 18:50:39
// Program to explain the following String function :// boolean regionMatches( int startIndex,// String str2, int str2StartIndex, int numChars )class  MregionMatches1 {public static void main(String args[ ]){ boolean b,b1; String s1 = new String("Java Programming Examples.");&nbs

getChars() method example in Java

Filed under: Java on 2023-08-23 18:49:57
// Program to explain the following String function :// void getChars( int sourceStart, int sourceEnd,// char target[], int targetStart )class  MgetChars{public static void main( String args[ ] ){ char  ch[ ] = new char[4]; String s1 = "Java Programming Examples.";  &nb

compareTo() method example in Java

Filed under: Java on 2023-08-23 18:49:18
// Program to explain the following String function :// int compareTo( String str )class  McompareTo{public static void main( String args[ ] ){ String s1 = "JAVA"; String s2 = "JAVA"; String s3 = "Java";    System.out.println( s1 + " compared to " + s2 + " = " + s1

Difference between equals and == operator in Java

Filed under: Java on 2023-08-23 18:48:34
// Program to explain the following String function :// equals versus ==class  MequalsVersusEqualto{public static void main( String args[ ] ){ boolean b; String s1 = "JAVA"; String s2 = "JAVA"; String s3 = "Java"; String s4 = new String( "JAVA" ); String s5 = new S

equalsIgnoreCase() function example in Java

Filed under: Java on 2023-08-23 18:47:45
// Program to explain the following String function :// boolean equalsIgnoreCase( Object str )class  MequalsIgnoreCase{public static void main( String args[ ] ){ String s1 = "JAVA";  String s2 = "JAVA"; String s3 = "Java"; System.out.println( s1 + " equals " + s2 + " = 

length() function example in Java String

Filed under: Java on 2023-08-23 06:58:27
// Program to explain the following String function :// int length()class  Mlength{public static void main( String args[ ] ){ char ch[ ] = { 'J', 'A', 'V', 'A' }; String s1 = new String( ch ); System.out.println( " String = " + s1 ); System.out.println( " Length = " + s1.len

Java Program to use charAt function in string

Filed under: Java on 2023-08-23 06:57:40
// Program to explain the following String function :// char charAt( int where )class  McharAt{public static void main( String args[ ] ){ char ch; String s1 = "Nils";   ch = s1.charAt( 0 ); System.out.println( " Character at 0 : " + ch ); ch = "Java".charAt( 3

Make string using ASCII value in Java

Filed under: Java on 2023-08-23 06:57:05
// Program to explain the following String function :// String( byte asciiChars[ ] )class  MString4{public static void main( String args[ ] ){ char ch[ ] = { 'J', 'A', 'V', 'A' }; String s1 = new String( ch ); byte b[ ] = { 65, 66, 67, 68, 69, 70 }; String s2 = new String( b

Simple string function example in Java

Filed under: Java on 2023-08-23 06:56:05
// Program to explain the following String function :// String(char chars[ ], int startIndex, int numChars)class  MString2{public static void main( String args[ ] ){ char ch[ ] = { 'J', 'A', 'V', 'A' }; String s = new String( ch, 2, 2 ); System.out.println( " String = " + s );&nb

Simple string example in Java

Filed under: Java on 2023-08-23 06:55:35
// Program to explain the following String function :// String( String strObj )class  MString11{public static void main( String args[ ] ){ String s1 = "Nils : " + 5 + 5;  String s2 = "Nils : " + (5 + 5); System.out.println( s1 ); System.out.println( s2 );}}Output:Nils :

Initialise 2D array in Java

Filed under: Java on 2023-08-23 06:54:46
// Program to initialize 2D array with expressionclass  InitTwoDWithExp {public static void main(String args[ ]) { double a[ ][ ] = {   { 0*0, 1*0, 2*0, 3*0 },   { 0*1, 1*1, 2*1, 3*1 },   { 0*2, 1*2, 2*2, 3*2 },   { 0*3, 1*3, 2*3, 3*3 } };&

Jagged array example in Java

Filed under: Java on 2023-08-23 06:54:05
//  Program to explain Jagged Arrayclass  JaggedArray2 {public static void main(String args[ ]) { int ar[ ][ ] = new int[4][ ]; ar[0] = new int[1]; ar[1] = new int[2]; ar[2] = new int[3]; ar[3] = new int[4]; int  i, j, x = 1; for( i=0 ; i &

Jav Program to find sum of two matrices

Filed under: Java on 2023-08-23 06:53:38
// Program to addition of two Matrixclass  MatrixAddition{public static void main( String args[ ] ){ int  i, j; int  c[ ][ ] = new int[3][3];  int  a[ ][ ] = {      {1, 2, 3},     {4, 5, 6},     {7, 8, 9}  };&n

Transpose of the array in Java

Filed under: Java on 2023-08-23 06:51:24
//Program to find transpose of the Matrixclass  MatrixTranspose{public static void main( String args[ ] ){ int i, j; int  b[ ][ ] = new int[3][3];  int   a[ ][ ] = {      {1, 2, 3},    {4, 5, 6},      {7, 8, 9}  }; 

Matrix of array example in Java

Filed under: Java on 2023-08-23 06:50:50
// print simple matrix of arraypublic class PrintingInMatrixFormat{   public static void main(String[] args)   {       int i,j;       int a[][]=new int[3][3];       a[0][0]=10;       a[0][1]=20; 

Iterate 2D array in Java

Filed under: Java on 2023-08-23 06:49:05
// Program to use Two dimensional Arrayclass TwoDArray {public static void main(String args[ ]) { int a[ ][ ]= new int[2][3]; int i, j, x = 1; for(i=0; i<2; i++) {  for(j=0; j<3; j++)   {   a[ i ][ j ] = x;   x++;  } }&

Program for Sum of 2D array elements in Java

Filed under: Java on 2023-08-23 06:48:23
// Sum Of Array Elementspublic class SumOfArrayElements{   public static void main(String[] args) {       int i, j, sum = 0;       int a[][] = {{10, 20, 30}, {40, 50, 60}, {70, 80, 90}};       for (i = 0; i < 3; i++) {  &n

Merge sort example in Java

Filed under: Java on 2023-08-23 06:47:40
// Program to Implement Merge Sortimport java.util.Scanner;public class MergeSort {   /* Merge Sort function */   public static void sort(int[] a, int low, int high)    {       int N = high - low;           &nb

Quick sort example in Java

Filed under: Java on 2023-08-23 06:47:20
// Java Program to Implement Quick Sortimport java.util.Scanner; public class QuickSort {   /** Quick Sort function **/   public static void sort(int[] arr)   {       quickSort(arr, 0, arr.length - 1);   }   /** Quick so

Selection sort example in Java

Filed under: Java on 2023-08-23 06:46:58
// Program to SORT the Array elements using SELECTION SORTclass  SelectionSort{public static void main( String args[ ] ){ int  i, j; int  a[ ] = { 40, 20, 50, 10, 30 };  System.out.print( "\n Unorted Numbers are = " ); for( i=0 ; i<5 ; i++ ) {  Sy

Insertion sort example in Java

Filed under: Java on 2023-08-23 06:46:38
//  Program to SORT the Array elements using INSERTION SORTclass  InsertionSort{public static void main( String args[ ] ){ int  a[ ] = { 0, 20, 40, 10, 50, 30 }; int i, n = 5; System.out.print( " The Unsorted Array is = " ); for( i=1 ; i<=n ; i++ ) {  

Bubble sort example in java

Filed under: Java on 2023-08-23 06:46:12
// Program to SORT the Array elements using BUBBLE SORTclass  BubbleSort{public static void main( String args[ ] ){ int i, j, t; int  a[ ] = { 40, 20, 50, 10, 30 };  System.out.print( "\n Unorted Numbers  are = " ); for( i=0 ; i<5 ; i++ ) {  Syste

Fibonacci series using Array in Java

Filed under: Java on 2023-08-23 06:45:49
//  Program to Print the Fibonacci Series using Array.class  FiboArray{public static void main( String args[ ] ){ int n, i; int  a[ ] = new int[20];   n = 10; a[0] = 0;   a[1] = 1;   for(i=2 ; i<n ; i++)    {  a[

Array Example in C++

Filed under: C++ on 2023-08-20 14:11:47
#include<stdio.h>#include<conio.h>int main(){int i, arr[7]={1,2,3,4,5,6,7};for(i=0; i<10; i++){ printf("\n %d", arr[i]);}} 

All C++ Functions List Alphabatically

Filed under: C++ on 2023-08-20 14:09:09
##define#elif#else#endif#if#ifdef#ifndef#include#pragma pack#pragma#undef BBeginPaint()BitBlt()BOOLBUTTON CCreateCompatibleDC()CreateFontIndirect()CreateHatchBrush()CreatePatternBrush()CreatePen()CreateSolidBrush()CreateWindow() DDispatchMessage()DefWindowProc()DeleteObject()DrawText(

Program to arrange array in Ascending order in Java

Filed under: Java on 2023-08-19 18:39:56
// Arrange Array in Ascending orderpublic class ArrayAscending {   public static void main(String[] args) {       int i, temp, j;       int a[] = {1, 7, 5, 9, 2, 12, 53, 25};System.out.println("Before Ascending order:");for (i = 0; i < 8; i++) {&n

Read array from keyboard in Java

Filed under: Java on 2023-08-19 18:38:03
//  Read array from keyboardimport java.util.*;class  ArrayTest{public static void main( String args[ ] ){ Scanner sc = new Scanner( System.in ); int  i; int  a[ ] = new int[5];  for( i=0 ; i<5 ; i++ ) {  System.out.print( "Enter Value : " );

Simple static Array example in Java

Filed under: Java on 2023-08-19 18:36:19
// Simple static arraypublic class SimpleArray{   public static void main(String[] args)    {       int a[]={10,20,30,40,50};       for(int i=0;i<5;i++)       {           System.out.

How to Add Jar Files in Library of project in IntelliJ Idea

Filed under: Java on 2023-08-19 13:09:43
Hello Developers, If you stuck to find how to add jar files in library of your project in IntelliJ Idea follow below steps:Open your IntelliJ idea and open the project on which you are working.You will see a setting icon on top right corner of your screen. Click on that and select project struc

Do while Loop example in Java

Filed under: Java on 2023-08-18 07:00:44
// Do while exampleclass  DoWhileTest{public static void main( String args[ ] ){ int   i = 1; // 1.  Initialization do {  System.out.print( "  " + i );  i++; // 3.  Increment. }while ( i <= 5 ); // 2.  Test / Condition}}Output: 1 &n

Program to check Armstrong number in Java

Filed under: Java on 2023-08-18 07:00:21
An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. For example, 371 is an Armstrong number since 3**3 + 7**3 + 1**3 = 371.Code// Program to check whether a given Number is// ArmStrong Number or not.class  ArmstrongTest{p

Program to find Strong number in Java

Filed under: Java on 2023-08-18 06:59:13
What is strong number?Strong number is a special number whose sum of the factorial of digits is equal to the original number. For Example: 145 is strong number. Since, 1! + 4! + 5!Code//Program to Check the given Number is STRONG Number or not.// Logic 145 = 1! + 4! + 5!  (i.e.,  145 = 1 +

Program to check palindrome number in Java

Filed under: Java on 2023-08-18 06:57:33
// check given number is palindrom or notpublic class PalindromeNumber {   public static void main(String[] args) {       int n = 1215;       int sum = 0;       int m = n;       while (n > 0) {    

Count number of digits in any given number in Java

Filed under: Java on 2023-08-18 06:55:39
// count number of given digitsclass  NumberOfDigits{public static void main( String args[ ] ){ int n, c;  n = 1234; c = 0; while( n != 0 ) {  n = n / 10;  c++; } System.out.println( " Number of Digits : " + c );}}Output:Number of Digits : 4

Nested while Loop example in Java

Filed under: Java on 2023-08-18 06:54:55
// Nested while loop examplepublic class NestedWhile{   public static void main(String[] args) {       int a = 1, b;       while (a <= 5) {           b = 1;           while (b <= a) {&

While Loop Example in Java

Filed under: Java on 2023-08-18 06:54:25
// simple while loop examplepublic class WhileLoop{   public static void main(String[] args) {       //learning       int a = 1;       while (a <= 5) {           System.out.println(" "+a);  &n

For each loop example 2 in Java

Filed under: Java on 2023-08-18 06:53:53
// for each loop exampleclass  ForEachTest {public static void main( String args[ ] ){  int  ar[ ] = { 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 };   for(int  x : ar)    { System.out.print(x + " ");  x = x * 10;  // no effect on num

For each loop example in Java

Filed under: Java on 2023-08-18 06:53:12
// foreach examplepublic class ForEachLoop {   public static void main(String[] args) {       int arrayname[] = {1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21};//learn       for (int val : arrayname) {           System.out.print

Advance for loop example in Java

Filed under: Java on 2023-08-18 06:52:19
public class AdvancedForLoop {   public static void main(String[] args) {             String s1 = "INDIA";       char s2[] = new char[s1.length()];       for (int i = 0; i < s1.length(); i++) {    

Program to find HCF and LCM of two numbers in Java

Filed under: Java on 2023-08-18 06:51:38
 // Program to find HCF and LCM of Two given Number.import java.util.Scanner;class  HcfAndLcmExample{public static void main( String args[ ] ){ int a, b, i, s, hcf=0, lcm=0; Scanner sc = new Scanner( System.in );  System.out.print( " Enter First Number : " ); a = s

Program to check Prime Number using for loop in java

Filed under: Java on 2023-08-18 06:50:30
// Program to Check the Given Number is PRIME or NOT.class  PrimeTest{public static void main( String args[ ] ){ int i, n; boolean  flag = true;  n = 29;   for( i=2 ; i<=n/2 ; i++ ) {  if( n % i == 0 )  {   flag = false;   

Program to check whether given number is Perfect or not in Java

Filed under: Java on 2023-08-18 06:49:47
Before proceeding to our program code, we must see what is perfect number.What is perfect number?In number theory, a perfect number is a positive integer that is equal to the sum of its positive divisors, excluding the number itself. For instance, 6 has divisors 1, 2 and 3 (excluding itself), and 1 

Program to Print Lucas series in Java

Filed under: Java on 2023-08-18 06:46:47
// Program to Print the Lucas Series.//  1  1  1  3  5  9.....n  Terms.class  LucasTest {public static void main( String args[ ] ){ int n, i , a = 1, b = 1, c = 1, d;   n = 10; System.out.print( " " + a + " " + b + " " + c);  

Print Fibonacci numbers example using Java

Filed under: Java on 2023-08-18 06:46:16
//  Program to Calculate the Fibonacci Series of the Given Number.class  FibonacciTest {public static void main( String args[ ] ){ int n, i , a = 0, b = 1, c = 0;   n = 6; System.out.print( " " + a + " " + b );    for( i=1 ; i<=(n-2) ; i++ )&

Program for getting Factorial of any number in Java

Filed under: Java on 2023-08-18 06:45:28
//Program to Calculate the Factorial of the Given Number.class  FactorialTest{public static void main( String args[ ] ){ int i, n;  n = 5; int f = 1; for( i=n ; i>=1 ; i-- ) {  f = f * i ; } System.out.println( "\n The Factorial of " + n + " is = 

Continue statement example in Java

Filed under: Java on 2023-08-18 06:44:47
// continue staement examplepublic class ContinueStatement{   public static void main(String[] args) {       for (int i = 0; i < 10; i++) {                       if (i % 2 == 0) {        

Label block and break example in Java

Filed under: Java on 2023-08-18 06:44:16
//  Label block and breakpublic class BreakAsGoto{   public static void main(String[] args) {       aBlock:       {           bBlock:           {           

Break statement example in Java

Filed under: Java on 2023-08-18 06:43:35
// Break startment in for loop examplepublic class BreakStatement{   public static void main(String[] args) {       for (int i = 0; i < 10; i++) {           System.out.println(i);           if(i==5){  &

Square Pattern of star logic in Java

Filed under: Java on 2023-08-18 06:42:50
//pattern using for and whilepublic class ForPattern{   public static void main(String[] args) {       int i, j;       for (i = 1; i <= 5; i++) {           for (j = 1; j <= 5; j++) {        &nbs

Print star Patter 2 logic in Java

Filed under: Java on 2023-08-18 06:42:09
// for loop and while looppublic class ForWhile {   public static void main(String[] args) {       for (int i = 1; i <= 5; i++) {           int j = i;           while (j <= 5) {       

Print star patter 1 logic in Java

Filed under: Java on 2023-08-18 06:38:27
// For loop patternpublic class NestedFor {   public static void main(String[] args) {       for (int i = 0; i < 5; i++) {           for (int j = 0; j <= i; j++) {               System.out.print

Sum of Even and Odd using For Loop in Java

Filed under: Java on 2023-08-18 06:37:55
This program will print sum of Even numbers and odd numbers separately.// sum of even odd using while loopclass OddEvenSum {   public static void main(String[] args) {       int i;       int sum = 0;       int sum1 = 0;  &nbs

Get Sum of n numbers using For Loop in Java

Filed under: Java on 2023-08-18 06:36:56
This program will print the sum of n numbers. // sum of numbers using command lineclass  ArguSum{   public static void main( String args[ ] )   { int  s = 0, len; len = args.length;  for( int i=0 ; i<len ; i++ ) {  int  x = Int

Simple for loop example in Java

Filed under: Java on 2023-08-18 06:35:54
Here we have made a simple for loop example in Java.// Simple for loop examplepublic class ForLoop{   public static void main(String[] args) {       for (int i = 0; i < 5; i++) {           System.out.println("Loop : "+i);    &n

String Literal in case of Switch in Java

Filed under: Java on 2023-08-12 20:54:23
//  Program to use String literal in case of switch-case statementimport java.util.*;class  SwitchString{public static void main(String args[ ]){ String dname; Scanner sc = new Scanner( System.in );  System.out.print( " Enter Day Name = " ); dname = sc.next(); 

Type of byte using Switch case in Java

Filed under: Java on 2023-08-12 20:53:15
// Switch case examplepublic class SwitchCase{   public static void main(String[] args) {       int choice = 1;       switch (choice) {           case 0:               System.out.p

Find Odd Even using Switch statement in Java

Filed under: Java on 2023-08-12 20:52:05
// Even odd using switch caseclass  EvenOdd{public static void main(String args[ ]){ for( int i=1 ; i<=10 ; i++ ) {  switch( i )  {   case 1:   case 3:   case 5:   case 7:   case 9:    System.out.println( i + " -

Find Day by day number using switch statement in Java

Filed under: Java on 2023-08-12 20:51:13
// Find day using switch caseclass  SwitchCaseDays {public static void main(String args[ ]){ int day; day = 6; switch( day ) {  case 1:   System.out.println( " Monday." );   break;  case 2:   System.out.println( " Tuesday." );&nbs

Simple Switch case example in Java

Filed under: Java on 2023-08-12 20:50:25
// Simple switch case exampleclass SwitchDemo {public static void main( String args[ ] ){ int  a = 2;  switch (a)  {  case 1 :   System.out.println("One.");   break;  case 2 :   System.out.println("Two.");   break;&

Simple program to check day by day number using if elsein Java

Filed under: Java on 2023-08-12 20:48:24
// Program to show Day Name according to Day Number ( 1 - 7 ) using else-if ladder statement.class  ElseIfDays{public static void main(String args[ ]){ int day; day = 7; if( day == 1 )  System.out.println( " Monday." ); else if( day == 2 )  System.out.println( " Tu

Program to find leap year in Java

Filed under: Java on 2023-08-12 20:46:26
// Program to find given year is leap year or notclass  Leap2{public static void main( String args[ ] ){ int y; y = 2016; if( y % 100 == 0 ) {  if( y % 400 == 0 )   System.out.println( " It is a LEAP Year." );  else   System.out.println( " It is

Nested if-else example in Java

Filed under: Java on 2023-08-12 20:44:38
// Program to find Maximum of Three numbers using Nested-If.class Max3IfElse{public static void main( String args[] ){ int a, b, c, max; a = 23; b = 93; c = 10; if( a > b ) {  if( a > c )   max = a;  else   max = c;     

Nested if example in Java

Filed under: Java on 2023-08-12 20:43:55
//  Nested if examplepublic class NestedIf{  public static void main(String[] args) {  int a = 10;    if(a>0){      if(a<=10){          System.out.println("a --> 0 to 10");      }      &

Program to find Odd Even in Java

Filed under: Java on 2023-08-12 20:42:38
// Simple if else to find even odd numberclass EvenOddTest{public static void main( String args[] ){ int n; n = 23; if( n % 2 == 0 )  System.out.println("Number " + n + " is Even Number." ); else  System.out.println("Number " + n + " is Odd Number." );}}Output:Number 23

Program to Find maximum number in Java

Filed under: Java on 2023-08-12 20:42:01
// Simple if else examplepublic class IfElse{   public static void main(String[] args)    {      int a = 23, b = 47, c;        if(a>b)      {          System.out.println("a is greater than b")

If else example in Java

Filed under: Java on 2023-08-12 20:41:06
//  Simple if else exampleclass IfElse{public static void main( String args[ ] ){ int  n;  n = 23; if( n > 100 ) {  System.out.println( " The number is greater than 100." ); }  else {  System.out.println( " The number is smaller tha

Simple If statement example in Java 2

Filed under: Java on 2023-08-12 20:40:31
// Simple if examplepublic class SimpleIf{   public static void main(String[] args) {       int a = 10;       int b = 20;              if(a>b){           System.out.println("a i

Simple If statement example in Java

Filed under: Java on 2023-08-12 20:39:45
// Simple if exampleclass  SimpleIf{public static void main(String args[ ] ){ int  n;  n = 230; if( n > 100 ) {  System.out.println( " The number is greater than 100." ); }}}Output:The number is greater than 100.

Program to explain Implicit in Java

Filed under: Java on 2023-08-11 19:33:38
// Program to explain Implicit Conversion ( Automatic Type Conversion )class ImplicitConversion{public static void main( String args[ ] ){ Int  i = 2; float  f = 12.33f; byte  b = 1;  double d = 124.097; double  res = ( i - b ) * ( d / f );  &nb

Type Casting Example in Java

Filed under: Java on 2023-08-11 19:32:57
//  Program to explain Type Casting ( Explicit Conversion )class TypeCasting{public static void main( String args[ ] ){ int a; float b = 123.333f; System.out.println( " Before Casting = " + b ); a = (int) b;  System.out.println( " After Casting  = " + a );}}Ou

Program to use Short-Hand Assignment Operators in Java

Filed under: Java on 2023-08-11 19:32:24
//  Program to use Short-Hand Assignment Operators ( +=, -=, *=, /=, %= )class ShortHandAssign {public static void main(String args[ ]) { int a = 1; int b = 2; int c = 3; a += 5; b *= 4; c += a * b; c %= 6; System.out.println("a = " + a); S

Conditional Operators Examples 2 in Java

Filed under: Java on 2023-08-11 19:28:21
// Program to find the Largest of three given numbers using Conditional Operatorclass MaxOf3ConditionalOperator{public static void main( String args[ ] ){ int a, b, c, max = 0; a = 20; b = 30; c = 45;    max = ((a>b) ? ((a>c) ? a : c ) : ((b>c) ? b : c )); 

Conditional Operators Examples in Java

Filed under: Java on 2023-08-11 19:27:39
//Program to explain the concept of Conditional Operator in different styleclass ConditionalOperator{public static void main( String args[ ] ){       int a, b, max; a = 25; b = 14; max = ( ( a > b ) ? a : b ); System.out.print("\nMaximum Value is= " + max )

Boolean Logical Operator Example in Java

Filed under: Java on 2023-08-11 19:26:51
//  Program to use Boolean Logical Operators ( &, |, ^, !  )class  BoolLogic {public static void main(String args[ ]) { boolean a = true; boolean b = false;  boolean c = a | b; boolean d = a & b; boolean e = a ^ b; boolean f = !a;&n

Modulus Operator example in Java

Filed under: Java on 2023-08-11 19:26:14
// Program to use Modulus  operator ( % )class Modulus {public static void main(String args[ ]) { int x = 42; double y = 42.25; System.out.println("x mod 10 = " + x % 10); System.out.println("y mod 10 = " + y % 10);}}Output:x mod 10 = 2 y mod 10 = 2.25

Decrement Operator example in Java

Filed under: Java on 2023-08-11 19:25:39
// Decrement Operator Exampleclass DecrementOperatorExample{public static void main( String args[ ] ){ int a = 10, b = 20 ,c;  c = ( --a ) + ( --b ); //c = ( a-- ) + ( b-- );  System.out.println( " Value of a = " + a ); System.out.println( " Value of b = " + b );&n

Increment Operator Example in Java

Filed under: Java on 2023-08-11 19:25:04
// Increment Operator exampleclass  IncrementOperatoeExample{public static void main( String args[ ] ){ int a = 10, b = 20 ,c;  c = ( ++a ) + ( ++b );  // a++ is Post fix increment // ++b is pre fix increment  System.out.println( " Value of a = " + a );&n

Logical Bitwise Operators Examples in Java

Filed under: Java on 2023-08-11 19:24:32
//Program to use Logical Bitwise Operatorsclass BitwiseOperatorExample{public static void main(String args[ ]) { int a = 3, b = 6, c; System.out.println("a = " + a); System.out.println("b = " + b); c = a & b; System.out.println("a & b = " + c);  c = a 

Relational Operators Examples in Java

Filed under: Java on 2023-08-11 19:23:40
// Program to explain the working of Relational Operatorsclass RelationalOpr{public static void main( String args[ ] ){ int a = 20, b = 10; System.out.println( " a = " + a ); System.out.println( " b = " + b ); System.out.println( " a < b = " + ( a < b ) ); System.out.p

Arithmetic Operators Examples In Java

Filed under: Java on 2023-08-11 19:23:00
// Arithmetic Operator Exampleclass ArithOpr{public static void main( String args[ ] ){ int a = 25, b = 10; float c = 25.5f, d = 4.0f; System.out.println( " a = " + a ); System.out.println( " b = " + b ); System.out.println( " c = " + c ); System.out.println( " d = " + 

Exit() function example in Java

Filed under: Java on 2023-08-11 19:21:52
// Program to use exit() functionclass ExitTest{public static void main( String args[] ){ int a = 10; System.out.println( "AAA" ); if( a == 10 )  System.exit(0); System.out.println( "BBB" );}}Output:AAA

Use of Return in Java

Filed under: Java on 2023-08-11 19:21:20
// Program to use of retuen statementclass ReturnTest{public static void main( String args[] ){ int a = 10; System.out.println( "Before return." ); if( a == 10 )  return; System.out.println( "After return." );}} Output:Before return.

Take Input from User by Using Scanner Class in Java

Filed under: Java on 2023-08-11 19:20:37
This program will show how to use scanner class to take user input.//  Scanner exampleimport java.util.Scanner;class ScannerExample{public static void main( String args[ ] ){ Scanner sc = new Scanner( System.in ); int n;  System.out.print( "Enter a Number : "); n = sc.n

Simple Sum Program Using Windows Command in Java

Filed under: Java on 2023-08-11 19:19:25
// Simple sum example using command lineclass  Sum{public static void main( String args[ ] ){ int  num1, num2, sum; num1 = Integer.parseInt( args[0] ); num2 = Integer.parseInt( args[1] ); sum = num1 + num2; System.out.println( " Sum = " + sum );}}Output: (In comman

Take Input from User through Console in Java

Filed under: Java on 2023-08-11 19:18:43
// Input using Console Exampleimport java.io.*;class ConsoleExample{public static void main( String args[ ] ){ Console cn = System.console(); int n;  System.out.print( "Enter a Number : "); n = Integer.parseInt( cn.readLine() ); System.out.println( "The given number : "

Java Program to convert days into Year, Month, Day

Filed under: Java on 2023-08-11 19:17:44
// Program to convert Total Number of Days into Years, Months, Weeks and remaing days.class  Days{public static void main( String args[ ] ){   int  days, years, months, weeks;   days = 1050; years = days / 365;   days = days % 365;   months

Swapping of Variables without using Third Variable in Java

Filed under: Java on 2023-08-11 19:16:47
// Swapping example without third variableclass SwapWithoutThirdVariable{public static void main( String args[ ] ){ int   a, b; a = 10; b = 20; System.out.print("\nBefore Swapping : " ); System.out.print( a + "   " + b ); a = a + b; b = a - b; a = a 

Swaping of Variables using third Variable in Java

Filed under: Java on 2023-08-11 19:16:00
// Swapping example using third variableclass  Swap{public static void main( String args[ ] ){ int  a, b, t; a = 10; b = 20;  System.out.print( "\nBefore Swapping :" ); System.out.print( a + "   " + b ); t = a; a = b; b = t;  Syst

Declare variable at the end of Java Program

Filed under: Java on 2023-08-11 19:15:13
// declare variable at endclass  DeclareAtEnd{public static void main( String args[ ] ){ msg = "Hello Java Developer..!";       System.out.println("Message : " + msg);}static String msg;}Output:Message : Hello Java Developer..!

How to create Local Constant in Java

Filed under: Java on 2023-08-11 19:14:15
// Program to using final variable within method// to create local constant.class  FinalVar1{public static void main( String args[ ] ){ double r = 10.0, a; final double PI = 3.14159; a = PI * r * r; System.out.println("Area of Circle : " + a);}}Output:Area of Circle : 314.15

Final Variable Example in Java

Filed under: Java on 2023-08-11 19:12:59
//  Program to use final variable to Create constant.class  FinalVar{final static double PI = 3.14159;public static void main( String args[ ] ){ double r = 10.0, a; a = PI * r * r; System.out.println("Area of Circle : " + a);}}Output:Area of Circle : 314.159

Constants in Java

Filed under: Java on 2023-08-11 19:12:08
// Constant exampleclass Constant1{static final int NUMBER_OF_MONTHS = 12;static final double PI = (double) 22 / 7;public static void main( String args[] ){ System.out.println("NUMBER_OF_MONTHS : " + NUMBER_OF_MONTHS ); System.out.println("PI : " + PI );}}Output:NUMBER_OF_MONTHS : 12PI : 3

Dynamic Variable Initiazation in Java

Filed under: Java on 2023-08-11 19:11:40
// Program to show dynamic variable initialization of variableclass  DynInit{public static void main( String args[ ] ){ double a = 8.0, b = 6.0; // c is dynamically initialized double c = Math.sqrt(a * a + b * b); System.out.println("Hypotenuse is " + c);}}Output:Hypotenuse 

Boolean Data Type in Java

Filed under: Java on 2023-08-11 19:09:55
// Boolean variable Exampleclass BoolTest {public static void main(String args[ ]) { boolean b; b = false; System.out.println("b is " + b); b = true; System.out.println("b is " + b); if(b) {    System.out.println("This is executed."); }}}Ou

Character Demo in Java

Filed under: Java on 2023-08-11 19:09:03
// Character exampleclass  CharDemo {public static void main(String args[ ]) { char  aChar, bChar; aChar = 88;   // code for X bChar = 'Y'; System.out.print("aChar and bChar : "); System.out.println(aChar + " " + aChar); aChar++;    //

Java Program Comments

Filed under: Java on 2023-08-11 19:08:22
// Simple example of commentsclass Comments{// Your program begins with a call to main().// this is single line commentpublic static void main( String args[ ] ){ System.out.println("Java Programming Examples");/*   This is multiline comment  with multiple lines*/}}Output:Java Pro

Java Program for Calculating Interest

Filed under: Java on 2023-08-11 19:07:39
// Simple example to calculate Interestclass  CompInterest{public static void main( String args[ ] ){ double a, p, r ,n ,ci; p = 1000; r = 10; n = 3;      a = p * Math.pow(( 1 + ( r / 100.0 ) ), n );      ci = a - p;     System.ou

Java Program for Converting Rupees into Paisa

Filed under: Java on 2023-08-11 19:06:31
// Program to convert ruppes to paisapublic class SimpleConversion{   public static void main(String args[])   {                      double n=56.50;           int a=(int) n;    &n

Java Program for Area Of Triangle

Filed under: Java on 2023-08-11 19:05:40
// Program to find area of triangleclass   AreaTriangle{public static void main( String args[ ] ){ double area, a, b, c, s; a = 3; b = 4; c = 5; s = (a + b + c) / 2; area = Math.sqrt( s * (s-a) * (s-b) * (s-c) ); System.out.println("Area of Triangle is = " + a

Java Program for finding the area of Circle

Filed under: Java on 2023-08-11 19:05:05
// Program to find area of circleclass  AreaCircle{ public static void main( String args[ ] ){ double rad; final double PI = 3.14159; rad = 10.0; double area = PI * rad * rad; System.out.print( "\n Area of Circle is = " + area );}}Output:Area of Circle is = 314.159

Hello World Program in Java

Filed under: Java on 2023-08-11 19:02:38
// Hello World Exampleclass  FirstProgram    {         public static void main( String args[ ] )         {         System.out.println("Hello Java World..!" );         }    }Ou

Arithmetic Operators in SQL

Filed under: SQL on 2023-08-10 06:48:49
Different number-crunching administrators are utilized in SQL to be specific Addition (+), Subtraction (-), Multiplication (*), Division (/), Modulus (%).For the further examples we will be referring to the following base table:Table: BOOKSBookNoNameCostDiscount9871Nancy Drew2005%9560Goosebump25010%

Types of SQL Data Types

Filed under: SQL on 2023-08-10 06:43:40
Types of SQL Data TypesNumeric data type:It includes datatypes like int, tinyint, bigint, float, real, etc.Date and Time data type:It includes datatypes like Date, Time, Datetime, etc.Character and String datatype:It includes data types like char, varchar, text, etc.Unicode character/string datatype

Arrow Function in JavaScript

Filed under: JavaScript on 2023-08-07 19:00:15
In this post, we are going to show you arrow function. Watch the below example carefully.<!DOCTYPE html><html><body><h1>JavaScript Functions</h1><h2>The Arrow Function</h2><p>This example shows the syntax of an Arrow Function, and how to use it.&l

How to Iterate an array elements using For Loop in JavaScript

Filed under: JavaScript on 2023-08-06 23:04:29
In this post, you will see how you can iterate elements of an array in javascript.Note: here we have an array of numbers.We can find the number of elements in this array by using array.length i.e 6. Now we will run for loop six times to print all the elements.All of you know that array starts w

For Loop Iteration In JavaScript

Filed under: JavaScript on 2023-08-06 22:39:18
In this example, we will see for loop iteration. We have taken one blank array. We will push the values in this array using for loop. Below is the complete example of this action.<!DOCTYPE html><html lang="en"><head>   <meta charset="UTF-8">   <meta nam

While Loop example in JavaScript

Filed under: JavaScript on 2023-08-06 22:03:24
In this post we will see while loop in JavaScript. While loop keep working until the condition is true. As soon as the condition is false it stops.For example we have taken one array here and we will push the values in this array with the help of while loop.<!DOCTYPE html><html lang="en">

Return the Remainder from Two Numbers in JavaScript

Filed under: JavaScript on 2023-08-06 21:08:07
There is a single operator in JavaScript, capable of providing the remainder of a division operation. Two numbers are passed as parameters. The first parameter divided by the second parameter will have a remainder, possibly zero. Return that value. Examplesremainder(1, 3) ➞ 1remainder(3, 4) 

Write a code to find Maximum Edge of a Triangle in JavaScript

Filed under: JavaScript on 2023-08-06 21:00:59
Create a function that finds the maximum range of a triangle's third edge, where the side lengths are all integers. Examples:nextEdge(8, 10) ➞ 17nextEdge(5, 7) ➞ 11nextEdge(9, 2) ➞ 10 Notes:We will use this algorithm to find the maximum range of a triangle's third edge(side1 + side2)

Convert Hours into Seconds in JavaScript

Filed under: JavaScript on 2023-08-06 20:57:35
Write a function that converts hours into seconds. Examples:howManySeconds(2) ➞ 7200howManySeconds(10) ➞ 36000howManySeconds(24) ➞ 86400Notes:   60 seconds in a minute, 60 minutes in an hour <script>function howManySeconds(hour){var seconds = hour * 60 * 60 *;} v

Power Calculator in JavaScript

Filed under: JavaScript on 2023-08-06 20:54:31
Create a function that takes voltage and current and returns the calculated power.Examples:circuitPower(230, 10) ➞ 2300circuitPower(110, 3) ➞ 330circuitPower(480, 20) ➞ 9600Notes:Requires basic calculation of electrical circuits. Power = voltage * current; We will use this calculation in 

Return the First Element in an Array in JavaScript

Filed under: JavaScript on 2023-08-06 20:50:56
Create a function that takes an array containing only numbers and return the first element.Examples:getFirstValue([1, 2, 3]) ➞ 1

getFirstValue([80, 5, 100]) ➞ 80getFirstValue([-500, 0, 50]) ➞ -500Notes:The first element in an array always has an index of 0.Code: <script>function 

Convert Age to Days in JavaScript

Filed under: JavaScript on 2023-08-06 20:43:43
Create a function that takes the age in years and returns the age in days.Examples:calcAge(65) ➞ 23725

calcAge(0) ➞ 0

calcAge(20) ➞ 7300 Notes:Use 365 days as the length of a year for this challenge.Ignore leap years and days between last birthday and now.Expect only positive intege

Write a program in JavaScript to find the Area of Triangle

Filed under: JavaScript on 2023-08-06 20:41:33
Write a function that takes the base and height of a triangle and return its area.Examples:triArea(3, 2) ➞ 3

triArea(7, 4) ➞ 14

triArea(10, 10) ➞ 50 We will make a function triArea(base, height) which will take two values as parametersNotes:The area of a triangle is: (base * height)

Convert Minutes into Seconds in JavaScript

Filed under: JavaScript on 2023-08-06 20:35:41
Write a function that takes an integer minutes and converts it to seconds.Examples:convert(5) ➞ 300

convert(3) ➞ 180

convert(2) ➞ 120 Code<script>function convert(minutes){return minutes * 60;  //1 minutes equals to 60 seconds.}convert(5) // output 300convert(3) // output

Return the Sum of Two Numbers in JavaScript

Filed under: JavaScript on 2023-08-06 20:33:00
Create a function that takes two numbers as arguments and returns their sum.Examplesaddition(3, 2) ➞ 5

addition(-3, -6) ➞ -9

addition(7, 3) ➞ 10 Code: <script>function addition(a, b){return a+b;} addition(3, 2); //output 5addition(-3, -6); //output -9addition(7, 3); 

How to sort an associative array by value in PHP

Filed under: PHP on 2023-07-02 21:56:04
The PHP functions asort() and arsort() can be used to sort an array by value. Sort an associative array by value in ascending order You can use the asort() function to sort an associative array alphabetically by value in ascending order, while maintaining the relationship between key and v

How to remove a specific element from an array in PHP

Filed under: PHP on 2023-07-02 21:26:17
If you want to remove an element from an array, you can just use the PHP unset() method. The following example shows you how to remove an element from an array. Example 1: How to remove a specific element from an associative array by key in PHP<?php $languages = array("p"=>"PHP", "j"

How to get a value from an array in PHP

Filed under: PHP on 2023-07-02 21:24:17
If you want to access a value in an indexed, associative, or multidimensional array, you can do it by using the index or the key. Example 1: How to get a value from an array <?php $numbers = array(1, 2, 3, 4, 5); echo $numbers[0];?>Output:1Example 2: How to get a value from

How to get all the keys of an associative array in PHP

Filed under: PHP on 2023-07-02 21:21:53
You can use the PHP array_keys() function to extract all the keys from an associative array. How to get all the keys of an associative array in PHP <?php $languages = array("p"=>"PHP", "j"=>"Java", "a"=>"Ada", "h"=>"HTML"); print_r(array_keys($languages));?>&nbs

How to Populate Dropdown List using Array in PHP

Filed under: PHP on 2023-07-02 21:20:14
In this tutorial, we are going to see how to populate dropdown list using array in PHP. You can simply use the foreach loop to create a <select> list or any drop-down menu that forms the values of an array. How to Populate Dropdown List using Array in PHP <!DOCTYPE html><htm

How to remove null or empty values from an array in PHP

Filed under: PHP on 2023-07-02 21:17:47
You can use the PHP array_filter() function to remove or filter empty values from an array. This function usually filters the values of an array using a callback function. However, if no callback is specified, all values in the array equal to FALSE will be removed, such as an empty string or a NULL 

How to calculate sum of an array in PHP

Filed under: PHP on 2023-07-02 21:16:20
You can use the PHP array_sum() function to calculate the sum of all numeric values in an array. As shown in the following example: How to calculate sum of an array in PHP <?php $arr1 = array(1, 2, 3); $arr2 = array("a" => 1, "b" => 2, "c" => 3); echo array_sum($

How to get random value from an array in PHP

Filed under: PHP on 2023-07-02 21:14:59
In this tutorial, we are going to see how to get random value from an array in PHP. You can use the PHP shuffle() function to randomly shuffle the order of elements or values in an array. The shuffle() function returns FALSE on failure. How to get random value from an array in PHP <?php

How to remove an array element based on key in PHP

Filed under: PHP on 2023-07-02 21:13:13
The unset() function is used to remove an element from an array. The unset() function is used to destroy any other variable and similarly to remove an element from an array. This function takes the array key as input and removes that element from the array. After removal, the associated key and valu

How to download a file in PHP using Curl

Filed under: PHP on 2023-07-02 21:09:16
Here you will find how to download a file using PHP by Using PHP Curl: <?php  $url = 'https://www.mcqbuddy.com/img/user.jpg';     // Initialize the cURL session $session = curl_init($url);     // Initialize the directory name where the f

How to Download file from URL using PHP

Filed under: PHP on 2023-07-02 21:07:35
There are several approaches to download a file from a URL. Some of them are described below: Using file_get_contents() function:file_get_contents() function is used to read a file into a string. This feature uses memory mapping techniques supported by the server and thus improves performance, 

How to open a PDF file in browser with PHP

Filed under: PHP on 2023-07-02 21:05:19
PHP uses standard code to display the pdf file in the web browser. The process of viewing the PDF file involves locating the PDF file on the server. It uses various types of headers to define the composition of the content in the form of Type, Layout, Transfer-Encode, etc. PHP transmits the PDF file

How to compare two dates in PHP

Filed under: PHP on 2023-06-30 06:38:36
Given two dates (date1 and date2) and the task is to compare the given dates. Comparing two dates in PHP is simple when the two dates are in the same format, but the problem arises when the two dates are in a different format. Method 1: How to compare two dates in PHPIf the given dates have the

How to Change Max Size of File Upload in PHP

Filed under: PHP on 2023-06-30 06:33:43
The maximum size of any file that can be uploaded to a website written in PHP is determined by the max_size values, mentioned in the server’s php.ini file. In case of a hosted server, you should contact the hosting server administrator. It is useful to create a local HTTP server for developers.Pro

How to get first day of week in PHP

Filed under: PHP on 2023-06-30 06:32:31
You can use strtotime() function to get the first day of the week using PHP. This function returns the timestamp of the default time variable, then uses date() function to convert the date from the timestamp to a meaningful date.In PHP the week starts with Monday, so if the time string is given as 

How to refresh a page with PHP

Filed under: PHP on 2023-06-30 06:30:12
Here you will find how to refresh a page with PHPYou can use header() function to refresh a web page in PHP. HTTP functions are the functions that manipulate the information sent to the client or browser by the web server before sending any other output.header() function in PHP sends an HTTP header 

How to declare a global variable in PHP

Filed under: PHP on 2023-06-30 06:28:16
Global variables refer to any variable defined outside the function. Global variables are accessible from any part of the script, i.e. inside and outside the function.There are two ways to access a global variable inside a function:Using the global keywordUsing the array GLOBALS[var_name]: It stores

How to Get IP Address of Server in PHP

Filed under: PHP on 2023-06-30 06:26:52
Use the following code if you want to display the IP address of the server. Simply copy the code to a text file and save it as a .php file on the server.For Linux with Apache, use the following code: <?php echo $_SERVER['SERVER_ADDR'];?>For Windows 2008 R2 with IIS 7.5 Server, use:&l

How to get the client IP address in PHP

Filed under: PHP on 2023-06-30 06:24:56
In this tutorial, we are going to see how to get the client IP address in PHP. We often need to collect the client’s IP address to track activity and for security reasons. It is very easy to get the IP address of the visitor in PHP. The PHP variable $_SERVER makes it easy to get the IP address of 

How to check if file exists on remote server PHP

Filed under: PHP on 2023-06-30 06:22:44
In this tutorial, we are going to see how to check if file exists on remote server in PHP. The function file_exists() in PHP allows you to check if a file or a directory exists on the server. But the function file_exists() will not be usable if you want to check the existence of the file on a remote

How to Extract Content Between HTML Tags in PHP

Filed under: PHP on 2023-06-30 06:19:58
In this tutorial, we are going to see how to extract content between HTML tags in PHP. preg_match() function is the easiest way to extract text between HTML tags with REGEX in PHP. If you want to get content between tags, use regular expressions with the preg_match() function in PHP. You can also ex

How to Calculate Age from Date of Birth in PHP

Filed under: PHP on 2023-06-30 06:16:16
In this tutorial, we are going to see how to calculate age from Date of Birth in PHP. Some web applications need to display the user’s age. In this case, you need to calculate the user’s age from the date of birth. We are going to see a PHP code snippet to calculate the age from the date of birt

How to validate Email in PHP?

Filed under: PHP on 2023-04-16 07:46:15
In this tutorial, we are going to see how to validate an email address in PHP. Validating an email address is an action required before submitting the form. It checks if the user has provided a valid email address. Here is the easiest and most effective way to validate an email address in PHP.filter

What are cookies? How to create cookies in PHP?

Filed under: PHP on 2023-04-04 06:38:36
A cookie is a small record that the server installs on the client’s computer. They store data about a user on the browser. It is used to identify a user and is embedded on the user’s computer when they request a particular page. Each time a similar PC asks for a page with a program, it will send

Best PHP Frameworks For Web Development

Filed under: PHP on 2023-03-14 06:40:55
Following are some Frameworks which uses PHP:1. Laravel2. Phalcon3. Fat-Free Framework4. CodeIgniter5. Laminas Project6. CakePHP7. FuelPHP8. Slim9. PHPixie10. Symfony11. Yii

Introduction to PHP Language

Filed under: PHP on 2023-03-14 06:40:00
PHP language stands for “PHP: Hypertext Pre-processor”The most widely-used, open-source, and script language. All PHP scripts are executed on the server. It can be run on different platforms like:WindowsLinuxUnixMac OS X etc.It is used for almost every server likeApache It also support

Find the largest number among 3 numbers in C++

Filed under: C++ on 2023-03-13 06:45:26
We can use below C++ program to find out the largest number among three numbers.#include <iostream>
using namespace std;

int main() {
    float First_Number, Second_Number, Third_Number;

    cout << "Enter three numbers: ";
    cin >>

Comments in SQL

Filed under: MySQL on 2023-03-02 06:17:40
A comment in any text which is ignored by the compiler and is not executed. It is used to convey some information to the user and used for documentation only, to describe the command's purpose in an application. Comments can be placed anywhere in the statement between any keywords, parameters or pun

Introduction to Structure Query Language (SQL)

Filed under: MySQL on 2023-03-02 06:15:51
SQL (Structure Query language) is a standard database language for creating, maintaining, manipulating, and destroying relational database. QueryA query is a request/question expressed in a formal way with intent to get some result .A 'SELECT is a query used for retrieval of data.Relational Dat

Vegetable names and their hindi names

Filed under: General Awareness on 2022-12-31 11:59:00
Sl No.Vegetable Name EnglishVegetable Name Hindi1Tomatoटमाटर (Tamatar)2Brinjalबैगन (Baigan)3Potatoआलू (Aaloo)4Turmericहल्दी (Haldi)5Green Chilliहरी मिर्च (Haree mirch)6Garlicलहशुन (Lahshun)7Radishमूली (Mooli)8Onionप्याज (P

Animals and Young ones

Filed under: English on 2022-12-31 11:32:21
In the following table, we will see what young ones of bodies are called. AnimalsYoung onesCowCalfHorsePonyCatKittenSheepLambButterflyCaterpillarInsectLarvaDogPuppyHenChickenLionCubDuckDucklingManChildI hope you liked it. Learn English Mcqs here. Share this with everyone for spreading knowledge

Individual and Groups

Filed under: English on 2022-12-31 11:29:08
In this post, we will see when anybody is single then what do we call it, when it is in group then what do we call him. Individual GroupsSailorsCrewCattleHerdFlowerBouquetGrapesBunchSingleChorusSoldierArmySheepFlockRiderCavalcade BeesSwarmManCrowdArtistTroupeFishShoalNomadsHorde 

Quantity and Unit in physics

Filed under: Physics on 2022-12-31 11:25:27
Following are the quantities and units in physics.QuantityUnitLengthMeterForceNewton EnergyJouleResistanceOhmVolumeLitreAngleRadiansPowerWattPotentialVoltTimeSecondCurrentAmpereLuminosity CandelaWorkJoulePressurePascalAreaHectareTemperature DegreesConductivity MhoMagnetic fieldOr

Instruments and mesurements

Filed under: Physics on 2022-12-31 11:20:05
Following are the instruments and measurements.InstrumentsMeasurementsBarometerPressureThermometerTemperatureAnemometer Wind vane OdometerSpeedScaleLengthBalanceMassRain GaugeRainHygrometerHumidityAmmeterCurrentScrew gauge thicknessSeismograph Earthquake Sphygmomano meter&nb

Sangam Age History | Indian History

Filed under: History, Medieval History on 2022-12-18 12:11:51
South of the Deccan plateau, the land between the hills of Venkatam and Kanyakumari is called Tamizhakam or TamilahamSangam poem's mentionSangam poems mention muvendar, i.e., the three chiefs of the three ruling families that of the Cheras, the Cholas and the Pandyas the there had their strongholds 

How to sort elements of an array in descending order in PHP?

Filed under: PHP on 2022-11-19 12:32:53
The below program is to sort elements of an array in descending order using PHP sort() function. The PHP echo statement is used to output the result on the screen. An array is a single variable which can store multiple values at a time.sort() function in PHPExample<!DOCTYPE html><html>&l

Program to find the sum of elements in an Array in PHP

Filed under: PHP on 2022-11-19 12:30:07
The below program is to find the sum of elements in an array. The PHP echo statement is used to output the result on the screen. An array is a single variable which can store multiple values at a time.array_sum() function in PHP Example<!DOCTYPE html><html><body><?php  

How to find the product of elements in PHP array

Filed under: PHP on 2022-11-18 20:51:52
The below program is to find the product of elements in an array. The PHP echo statement is used to output the result on the screen. An array is a single variable which can store multiple values at a time.array_product() function in PHPExample<!DOCTYPE html><html><body><?php &nb

How to convert a string into Array elements in PHP

Filed under: PHP on 2022-11-17 06:48:22
The below program is to split a string as array elements based on delimiter using PHP explode() function. The PHP echo statement is used to output the result on the screen. An array is a single variable which can store multiple values at a time. The PHP explode() function is used to break a string i

How to join the array elements into a String

Filed under: PHP on 2022-11-17 06:45:06
The below program is to combine the array elements into a string with given delimiter using PHP join() function. The PHP echo statement is used to output the result on the screen. An array is a single variable which can store multiple values at a time. The PHP join() function is used to get a string

How to merge two arrays in a new array

Filed under: PHP on 2022-11-17 06:42:20
The below program is to merge two arrays into a new array using PHP array_merge() function. The PHP echo statement is used to output the result on the screen. An array is a single variable which can store multiple values at a time. The PHP array_merge() function is used to merge one or more arrays i

Remove The Duplicate Values From An Array in PHP

Filed under: PHP on 2022-11-16 13:51:50
The below program is to remove the duplicate values from an array using PHP array_unique() function. The PHP echo statement is used to output the result on the screen. An array is a single variable which can store multiple values at a time. The PHP array_unique() function is used to remove the dupli

PHP Program for checking Palindrome number

Filed under: PHP on 2022-11-16 13:41:54
The below program checks for a Palindrome number using a loop. The PHP echo statement is used to output the result on the screen. A number is called as a Palindrome number if the number remains same even when its digits are reversed.Palindrome Number:abcde = edcbaExample: 24142, 1234321, etc.Example

PHP Program to check Armstrong number

Filed under: PHP on 2022-11-16 13:39:41
The below program checks for an Armstrong number using a loop. The PHP echo statement is used to output the result on the screen. A number is called as an Armstrong number if the sum of the cubes of its digits is equal to the number itself.Armstrong Number:abc = (a*a*a) + (b*b*b) + (c*c*c)Example: 0

PHP Program to print table of any number?

Filed under: PHP on 2022-11-16 13:36:32
The below program prints table of a number using a loop. The PHP echo statement is used to output the result on the screen.Example<!DOCTYPE html><html><body><?php    $num = 9;  for($i=1; $i<=10; $i++)   {$product = $i*$num;echo "$num * $i = $product" 

How to check prime number in PHP?

Filed under: PHP on 2022-11-16 13:34:57
The below program checks if a number is a prime or a composite number. The PHP echo statement is used to output the result on the screen.Example<!DOCTYPE html><html><body><?php$num = 13;  $count=0;  for ( $i=1; $i<=$num; $i++)  {  if (($num%$i)==0)  {

PHP Program To Print Sum Of Digits

Filed under: PHP on 2022-11-16 13:33:14
The below program gives the sum of two variables x and y. The PHP echo statement is used to output the text and sum value to the screen. In a similar way, codes can be written to get a sum of multiple variables in PHP.Example<!DOCTYPE html>
<html>
<body>
 
<?php
$txt1 

PHP Program for finding the frequency of numbers in given array

Filed under: PHP on 2022-11-15 10:58:49
This program is useful for finding how many times any number is placed in any array. Suppose we have an array with elements as follows: $a = array (54,85,92,54,16,92,48);Output will be: 54 occurs 2 times 85 occurs 1 times 92 occurs 2 times 16 occurs 1 times 48 occurs 1 

PHP Program to Separate Zeros from the given Array elements

Filed under: PHP on 2022-11-15 10:51:43
Hello guys, this program is used to find all the zeros in any given array and shift those zeros in the last for example. Given array: 1 8 5 0 4 0 5 1 0 0 4 Output: 1 8 5 4 5 1 4 0 0 0 0Program:://To separate zeros from the given array elements<html>     <head>&nb

How to convert decimal numbers to binary in PHP

Filed under: PHP on 2022-11-15 10:45:25
This program is written is PHP and HTML to show how to convert decimal number to binary number. Note- there is a inbuilt function in PHP which is used for converting decimal numbers to binary. decbin() function is used for this purpose. Program::// To convert Decimal number into Binary num

Rules for naming variable in PHP

Filed under: PHP on 2022-10-31 21:30:28
A variable starts with the $ sign, followed by the name of the variableA variable name must start with a letter or the underscore characterA variable name cannot start with a numberA variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ )Variable names are case-sen

Explain NULL in PHP

Filed under: PHP on 2022-10-31 21:28:10
In PHP, the special data type NULL is used to indicate the presence of solely the NULL value. It cannot have any other value assigned to it.PHP allows for the declaration of NULL in one of two ways, as illustrated below:$var = NULL:Or$var = null;In PHP, the two aforementioned syntaxes function corre

What definition does PHP give to constants?

Filed under: PHP on 2022-10-31 21:27:42
Utilizing PHP's define() function makes defining constants simple. The values of the constants can be simply defined and obtained using this function.Constants cannot be modified after definition, as the name implies. It is not necessary for them to begin with the standard $ sign as is done in PHP s

What kinds of constants are predefined in PHP?

Filed under: PHP on 2022-10-31 21:27:13
The following are some of the most popular constants in PHP:_METHOD_: Displays the class nameCLASS_: Provides the class name.FUNCTION_: Indicates the function name.LINE_: Indicates the working line number.FILE_: Displays the file name and its path.

Types of variable in PHP

Filed under: PHP on 2022-10-31 21:26:29
The following list of PHP's eight main data types:A named, sorted collection of data is called an array.A logical value is a boolean (True or False)Double: Numbers with floating points, like 5.1525Whole numbers without a floating point represent integers.An object is a class instance that includes d

What does PEAR in PHP stand for?

Filed under: PHP on 2022-10-31 21:25:08
PHP Extension and Application Repository is referred to as PEAR. All of the reusable PHP components are housed in one of the frameworks and acting repositories. It not only contains some of the PHP libraries but also gives you a straightforward interface to set up packages automatically.Learn PHP MC

What is the primary use of PHP?

Filed under: PHP on 2022-10-31 21:23:56
There are many applications for PHP for developers. The following are some of the most popular ideas that PHP provides:It is really simple to grant a website's necessary content-restricted access using PHP.Users can access certain cookies and set them in accordance with their needs.It is simple to d

Explain rand() function in PHP

Filed under: PHP on 2022-10-31 21:20:55
Hello guys, I am Pritvik Sharma. In this post, I am going to tell you what rand() function does in case of PHP. rand() function is inbuilt function in PHP which is used to generate a random integer. If you write rand() without its minimum and maximum value it will generate a random number from 

How to Check Website Availability with PHP

Filed under: PHP on 2022-10-30 21:30:30
Hello programmers, In this post, we are going to see how we can check website is active or not. We will make it possible with PHP and Curl. The following PHP script helps you to check if your website is online and available. If you want to check the status of your website, make a cURL request t

How to Generate Random String in PHP

Filed under: PHP on 2022-10-30 20:51:33
In this tutorial, we are going to see how to generate a random string in PHP. We can achieve that by storing all possible letters in a string and then generate a random index from 0 to the length of the string -1. As shown in the following code.Generate random string in php<?php 

function getR

Program for Factorial in PHP with PHP "for loop"

Filed under: PHP on 2022-10-30 19:47:51
In this post, we are going to see how to write a PHP function to calculate the factorial of a given number in PHP using for loop. The factorial of a number is the product of all integers between 1 and itself.Code<?php
  function fact($n){ 
    $f = 1; 
    for ($i = 1;

How to check if a URL is valid in PHP

Filed under: PHP on 2022-10-30 19:44:19
In this tutorial, we are going to see how to check if a URL is valid in PHP. When a URL is submitted, it is very important to check if this URL is valid or not before performing any action. Here we are going to see how to check if a URL is valid in PHP using filter_var() function with FILTER_VALIDAT

Point to be remembered while programing in C++

Filed under: C++ Interview Questions on 2022-10-30 12:05:56
It is case sensitive, means it differentiates between uppercase letters and lowercase letters.Program must be written in small letters only, so keep your caps lock always off.All entered data is stored in variables. Variables are named memory locations. There are different types of variables, to be 

Data types in C++

Filed under: C++ Interview Questions on 2022-10-30 12:05:30
int - to store integer data. short, long and unsigned (int, long, short) are two variety of integers which can store integer data in diferent rangesfloat - to store real numbersdouble - to store real number with more precision than floatchar - to store a single letter or symbols.To store a word or s

Header file in C++

Filed under: C++ Interview Questions on 2022-10-30 12:04:59
Actually the C++ commands are defined in different file which are called header files. When we use a command we must include the header file where it is defined. We include it as #include<iostream.h> where "iostream.h" is a header file. This way we can include as many header files as we need. 

Explain South America continent

Filed under: Geography on 2022-10-24 09:51:00
South America is the fourth largest continent in the world by land area. And the third most populous in the world. Furthermore, it is in the southern hemisphere, with the exception of a small area of the northernmost part of the continent.Moreover, it is present completely in the western hemisphere.

Explain North America continent

Filed under: Geography on 2022-10-24 09:50:31
North America has the largest land area in the world at number 3. It is the fourth largest continent in the world according to its population. It is also said sometimes a subcontinent of the Americas, North America is a home for the longest land border in the whole world.These land borders are commo

Explain Europe continent

Filed under: Geography on 2022-10-24 09:50:00
Europe is the third continent with the highest population in the whole world. Furthermore, it is also the sixth-largest continent by its land area. Although, Europe is said to be a separate continent due to cultural and linguistic variations.Europe is a home for more than 10% of the total population

Explain Australia continent

Filed under: Geography on 2022-10-24 09:49:10
Australia is the smallest continent in the world. It is the second continent that has the least population.The word Oceania also comes in use for describing this region in order to make it different from the country of Australia. However, Oceania is not a continent, it is a continental grouping inst

Explain Asia Continent

Filed under: Geography on 2022-10-24 09:48:37
Asia is the largest Continent on the world map continents, by its population and land area at the same time. Moreover, it has 30% of the world’s land area. Near about 60% of the world’s population is living in Asia.Asia has the longest coastline from all the continents. Moreover, it has a very d

Explain Antarctica Continent

Filed under: Geography on 2022-10-24 09:47:49
It is at the South Pole, it does not have any countries or even doesn’t have any permanent population. Furthermore, it is only used for the scientific base.On the world map continents, Antarctica is the fifth-largest continent by its area of land. On the other hand, it is also a continent with the

Explain Africa Continent

Filed under: Geography on 2022-10-24 09:46:21
On the world map continents, Africa is the second-largest continent the land area along with the population. Furthermore, the equator runs through Africa and it runs in the mid-point of the continent. Moreover, near about one-third, part of Africa is present in the southern hemisphere.Africa holds u

Difference between include () and require() function

Filed under: PHP on 2022-10-09 08:25:52
include() functionThis function is used to copy all the contents of a file called within the function, text wise into a file from which it is called.When the file is included cannot be found, it will only produce a warning (E_WARNING) and the script will continue the execution.require() function:The

For each loop in PHP

Filed under: PHP on 2022-10-09 07:42:53
The foreach statement is a looping construct that is used in PHP to iterate and loop through the array data type.The working of foreach is simple, with every single pass of the value, elements get assigned a value, and pointers are incremented. This process is repeatedly done until the end of the ar

Does JavaScript interact with PHP?

Filed under: PHP on 2022-10-08 13:50:29
JavaScript is a client-side programming language, whereas PHP is a server-side scripting language. PHP has the ability to generate JavaScript variables, and this can be executed easily in the browser. Thereby making it possible to pass variables to PHP using a simple URL.

What are traits in PHP?

Filed under: PHP on 2022-10-08 13:50:05
Traits are a mechanism that lets you create reusable code in PHP and similar languages where multiple inheritances are not supported. It’s not possible to instantiate it on its own.A trait is intended to reduce the limitations of single inheritance by enabling a developer to reuse sets of methods 

Types of errors in PHP

Filed under: PHP on 2022-10-08 13:48:26
The 3 main types of errors in PHP are:Notices: Notices are non-critical errors that can occur during the execution of the script. These are not visible to users. Example: Accessing an undefined variable.Warnings: These are more critical than notices. Warnings don’t interrupt the script execution. 

What is Parser in PHP?

Filed under: PHP on 2022-10-08 13:47:46
A PHP parser is software that converts source code into the code that computer can understand. This means whatever set of instructions we give in the form of PHP code is converted into a machine-readable format by the parser.You can parse PHP code with PHP using the token_get_all() function.

PHP and HTML interact

Filed under: PHP on 2022-10-08 13:42:18
PHP scripts have the ability to generate HTML, and it is possible to pass information from HTML to PHP.PHP is a server-side language whereas HTML is a client-side language. So PHP executes on the server-side and gets its results as strings, objects, arrays, and then we use them to display its values

Disadvantages of PHP Language

Filed under: PHP on 2022-10-08 13:41:19
The cons of PHP are:PHP is not suitable for giant content-based web applications.Since it is open-source, it is not secure. Because ASCII text files are easily available.Change or modification in the core behavior of online applications is not allowed by PHP.If we use more features of the PHP framew

Rules for naming a PHP variable

Filed under: PHP on 2022-10-08 08:40:21
The following two rules are needed to be followed while naming a PHP variable:A variable must start with a dollar symbol, followed by the variable name. For example: $price=100; where price is a variable name.Variable names must begin with a letter or underscore.A variable name can consist of letter

What are the different types of variables present in PHP?

Filed under: PHP on 2022-10-08 08:36:49
There are 8 primary data types in PHP which are used to construct the variables. They are:Integers: Integers are whole numbers without a floating-point. Ex: 1253.Doubles: Doubles are floating-point numbers. Ex: 7.876Booleans: It represents two logical states- true or false.NULL: NULL is a special ty

Is PHP a case-sensitive language?

Filed under: PHP on 2022-10-08 08:35:53
PHP can be considered as a partial case-sensitive language. The variable names are completely case-sensitive but function names are not. Also, user-defined functions are not case-sensitive but the rest of the language is case-sensitive.For example, user-defined functions in PHP can be defined in low

What is a session in PHP?

Filed under: PHP on 2022-10-08 08:34:46
A session in PHP is a way to store information to be used across multiple pages of an entire website. The information is not stored on the user’s computer, unlike cookies. In a temporary directory on the server, a file will be created by the session where registered session variables and their val

Difference between the database and the table

Filed under: MySQL on 2022-10-07 11:30:51
There is a major difference between a database and a table. The differences are as follows:Tables are a way to represent the division of data in a database while the database is a collection of tables and data.Tables are used to group the data in relation to each other and create a dataset. This dat

Difference between MySQL and SQL?

Filed under: MySQL on 2022-10-07 10:54:10
SQL is known as the standard query language. It is used to interact with the database like MySQL. MySQL is a database that stores various types of data and keeps it safe.A PHP script is required to store and retrieve the values inside the database.SQL is a computer language, whereas MySQL is a softw

What are the technical specifications of MySQL?

Filed under: MySQL on 2022-10-07 10:53:17
MySQL has the following technical specifications -Flexible structureHigh performanceManageable and easy to useReplication and high availabilitySecurity and storage managementDriversGraphical ToolsMySQL Enterprise MonitorMySQL Enterprise SecurityJSON SupportReplication & High-AvailabilityManageab

What is MySQL?

Filed under: MySQL on 2022-10-07 07:40:20
MySQL is a multithreaded, multi-user SQL database management system which has more than 11 million installations. It is the world's second most popular and widely-used open source database. It is interesting how MySQL name was given to this query language. The term My is coined by the name of the da

HTML Unclosed Tags and Meta Tags

Filed under: HTML Interview Questions on 2022-10-06 20:16:21
HTML tags are like keywords which defines that how web browser will format and display the content. With the help of tags, a web browser can distinguish between an HTML content and a simple content. HTML tags contain three main parts: opening tag, content and closing tag. But some HTML tags are uncl

What are the features of HTML?

Filed under: HTML Interview Questions on 2022-10-06 20:08:16
1) It is a very easy and simple language. It can be easily understood and modified.2) It is very easy to make an effective presentation with HTML because it has a lot of formatting tags.3) It is a markup language, so it provides a flexible way to design web pages along with the text.4) It facilitate

What are the HTML versions used so far?

Filed under: HTML Interview Questions on 2022-10-06 19:58:25
Since the time HTML was invented there are lots of HTML versions in market, the brief introduction about the HTML version is given below:HTML 1.0: The first version of HTML was 1.0, which was the barebones version of HTML language, and it was released in1991.HTML 2.0: This was the next version which

First round table conference Indian History

Filed under: History on 2022-09-15 07:21:47
Between November 1930 and January 1931, London hosted the first Round Table Conference.This was the first conference that the British and Indians organized on an equal status.The conference was boycotted by Congress and a few notable business leaders, but many other Indian groups were present.Rettam

While loop in python

Filed under: Python on 2022-08-31 16:27:46
In python , there are two type of loops-- for loop- while loopwhile loop are simple loop which run until the condition will not become false Syntax :- while(condition):body of whileProgrami=20print("While loop start")while(i>10):print(i)i=i-1print("While loop ends")Output-While loop sta

What is Break statement in python

Filed under: Python on 2022-08-31 16:25:55
There are two type of loop in python -- for loop- while loop-At the time of execution of loop, if we want to terminate the loop before its actual termination point then we use break inside loop or we can say break is used to terminate the loop and resume the next instruction in the program.- break i

Return list by function in python

Filed under: Python on 2022-08-31 16:24:28
In function some times we need to return the value at back to the calling point of the function so that the return value is further used in program , generally in other programming like C language, we only return one value but in python we return number of values.- for returning the items we have a 

Write a program to add two numbers in python

Filed under: Python on 2022-08-31 16:23:22
Program code#add two number by seperate functiondef add(a,b):return a+ba=int(input("Enter first numbern"))b=int(input("Enter second numbern"))#add and printprint("Sum is "+str(a+b))#add by function callingans=add(a,b)print("sum is "+str(ans))print(add(a,b))Output-Enter first number2Enter second numb

How to add all number in list in python

Filed under: Python on 2022-08-31 16:22:04
For calculating the sum of all numbers in the list in python, firstly we are aware of the list in python. list is mutable data type in python which hold a collection of items of different type.example -we have a list mylist=[1,2,3,4,5,6] and sum of all numbers in this list is :- 21 pr

Increment and decrement operator in python

Filed under: Python on 2022-08-31 16:20:51
In other programming language like C,C++, JAVA, we have a increment(++) and decrement(--) operator which increase and decrease the value respectively.example -a=3a++a will become 4a--a--a will become 2-But in python this type of operation is not validprogram -a=3a++print(a)a--a--print(a)output- 

What is "Set" in python

Filed under: Python on 2022-08-31 16:20:13
Set in python are also similar as the list but in set items can never be repeated but in list items may repeated. Set is a immutable data type because in set , items value are not changes or index operation is not allowed.Even in set any kind of index operation is not allowed.Example of set:- S

What are the problems with TCP IP?

Filed under: Computer on 2022-08-29 06:58:56
TCP can not keep segment data secure against the message eavesdropping attacks. TCP transports stream data used in the application layer. Since TCP does not provide any data encryption functions, anyone can gain any valuable information. TCP can not protect connections against the unauthorized acces

How TCP IP is made secure?

Filed under: Computer on 2022-08-29 06:58:09
TCP is a reliable protocol that guarantees delivery of individual packets from the source to the destination. This is accomplished through the use of an acknowledgement system where the receiving system informs the sender that it has received the packet successfully.

What is TCP IP security?

Filed under: Computer on 2022-08-29 06:57:48
For information on installing and the initial configuration of TCP/IP, refer to the Transmission Control Protocol/Internet Protocol section in Networks and communication management. For any number of reasons, the person who administers your system might have to meet a certain level of security.

Type casting in python

Filed under: Python on 2022-08-26 13:27:54
What is type casting -Conversion of one data type to another type is called type casting that means in programming at runtime we change the type of the data or variable which store data.Possible Type casting -int to floatfloat to intint to stringnumeric string to intlist to stringlist to setset to l

List to string conversion in python

Filed under: Python on 2022-08-26 13:26:46
String and list both are the different data type of different domain and structure of both data type is different. So when we want to convert list to string, we must aware of string as well as list in python.Example of conversion- List=['Hello','String']And we want to make a string which is loo

String to list conversion in python

Filed under: Python on 2022-08-26 13:25:41
String and list both are the different data type of different domain and structure of both data type is different. So when we want to convert string to list, we must aware of string as well as list in python.Example of conversion-String1='Mytext'And we want to make a list which is look like �List=

When did Panchayati Raj start in India?

Filed under: Politics on 2022-08-24 11:20:51
The Panchayati Raj Institution was formalized by a constitutional amendment in 1992. Prior to this, the institution existed in a few states in India. Panchayati Raj is a system of local self-government in India. It has three tiers,—Gram Panchayat (village level), Panchayat Samiti (block level), an

What are the advantages of Panchayati Raj System?

Filed under: Politics on 2022-08-24 11:19:19
Panchayati Raj System is a three-tier system of decentralized governance in India. It was introduced in 1992 by the then Prime Minister, P. V. Narasimha Rao. The system consists of Village Panchayats at the base, Intermediate Panchayats at the block level, and District Panchayats at the district lev

What are the significance of Panchayati Raj?

Filed under: Politics on 2022-08-24 11:18:48
Panchayati Raj is a system of local government in India that was originally instituted by the Constitution (73rd Amendment) Act, 1992. The Panchayati Raj system has three tiers of government: the Gram Panchayat (village level), the Mandal or Block Panchayat (intermediate level), and the Zila Parisha

What are the objectives of Panchayati Raj?

Filed under: Politics on 2022-08-24 11:18:23
Panchayati Raj is a system of local self-government in India. It has three tiers at the village, taluk/Mandal, and district levels. The panchayat is the village-level institution while the taluka/Mandal and district are intermediate and upper-tier respectively.The main objectives of Panchayati Raj a

What are the functions of Panchayati Raj?

Filed under: Politics on 2022-08-24 11:16:40
Panchayati Raj, or the village council, is a form of local self-government in India. It is a three-tier system, with the village panchayat at the bottom, the taluka panchayat at the intermediate level, and the Zila Parishad at the top.The village panchayat is the primary unit of Panchayati raj and i

What are the three tiers of Panchayati Raj?

Filed under: Politics on 2022-08-24 11:16:13
The Panchayati Raj system is a three-tier system of local government in India. The first tier is the Gram Panchayat, which is the local village council. The second tier is the intermediate Panchayat Samiti, which is a regional body. The third and final tier is the Zila Parishad, which is the distric

What are Panchayati Raj Institutions?

Filed under: Politics on 2022-08-24 11:15:32
Panchayati Raj Institutions (PRIs) are village, district, and block level self-government bodies in India. They were first established in 1992 by the 73rd Amendment to the Indian Constitution.Panchayati Raj Institutions are responsible for various tasks including water and sanitation, health, educat

How do Panchayati Raj works?

Filed under: Politics on 2022-08-24 11:15:04
The Panchayati Raj system is a three-tier system of governance in India. The system was first introduced by the Constitution (73rd Amendment) Act, 1992. The Panchayati Raj system is composed of the Gram Panchayat (village level), the Mandal Parishad (block level), and the Zila Parishad (district lev

Why Panchayati Raj system is important in India?

Filed under: Politics on 2022-08-24 11:14:30
The Panchayati Raj system is a key part of India’s democratic setup. It ensures that decisions are taken at the grassroots level and that everyone has a say in how their village or town is run. This system of local self-government is important for several reasons.Firstly, it ensures that people ha

What is List in python

Filed under: Python on 2022-08-23 13:39:30
List is a mutable collection of the elements which belongs to different class of the data type, item in list are separated by comma (,) and list is enclosed in square brackets ([]),.List are very much similar to the array in c , but the major difference in both list and array in c is that item in li

What is tuple in python

Filed under: Python on 2022-08-23 13:37:20
Tuple in python also a sequence data type similar as list, item in tuple is separated by comma(,) and enclosed by parentheses.Tuple is immutable that means in tuple we can not modified the index value.Update is not allowed or addition new item are also not allowedTuple is read only listProgram-t=(1,

What is Dictionary in python

Filed under: Python on 2022-08-08 15:43:45
Python dictionary are the hash table type data. It arrangement are the two dimensional type or we can say each item contain two values ,one is key and another one is value corresponding to their keyDictionary is the mutable data typeEach item in dictionary are separated by the comma(,) and enclosed 

Explain String in Python

Filed under: Python on 2022-08-08 15:42:31
String is a collection of characters, python provides simple and easy way to manage or manipulate the string. In Python, single character are also a string of length one and string in python are immutable.String is Immutable :-It means that at runtime we can not change the index value in the string 

What are the types of errors in javascript?

Filed under: JavaScript Interview Questions on 2022-08-06 09:35:56
There are two types of errors in javascript.Syntax error: Syntax errors are mistakes or spelling problems in the code that cause the program to not execute at all or to stop running halfway through. Error messages are usually supplied as well.Logical error: Reasoning mistakes occur when the syntax i

What is DOM?

Filed under: JavaScript Interview Questions on 2022-08-06 09:35:08
DOM stands for Document Object Model.  DOM is a programming interface for HTML and XML documents.When the browser tries to render an HTML document, it creates an object based on the HTML document called DOM. Using this DOM, we can manipulate or change various elements inside the HTML document.

What do you mean by BOM in Javascript?

Filed under: JavaScript Interview Questions on 2022-08-06 09:33:31
Browser Object Model is known as BOM. It allows users to interact with the browser. A browser's initial object is a window. As a result, you may call all of the window's functions directly or by referencing the window. The document, history, screen, navigator, location, and other attributes are avai

Zip() function in python

Filed under: Python on 2022-08-05 15:18:16
In Python, Zip() is an In-build function in which we pass two list as a argument and it will give or return the dictionary of python.Basically it take two list and take items of first list as a key and items of second list as a corresponding valuesExample - L1=[1,2,3]L2=[4,,5,6]ans= zip(L1,L2)h

Range() function in Python

Filed under: Python on 2022-08-05 15:16:11
Range in python is a in-build function which return the collection of sequential numbers started from the 0 by default up to specified range. It uses in python programming where we want to generate some sequential numbers.Example -range(4) will give 0,1,2,3range(1,5) will give 1,2,3,4range(5,1) will

Write Hello World Program in Python

Filed under: Python on 2022-08-05 15:15:02
In python 3, we have a print function for printing any string or statement on console. Here we are able to pass our string in single,double and triple quotation .i,e all three quotation are valid and we do not require to add a semicolon at the end of the line in python because python is a scripting 

Input in Python

Filed under: Python on 2022-08-05 15:12:53
Python3 provide build-in function input() to take input or data from the user at the runtime of the program. python have print() function for display the data and input() for get the data, but here input() function have a capability of display and get the data from user side simultaneously.Syntax : 

What do mean by prototype design pattern?

Filed under: JavaScript Interview Questions on 2022-08-05 07:33:58
The Prototype Pattern produces different objects, but instead of returning uninitialized objects, it produces objects that have values replicated from a template – or sample – object. Also known as the Properties pattern, the Prototype pattern is used to create prototypes.The introduction of bus

Basic data type in python

Filed under: Python on 2022-08-04 20:16:10
Basic data type in Python-followings are the basic data type in python:-1. bool2. int 3. float4. str5. list6. set7. tuple8. dict BoolContain boolean values i.e. true or falseexample :- a=True print(a) // output - True ________________________________________Intcontain i

Append and read in file handling in python

Filed under: Python on 2022-08-04 20:13:26
read()-- read() is a python file function which are used to read the existing file.Syntax-f=open('file.txt','r')f.read()-Here 'f' is the object which points the existing file.Append in file-Syntax-f=open('file.txt','a')f.write(string)-Here string is the content which we want to append into the file.

write() and read() in file handling in python

Filed under: Python on 2022-08-04 20:11:57
read()-read() is a python file function which are used to read the existing file.Syntax-f.read()Here 'f' is the object which points the existing file.write()- write() is a python file function which are used to write in the file. If the file is not exist then write() function create new fi

File handling in python

Filed under: Python on 2022-08-04 20:09:16
-Python supports file handling and allow users to handles the file.-user can easily perform many operation on file like read,write, modification etc.-the concept of file handling in python was inherit from the other old languages like c,c++.Open a file-Syntax-f=open(filename,mode)-Here filename is t

Explain WeakSet in javascript

Filed under: JavaScript Interview Questions on 2022-08-02 06:13:53
In javascript, a Set is a collection of unique and ordered elements. Just like Set, WeakSet is also a collection of unique and ordered elements with some key differences:Weakset contains only objects and no other type.An object inside the weakset is referenced weakly. This means, that if the object 

Why do we use callbacks in Javascript?

Filed under: JavaScript Interview Questions on 2022-08-02 06:12:44
A callback function is a method that is sent as an input to another function (now let us name this other function "thisFunction"), and it is performed inside the thisFunction after the function has completed execution.JavaScript is a scripting language that is based on events. Instead of waiting for

What is Connective Tissue? Connective Tissue Functions

Filed under: Biology on 2022-07-28 17:57:57
Connective tissue is found in between other tissues everywhere in the body, including the nervous system. It develops from the mesoderm.Functions:1) Wraps around and cushions and protects organs2) Stores nutrients3) Internal support for organs4) As tendon and ligaments protects joints and attac

Methods to include JavaScript in HTML Code?

Filed under: JavaScript on 2022-07-16 17:12:56
Javascript can be added to our HTML code in mostly 2 ways:Internal Javascript: Javascript in this case is directly added to the HTML code by adding the JS code inside the <script> tag, which can be placed either inside the <head> or the <body> tags based on the requirement of the u

What are the features of JavaScript?

Filed under: JavaScript on 2022-07-16 17:11:22
Following are the features of javascript:It was developed with the main intention of DOM manipulation, bringing forth the era of dynamic websites.Javascript functions are objects and can be passed in other functions as parameters.Can handle date and time manipulation.Can perform Form Validation.A co

Differentiate between the macros and the functions

Filed under: C Programming on 2022-07-16 16:40:48
The differences between macros and functions can be explained as follows:MacrosFunctionsIt is preprocessed rather than compiled.It is compiled not preprocessed.It is preprocessed rather than compiled.Function checks for compilation errors.Code length is increased.Code length remains the same.Macros 

How to call a function before main() in C programming?

Filed under: C Programming on 2022-07-16 16:39:34
To call a function before the main(), pragma startup directive should be used. E.g.-#pragma startup fun
void fun()
{
printf("In fun\n");
}
main()
{
printf("In main\n");
}The output of the above program will beIn funIn mainThis pragma directive, on the other hand, is compiler-dependent. This 

What are the features of the C language?

Filed under: C Programming on 2022-07-16 16:36:54
Some features of the C language are- It is Simple And Efficient. C language is portable or Machine Independent.C is a mid-level Programming Language. It is a structured Programming Language.It has a function-rich library. Dynamic Memory Management.C is super fast.We can use point

What is Blood corpuscles?

Filed under: Biology on 2022-07-13 19:17:17
This is the remaining 40% part of the blood. This is divided into three parts - 1. Red Blood Corpuscles (RBC)2. White Blood Corpuscles (WBC) or Leucocytes 3. Blood Platelets or Thrombocytes

What is Blood Platelets or Thrombocytes

Filed under: Biology on 2022-07-13 19:16:11
Its formation takes place in Bone marrow.Its life span is from 3 to 5 days.It is found only in the blood of human and other mammals.In dengue fever number of platelets reduced.Its main function is to help in clotting of blood.It dies in the spleen.There is no nucleus in it.

What is White Blood Corpuscles (WBC) or Leucocytes

Filed under: Biology on 2022-07-13 19:15:01
Its shape is similar to Amoeba.Its life span is from 2 to 4 days.Nucleus is present in the White Blood Corpuscles.Its formation takes place in Bone marrow, lymph node and sometimes in liver and spleen.Its main function is to protect the body from the disease.About 60 to 70% part of WBC is made up of

What is Red Blood Corpuscles (RBC)

Filed under: Biology on 2022-07-13 19:13:07
Red Blood Corpuscles (RBC) of a mammal is biconcave.There is no nucleus in it. Exception - Camel and Lama RBC is formed in Bone marrow. (At the embroynic stage its formation takes place in liver).Its life span is from 20 days to 120 days.Its destruction takes place in liver and spleen. Therefore, li

What is Plasma in Human Blood

Filed under: Biology on 2022-07-13 19:09:33
This is the liquid part of blood. 60% of the blood is plasma.Function of plasma : Transportation of digested food, hormones, exeretory product etc from one part of the body to another part.Serum : When Fibrinogen and protein is extracted out of plasma, the remaining plasma is called serum.

Human blood

Filed under: Biology on 2022-07-13 19:09:04
» Blood is a fluid connective tissue.» The quantity of blood in the human’s body is 7% of the total weight.» This is a dissolution of base whose pH value is 7.4.» There is an average of 5 – 6 litters of blood in human body.» Female contains half liter of blood less is in comparison to male.

Important points about The Sun

Filed under: Geography, Universe on 2022-07-10 14:01:15
» The Sun is at the center of the Solar System.» Its size is thirteen lakh times as that of the Earth.» It is the nearest star to the Earth.» It is an ultimate source of energy for life on Earth.» Its diameter is 14 lakh kms.» It is composed of 71% Hydrogen, 26.5% Helium and 2.5% other element

What are Planets and its types

Filed under: Geography, Universe on 2022-07-10 14:00:39
» These are opaque bodies which continuously revolve around and are lighted by the Sun.» There are eight planets in the Solar system.» A ninth planet has been recently discovered by NASA named as Carla.» The sequence of planets according to their distance from the Sun is Mercury, Venus, Earth, M

Classification of Planets

Filed under: Geography, Universe on 2022-07-10 14:00:14
» The eight planets have been divided into two groups. All the planets of a particular group have some common features. 'Terrestrial planets' or 'Rocky planets' and 'Jovian planets' or 'Gaseous planets' (Gas giants) are the two groups of planets.» The four planets nearest to the Sun-Mercury, Venus

Charter Act of 1853

Filed under: Indian Constitution, Politics on 2022-07-10 12:16:24
» This was the last of the Charter Acts and it made important changes in the system of Indian legislation.» This Act followed a report of the then Governor General Dalhousie for improving the administration of the company.» A separate Governor for Bengal was to be appointed.» Legislative and adm

Charter Act of 1833

Filed under: Indian Constitution, Politics on 2022-07-10 12:16:12
» The Governor General and his Council were given vast powers. This Council could legislate for the whole of India subject to the approval of the Board of Controllers.» The Council got full powers regarding revenue, and a single budget for the country was prepared by the Governor General.» The Ea

Charter Act of 1813

Filed under: Indian Constitution, Politics on 2022-07-10 12:15:58
» Trade monopoly of the East India Company came to an end.» Powers of the three Councils of Madras, Bombay and Calcutta were enlarged, they were also subjected to greater control of the British Parliament.» The Christian Missionaries were allowed to spread their religion in India.» Local autonom

Charter Act of 1793

Filed under: Indian Constitution, Politics on 2022-07-10 12:15:41
» Main provisions of the previous Acts were consolidated in this Act.» Provided for the payment of salaries of the members of the Board of Controllers from Indian revenue.» Courts were given the power to interpret rules and regulations.

Pitts India Act of 1784

Filed under: Indian Constitution, Politics on 2022-07-10 12:15:27
» It was enacted to improve upon the provisions of Regulating Act of 1773 to bring about better discipline in the Company's system of administration.» A 6-member Board of Controllers was set up which was headed by a minister of the British Government. All political responsibilities were given to t

Regulating Act of 1773

Filed under: Indian Constitution, Politics on 2022-07-10 12:15:09
» This Act was based on the report of a committee headed by the British Prime Minister Lord North.» Governance of the East India Company was put under British parliamentary control.» The Governor of Bengal was nominated as Governor General for all the three Presidencies of Calcutta, Bombay and Ma

What is Indian Constitution?

Filed under: Indian Constitution, Politics on 2022-07-10 12:14:27
Constitution is the foundational law of a country which ordains the fundamental principles on which the government (or the governance) of that country is based. It lays down the framework and principal functions of various organs of the government as well as the modalities of interaction between the

Why do we need to define any variable in a program?

Filed under: C Programming on 2022-07-05 21:42:03
The variable definition in C language tells the compiler about how much storage it should be creating for the given variable and where it should create the storage. Basically, the variable definition helps in specifying the data type. It contains a list of one variable or multiple ones as follows:ty

Why do we declare a variable in a program?

Filed under: C Programming on 2022-07-05 21:40:37
Declaring a variable provides the compiler with an assurance that there is a variable that exists with that very given name. This way, the compiler will get a signal to proceed with the further compilation without needing the complete details regarding that variable.The declaration of variables is u

Classification of Variables in C

Filed under: C Programming on 2022-07-05 21:37:02
The variables can be of the following basic types, based on the name and the type of the variableGlobal Variable: A variable that gets declared outside a block or a function is known as a global variable. Any function in a program is capable of changing the value of a global variable. It means that 

Rules for Naming a Variable in C

Filed under: C Programming on 2022-07-05 21:24:23
Here are the rules that we must follow when naming it:1. The name of the variable must not begin with a digit.2. A variable name can consist of digits, alphabets, and even special symbols such as an underscore ( _ ).3. A variable name must not have any keywords, for instance, float, int, etc.4. Ther

What is NaN property in JavaScript?

Filed under: JavaScript Interview Questions on 2022-07-04 19:30:33
NaN property represents the “Not-a-Number” value. It indicates a value that is not a legal number.typeof of NaN will return a Number.To check if a value is NaN, we use the isNaN() function,Note- isNaN() function converts the given value to a Number type, and then equates to NaN.isNaN("Hello") &n

The Disadvantages of Recursion Processes in C

Filed under: C Programming on 2022-07-04 11:27:24
When you are using Recursion in C programming, you have to face some issues. Following are the disadvantage of using recursion in C Programming.Any recursive program is generally much slower than any non-recursive program. It is because the recursive programs have to make the function calls. Thus, i

When Does the Recursion Occur in C?

Filed under: C Programming on 2022-07-04 11:23:59
The recursion process in C refers to the process in which the program repeats a certain section of code in a similar way. In C Programming if a function calls itself from inside the same function is called recursion. The function which calls itself is called a recursive function and the function cal

Explain Hoisting in javascript

Filed under: JavaScript Interview Questions on 2022-07-03 07:56:47
Hoisting is the default behaviour of javascript where all the variable and function declarations are moved on top.This means that irrespective of where the variables and functions are declared, they are moved on top of the scope. The scope can be both local and global.Example 1:hoistedVariable = 3;

What do you understand by classes in java?

Filed under: JAVA Interview Questions on 2022-07-02 16:09:45
In Java, a class is a user-defined data type from which objects are created. It can also be called as a blueprint or prototype. A class is a collection of various methods and variables which represent a set of properties that are common to all the objects of one type. A class includes components suc

What do you mean by an object in java?

Filed under: JAVA Interview Questions on 2022-07-02 16:09:28
An object is a basic entity in an object-oriented programming language that represents the real-life entities. Many objects are created by a java program that interacts with the invoking methods. The state of an object is represented by its attributes and reflects its properties. The behavior of an 

Compare java and python.

Filed under: JAVA Interview Questions on 2022-07-02 16:09:13
Java and Python, both the languages hold an important place in today’s IT industry. But in some factors, one is better than the other. Such factors are:Java is easy to use, whereas Python is very good in this case.The speed of coding in Java is average, whereas in Python it is excellent.In Java, t

Outline the major features of Java.

Filed under: JAVA Interview Questions on 2022-07-02 16:08:52
The major features of Java are listed below: –Object-oriented: – Java language is based on object-oriented programming. In this, the class and the methods describe the state and behavior of an object. The programming is done by relating a problem with the real world object.Portable: – the conv

Looping in JAVA and Types of Loops in JAVA

Filed under: JAVA Interview Questions on 2022-07-02 16:08:18
If we want to execute a statement or a block of statements repeatedly in java, then loops are used. And such a process is known as looping. There are basically 3 types of looping. They are: –"For loop": – for executing a statement or a set of statements for a given number of times, for loops are

What are the various access specifiers in Java?

Filed under: JAVA Interview Questions on 2022-07-02 16:07:16
Access specifiers in java are the keywords which define the access scope of the function. It can be used before a class or a method. There are basically 4 types of access specifiers in java: –Public: – class, methods, and fields are accessible from anywhere.Protected: – methods and fields are 

What is the difference between JDK, JRE, and JVM?

Filed under: JAVA Interview Questions on 2022-07-02 16:06:54
It is important to understand the difference between JDK, JRE, and JVM in Java.JVM (Java Virtual Machine):  Java virtual machine is actually an abstract machine which provides a runtime environment in which the java bytecode gets executed. A JVM performs some main tasks such as- loading, verify

What is the need of the JAVA?

Filed under: JAVA Interview Questions on 2022-07-02 16:05:12
The need of Java is that it enforces an object-oriented programming model and can be used to create complete applications that can run on a single computer or be distributed across servers and clients in a network thus it can easily build mobile applications or run on desktop applications that use d

Compare RGB values with Hexadecimal color codes?

Filed under: CSS Interview Questions on 2022-07-02 15:22:29
A color can be specified in two ways:A color is represented by 6 characters i.e. hexadecimal color coding. It is a combination of numbers and letters and is preceded by #. e.g.: g {color: #00cjfi}A mixture of red, green and blue represents a color. The value of a color can also be specified.e.g.: rg

How can you integrate CSS on a web page?

Filed under: CSS Interview Questions on 2022-07-02 15:22:01
CSS can be integrated in three ways:Inline: term is used when the CSS code have attribute of HTML elements<p style="colour:skyblue;"> My Sky!</p>External: separate CSS file is created in the workspace and later linking them in every web page that is created<head>

  <link

What are the benefits of CSS sprites?

Filed under: CSS Interview Questions on 2022-07-02 15:21:11
Benefits of using CSS sprites areIt is a technique where one has a large image containing a set of small images. Those images can be broken down with the help of CSS to disintegrate into multiple images.It helps large images or pages to load faster hence, saving a lot of time. It cuts back HTTP requ

What is CSS Box Model and what are its elements?

Filed under: CSS Interview Questions on 2022-07-02 15:20:34
The CSS box defines the design and the layout of elements of CSS. The several elements are:Margin: transparent area outside borderBorder: the padding and content option with a border around it is shown.Padding: Space is around content. Padding is transparent.Content: box where text and images appear

What are the advantages of CSS?

Filed under: CSS Interview Questions on 2022-07-02 15:17:51
There are a number of advantages of CSS,It gives lots of flexibility for setting the properties of the elementEasy maintenanceIt allows separation of content of the HTML document from the style and layout of the content basicallyLoading of pages at a faster paceCompatibility with multiple deviceIncr

What is CSS?

Filed under: CSS Interview Questions on 2022-07-02 15:17:27
Cascading style sheets or CSS is a web designing language simple for HTML elements. The application is commonly known as XHTML. It is basically used to simplify the process and make the web page look presentable.

What does DOCTYPE mean?

Filed under: HTML Interview Questions on 2022-07-02 15:13:39
DOCTYPE or Document Type Declaration is a type of instruction which usually works in association with particular SGML or XML documents basically. Let us take an example to understand it more thoroughly, for example, A Web page with a document type definition i.e. DTD is the best to understand. In a 

How to create mailto link in HTML?

Filed under: HTML Interview Questions on 2022-07-02 15:13:08
Basically, when we usually start with a hyperlink that is Mailto rather than using HTTP or others, the browser should be able to compose an email in the visitor’s default email program on their computer. There are two ways to insert a mailto link into a HubSpot page or email, just by inserting a h

What is an element in HTML?

Filed under: HTML Interview Questions on 2022-07-02 15:11:50
An HTML element is basically an individual component usually of an HTML  web page or document. Once if this has been also parsed into the document object model.HTML nodes are the main part that composes HTML for example such as text nodes.HTML attributes can be specified from each node. Content

What is the HTML tags?

Filed under: HTML Interview Questions on 2022-07-02 15:11:37
People always confuse in understanding terms elements and tags in HTML. It must be noted that HTML documents contain tags, but do not contain the elements. It is a wide misconception that usually occurs in mind that both exist in HTML documents.elements are usually only generated after parsing step 

What is Cell Spacing and Cell Padding?

Filed under: HTML Interview Questions on 2022-07-02 15:11:17
Cell Spacing is referred to space/gap between the two cells of the same table.Cell Padding is referred to the gap/space between the content of the cell and cell wall or Cell border.Example:<table border cellspacing=3><table border cellpadding=3><table border cellspacing=3 cellpadding=

What is the XHTML?

Filed under: HTML Interview Questions on 2022-07-02 15:09:49
XHTML means Extensible Hypertext Markup Language, which is basically a part of Family of XML markup language. It usually extends the most popularly used HTML i.e. Hypertext Markup Language, the pages in which the web pages are formulated.

What is a nest in HTML?

Filed under: HTML Interview Questions on 2022-07-02 15:09:18
If you go and have a look at HTML markup for any webpage today, you will let to know that HTML elements are contained within other HTML elements. These elements which are inside of other are known as nested elements and they had become the essential part of building any web page nowadays. The most e

What is the meaning of markup in HTML?

Filed under: HTML Interview Questions on 2022-07-02 15:07:49
The sequence of characters or other symbols which we usually use to insert at certain places in a word or text file in order to indicate how the file should look when it is displayed or printed or Basically to describe documents logical structure. The markup indicators are often known as tags. Eleme

Who is the author of HTML?

Filed under: HTML Interview Questions on 2022-07-02 15:06:42
Sir Tim Berners-Lee, a great physicist who is a great personality is the author of HTML. He is also the director of the World Wide Web Consortium i.e. W3C. He is also the founder of WWWF i.e.World wide Web Foundation. Open Data Institute is founded by him and also he is director of this institute.H 

In which year HTML was first proposed?

Filed under: HTML Interview Questions on 2022-07-02 15:04:36
Basically, in 1980, A great physicist Sir Tim Berners -Lee who is a contractor at CERN proposed the way through which documents can be shared easily. So, he prototyped ENQUIRE (a system for CERN), which would help researchers to use and share documents. HTML Tags was basically the first publicly des

What is HTML and what is it used for?

Filed under: HTML Interview Questions on 2022-07-02 15:03:26
HTML is a widely used language that gives our webpage a structure. HTML stands for HYPERTEXT MARKUP LANGUAGE. HTML was created by Berners lee in 1991. A markup language is a set of markups tags. Every webpage is created in HTML. HTML documents are described by HTML tags.

What is multipart form data?

Filed under: HTML Interview Questions on 2022-07-02 15:03:01
Multipart form-data is one of the values of the enctype attribute, which is used in the form element that has a file upload. Multi-part means form data divides into multiple parts and send to the server. It adds a few bytes of boundary overhead to the message, and must spend some time calculating it

What is HTML?

Filed under: HTML Interview Questions on 2022-07-02 15:02:25
HTML is a widely used language that gives our webpage a structure. HTML stands for HYPERTEXT MARKUP LANGUAGE. HTML was created by Berners Lee in 1991.HyperText Mark-up Language (HTML) is at the heart of any other website development process without which no web page exists. Hypertext implies that te

What are the different data types present in javascript?

Filed under: Javascript on 2022-07-02 07:56:54
To know the type of a JavaScript variable, we can use the typeof operator.Primitive types String - It represents a series of characters and is written with quotes. A string can be represented using a single or a double quote.Example :var str = "Vivek Singh Bisht"; //using double quotes
var str

What are disadvantage of JavaScript?

Filed under: JavaScript on 2022-06-29 18:09:25
Some of the disadvantages of JavaScript are:

a)    No support for multithreading
b)    No support for multiprocessing
c)    Reading and writing of files is not allowed
d)    No support for networking applications.

List some features of JavaScript

Filed under: JavaScript on 2022-06-29 18:07:32
Some of the features of JavaScript are:
1.    Lightweight
2.    Interpreted programming language
3.    Good for the applications which are network-centric
4.    Complementary to Java
5.    Complementary to HTML
6.    Open source
7.    Cross-platform 

What is JavaScript?

Filed under: JavaScript on 2022-06-29 18:06:48
JavaScript is a scripting language. It is different from Java language. It is object-based, lightweight, cross-platform translated language. It is widely used for client-side validation. The JavaScript Translator (embedded in the browser) is responsible for translating the JavaScript code for the we

What are Moraines?

Filed under: Geography on 2022-06-18 22:13:46
Moraines are long ridges of deposits of glacial till.
    
When these deposits are at the end of a glacier, they are called as Terminal moraines and when they are deposited on both sides, they are called as Lateral moraines.
    
When lateral moraines of two glaciers join together, they form Med

What are Eskers?

Filed under: Geography on 2022-06-18 22:13:11
When glaciers melt in summer, the water which formed as a result of melting accumulates beneath the glacier and flows like streams in channels beneath that ice.
    
Very coarse material like boulders, blocks and some minor fractions of rock debris are carried away by these streams.
    
They la

What are drumlins?

Filed under: Geography on 2022-06-18 22:12:38
They are smooth oval-shaped ridge-like structures composed mainly of glacial till.

It shapes like an inverted spoon with the highest part is called as Stoss End and the lowest narrow part is called as Tail End.

They are formed as a result of glacial movement over some minor obstruction like sm

What is a Glacier?

Filed under: Geography on 2022-06-18 22:11:07
Glaciers are a mass of ice moving under its own weight. They are commonly found in the snow-fields.
    
We know that the landmass on the earth is not entirely the same as we see around. Some areas are covered by thick green forests, some with dry hot deserts, some with permanent ice covers etc. A

Stop! It can rain diamonds on other planets

Filed under: Science Facts on 2022-05-21 06:52:56
The atmospheres in Neptune, Uranus, and Saturn have such extreme pressure that they can crystallize carbon atoms and turn them into diamonds, American Scientist reports. How do we know this science fact? Researchers were able to create the correct conditions in a lab to prove this occurs on Neptune 

Do you know? A cloud can weigh around a million pounds

Filed under: Science Facts on 2022-05-21 06:49:00
Your childhood dreams of floating on a weightless cloud may not withstand this science fact: The average cumulus cloud can weigh up to a million pounds, according to the USGS. That’s about as heavy as the world’s largest jet when it’s completely full of cargo and passengers.

Earth’s oxygen is produced by the ocean

Filed under: Science Facts on 2022-05-21 06:44:43
Have you ever stopped to think where oxygen comes from? Your first thought may be a rainforest, but here’s a cool science fact for you: We can thank plant-based marine organisms for all that fresh air, according to the National Oceanic Service. Plankton, seaweed, and other photosynthesizers produc

A laser can get trapped in water

Filed under: Science Facts on 2022-05-21 06:43:28
A cool thing called “total internal reflection” happens when you point a laser beam at a jet of flowing water. To demonstrate this phenomenon, PBS Learning Media released a video in which a laser is positioned on one side of a clear tank of water. When the light travels through the water, it is 

The human stomach can dissolve razor blades

Filed under: Science Facts on 2022-05-21 06:42:05
If you ever swallow a razor blade, don’t panic. The human body is more capable than you think. Acids are ranked on a scale from 0 to 14—the lower the pH level, the stronger the acid. Human stomach acid is typically 1.0 to 2.0, meaning that it has an incredibly strong pH. In a study published in 

How can I top my class?

Filed under: Tips on 2022-04-14 10:40:10
In this post I will describe all about How to score good marks in Exams. This is what everyone wants to know about. All do well in Exams but only one is topper of the class, that time we feel ourselves downgraded though it is not like that. Everyone has potential to top the class, everyone has capac

What To Do After Intermediate

Filed under: Tips on 2022-04-14 10:38:23
In this post I will describe or will tell you about What To Do After Intermediate. This is the Question which Struck in the mind of all the boys and girls doing Intermediate, they find the solution over Internet but failed. Sometimes they may get but here I will describe the full for the students wh

10 Point to Make things remembered

Filed under: Tips on 2022-04-14 10:24:43
In this post I will tell you about the point on how to remember the things easily. It is a big problem for all of you that you forget learnt things after sometimes. It is because your way of learning the things is not good. So I will describe the most important points which will help you make the th

10 Most Important Points Remembered Before Appearing Any Exam

Filed under: Tips on 2022-04-14 10:21:39
In this post I will tell about the top 10 most important points which are to be remembered before appearing any exam. No one will tell you about these points. These are the basic thing to be known by every one. But you do these silly mistakes unknowingly or knowingly.
You might have noticed that wh

What is Mirage and How it is formed

Filed under: Physics on 2022-03-27 20:02:51
A Mirage is a naturally occurring optical phenomenon in which light rays bend to produce a displaced image of distant objects or the sky.

(a) It is caused due to Total internal Reflection.
(b) It is an optical illusion observed in deserts or hot summer days due to which a person sees a pond of w

Rise of Kanishk | Kushana Empire

Filed under: History on 2022-03-10 07:28:23
This article will enlighten the Rise of Kanishk in Kushana Empire. I have tried to cover all the things in this article but some may be left. 

Kadphises II was succeeded by Kanishka. He was most known and greatest of all the Kushana kings.

Kanishka ascended to throne in A.D. 78 and he founded 

Invasion of Sakas

Filed under: History on 2022-03-06 09:24:50
The Indo-Greek rule in north-western India was destroyed by the Sakas.

The Sakas are also known as the Scythians.

Sakas or Scythians were nomadic tribes originally from central Asia.

In about 165 B.C., Sakas were turned out of their original home by the Yueh-chi.

Yueh-chi later came to b

Tughluq Dynasty [1320 – 1414]

Filed under: History, on 2022-02-16 18:30:48
Tughluq Dynasty  [1320 – 1414]

1.    Ghiyasuddin Tughluq [1320-1324]
2.    Muhammad Tughluq [1324 -1351]
3.    Firuz Shah Tughluq [1351 -1388]

#    So, what the first thing Sultans did were consolidating these hinterlands of the garrison towns. During these campaigns forests were cleared i

Hidkal Dam

Filed under: Geography, Hydrosphere on 2022-02-07 14:11:28
Raja Lakhamagouda dam, also known as Hidkal dam, is a dam constructed across the Ghataprabha River in the Krishna River basin. It is situated at Hidkal village in Hukkeri Taluk of Belagavi district in North Karnataka, India. The dam with the height of 62.48 metres and 10 Vertical Crest Gates, impoun

Nagarjuna Sagar Dam

Filed under: Geography, Hydrosphere on 2022-02-07 14:07:47
Nagarjuna Sagar Dam is considered one of largest dams built in the recent times in Asia. As the tallest masonry dam, Nagarjuna Sagar Dam is also the pride of India. The project has catchment area of roughly 215000 sq.km. The project also boasts of the largest canal system network in India .The might

Einstein’s theory of general relativity

Filed under: Physics on 2021-12-29 06:41:12
In 1905, Albert Einstein determined that the laws of physics are the same for all non-accelerating observers and that the speed of light in a vacuum was independent of the motion of all observers.

As a result, he found that space and time were interwoven into a single continuum known as space-tim

Indo Greek Invasion

Filed under: Ancient History on 2021-12-27 09:43:59
The arrival of the Yavanas in India marked by their invasion on the western border of India.

Indo greek
After Alexander’s death, a large part of his empire came under the rule of his Generals.

Bactria and Parthia, the adjoining areas of Iran were two main areas under the rule of Alexander

What is Anti-Matter?

Filed under: Geography, Universe on 2021-11-14 21:12:32
It is hypothesized that every elementary particle in the Universe has a partner particle, known as an ‘antiparticle’.

The particle and its antiparticle share many similar characteristics, but many other properties are the exact opposite.

The electron, for example, has as its antiparticle t

What is Dark Energy

Filed under: Geography, Universe on 2021-11-14 21:11:09
Dark energy is an unknown form of energy which is hypothesised to permeate (spread throughout) all of space, tending to accelerate the expansion of the universe.


What is Dark matter??

The velocity of rotation for spiral galaxies depends on the amount of mass contained in them.

But the out

What is Deranged Drainage Pattern

Filed under: Geography, Earth on 2021-11-03 05:55:18
This is an uncoordinated pattern of drainage characteristic of a region recently vacated by an ice-sheet.

The picture is one of the numerous watercourses, lakes and marshes; some inter-connected and some in local drainage basins of their own.

This type of drainage is found in the glaciated val

History of Rashtrakutas

Filed under: History, Ancient History on 2021-11-03 05:54:03
Rashtrakutas built an empire which in the days of greatness extended from Malwa (central India) and Gujrath to Tanjore in south, effectively covering whole of south India. Rashtrakutas, who inherited Chalukyan empire, extended it further by penetrating in deep north and occupying Gangatic doab regio

An Armed forces officer must have these 15 qualities

Filed under: SSB on 2021-10-16 18:32:05
Being an Officer in Defence forces is a coveted dream of many young bloods. However, selecting the right candidate is of immense importance as one wrong decision of an officer could turn life into death for many soldiers. In order to become an officer in Army/Navy or Air Force, a candidate must poss

New 60 SRTs Situation Reaction Test 2021 for SSB

Filed under: SSB on 2021-10-16 10:10:04
We hope you have good knowledge of what is SSB and it is conducted. So in this post, I am not going to tell you about it's procedure. Here I have added 60 important SRT for good preparation of SSB. LEARN SRT HERE.


1. He was asked to walk a long distance by his scoutmaster but he was having a fe

Partition of Bengal 1905

Filed under: History, Ancient History on 2021-10-16 09:57:33
The partition of Bengal in 1905 was one measure which created deep discontentment among the Indians, The province of Bengal, Bihar and Odisha was divided into two parts. The original province included western Bengal, Bihar and Odisha and the new province included Assam and eastern Bengal. Curzon ple

Chera Dynasty

Filed under: History, Ancient History on 2021-10-15 18:49:19
The Cheras were also known as ‘Keralaputras’ in the history. The Chera kingdom occupied the region of a narrow strip between the sea and the mountains of Konkan range.

Chera Kingdom
The Chera rulers also occupied high position in the history of south India. Nedunjeral Adan was a famous Chera

Detailed information on Physiography of India for upsc

Filed under: Geography on 2021-10-15 16:07:39
India has a unique culture and is one of the oldest and greatest civilizations in the world. It stretches from the snow-capped Himalayas in the north to Sun-drenched coastal villages of the south and the humid tropical forests on the south-west coast, from the fertile Brahmaputra valley in its east 

Definition of Isthmus, Gulf and Cape

Filed under: Geography on 2021-10-15 16:04:35
Isthmus

It is a narrow strip of land connecting two large land areas otherwise separated by the sea. Unquestionably the two most famous are the Isthmus of Panama, connecting North and South America, and the Isthmus of Suez, connecting Africa and Asia.

Gulf

It is a portion of the ocean that 

What is Strait

Filed under: Geography on 2021-10-15 16:03:00
It is a naturally formed, narrow, typically navigable waterway that connects two larger bodies of water. It most commonly refers to a channel of water that lies between two landmasses, but it may also refer to a navigable channel through a body of water that is otherwise not navigable, for example, 

What is Peninsula

Filed under: Geography on 2021-10-15 16:02:22
A body of land surrounded by water on three sides is called a peninsula. The word comes from the Latin paene insula, meaning “almost an island. The world’s largest peninsula is Arabia, covering about 1 million square miles (2.6 million square kilometres). It is bounded on the west by the Red Sea

Definition fo Island

Filed under: Geography on 2021-10-15 16:01:49
It is any piece of sub-continental land that is surrounded by water. Very small islands such as emergent land features on atolls can be called islets, skerries, cays or keys. An island in a river or a lake island may be called an eyot or ait, or a holm. A grouping of geographically or geologically r

Significance of weathering to human life

Filed under: Geography, UPSC on 2021-10-11 07:51:17
Weathering is the initial stage in the formation of soil.

It produces other natural resources, for instance, clay which is used for making bricks.

Another significance is weathering weakens rocks making them easier for people to exploit, for example, by mining and quarrying
This process is ac

Cyclonic Rainfall – Major Characteristics

Filed under: Geography on 2021-10-09 15:36:51
Cyclonic activity causes cyclonic rain and it occurs along the fronts of the cyclone.

When two masses of air of unlike density, temperature, and humidity meet then it is formed.

The layer that separates them is known as the front.

A warm front and the cold front are the two parts of the fro

Convectional Rainfall – Major Characteristics

Filed under: Geography on 2021-10-09 15:35:48
The air on getting heated becomes light and rises in convection currents.
As the air rises, it expands and drops the temperature and subsequently, condensation takes place and cumulus clouds are formed.
Heavy rainfall with lightning and thunder takes place which does not last long.
Such rain is u

What are Metamorphic Rocks

Filed under: Geography on 2021-10-09 06:34:17
These rocks form under the action of volume, pressure, and temperature (PVT) changes.

Metamorphism happens when rocks are forced down to lower levels by tectonic processes or when molten magma rising through the crust comes in contact with the crustal rocks or the underlying rocks are exposed to 

What are Sedimentary Rocks

Filed under: Geography on 2021-10-09 06:32:51
Rocks of the earth’s surface area exposed to denudation agents and are broken up into various sizes of fragments.

These fragments are carried by various exogenous agencies and deposited.

These deposits through compaction turn into rocks. This process is called lithification.

In several se

What are western ghats | Indian Heritage

Filed under: Geography, Indian Geography on 2021-10-06 12:57:06
The Western Ghats, also known as the Sahyadri Hills, are well known for their rich and unique assemblage of flora and fauna. Norman Myers included the Western Ghats amongst the 25 biodiversity hot-spots identified in the world.

The Western Ghats extend from the Satpura Range in the north, go sout

Do's and Don'ts for SSB Psychology Test SSB

Filed under: SSB on 2021-10-01 18:31:50
DO’S IN ALL PSYCHOLOGICAL TESTS

Listen and adhere to the instructions carefully and properly.
Clarify all doubts you have before the commencement of each test.
Be as imaginative and spontaneous as possible.
Give your first reactions to the stimulus shown to you. Don’t think twice as there 

Science Equipments and their uses

Filed under: Science on 2021-09-26 06:59:29
Audiophone	It is used for improving imperfect sense of hearing.

Audiometer	It measures intensity of sound.

Anemometer	It measures force and velocity of wind.

Ammeter	It measures strength of electric current (in amperes)

Altimeter	It measures altitudes and is used in aircrafts

Balomete

30+ Abbreviations of ASP .Net language

Filed under: Computer on 2021-09-26 05:29:01
Abbreviation	Stands for
ASP	Active Server Pages
ADO	ActiveX Data Object
CLR	Common Language Runtime
CTS	Common Type Specifications
CLS	Common Language Specifications
CIL	Common Intermediate Language
CAS	Code Access Security
CCW	COM Callable Wrapper
COFF	Common Object File Format
COM	Compon

Top 10 Tips for better running in your physical examination

Filed under: Tips, Air Force on 2021-09-25 08:23:10
How many times have you gone out for a run and felt like your legs were made of concrete, or worse? Surprisingly, they might not feel so bad from something that you did as from something that you didn’t do. Treat your legs well between runs to gain more enjoyment from your workouts, increase perfo

10 things you must follow before SSB interview

Filed under: SSB on 2021-09-22 18:52:09
Once you receive a call letter for SSB interview, many of you wonder what things you must do before going and how to prepare for this crucial interview. Apart from pursuing coaching classes, studying SSB books and gathering information from several resources, there are still many significant tactics

History of Akbar the Mughal Emperor

Filed under: History on 2021-09-19 09:28:39
Abu’l-Fath Jalal-ud-din Muhammad Akbar was one of the mightiest emperors during the Mughal era. With a strong personality and a successful general, Akbar gradually enlarged the Mughal Empire to include much of the Indian subcontinent. His power and influence, however, extended over the entire subc

What are Normal Waves

Filed under: Geography, Hydrosphere on 2021-09-17 05:18:43
Normal waves
The horizontal and vertical motions are common in ocean water bodies.

The horizontal motion refers to the ocean currents and waves. The vertical motion refers to tides.

Water moves ahead from one place to another through ocean currents while the water in the normal wind-generated

History of Pratiharas Empire

Filed under: History on 2021-09-17 05:16:56
The Pratiharas are believed to be the clan of Rajputs. They set foot in India during the Huns invasion and settle around Panjab Rajputana region. Soon they advanced to Aravali and Ujjain. The branch of the Pratiharas who ruled in the Gurjarat were the Gurjaras. The inscription of the Pratiharas trac

60 SRT (Situation Reaction Test) for SSB Interview

Filed under: SSB on 2021-09-08 15:27:17
1. During a hiking trip, he was left alone behind the group. He….

2. While going to watch a movie with friends, he lost all the movie tickets. He…

3. On reaching the examination hall, 5 minutes after the commencement of examination, he remembered that he has not brought his admit card. He

History of Pandya Dynasty

Filed under: History, Ancient History on 2021-09-08 06:09:32
The Pandya kingdom was the second important kingdom in south India during this period. It occupied the region of modern districts of Tirunelveli, Ramnad, and Madurai in Tamil Nadu.

The capital of Pandya kingdom was Madurai. The Pandyan kingdom was very wealthy and prosperous.

The Sangam litera

History of Cholas Dynasty

Filed under: History, Ancient History on 2021-08-29 17:22:15
# The Cholas have occupied the region of Kaveri delta and the adjoining area. The region of Kanchi was also part of the Cholas kingdom.

# Cholas kingdom
The Kingdom was situated towards the north-east of Pandya kingdom and it was also called as Cholamandalam in early medieval times.

# In the 

Pala Dynasty

Filed under: History, Ancient History on 2021-08-29 17:20:00
Pala Dynasty was the ruling Dynasty in Bihar and Bengal India, from the 8th to the 12th century.  Called the Palas because all their names ended in Pala, "protector".  The Palas rescued Bengal from the chaos into which it had fallen after the death of Shashanka, a rival of Harsha of Kanauj.  The fou

Water Erosion and its type

Filed under: Geography, Hydrosphere on 2021-08-23 07:00:57
Water Erosion

# Running water is one of the main agents, which carries away soil particles.

# Soil erosion by water occurs by means of raindrops, waves or ice.

# Erosion by water is termed differently according to the intensity and nature of erosion: raindrop erosion, sheet erosion, rill an

History of Pallavas

Filed under: History, Ancient History on 2021-08-23 06:51:48
Pallavas,the pastoral tribe emerged as a powerful ruler and commanded the region ofThondaimandalam.from its capital located at Pallavapuri (Bhavatri, of Nellore in theAndhra). They were of sect "Thiraiyar" and the region they ruled was called"Thondaimandalam". With the capital washed away by the sea

Learn Top 20 Physics questions

Filed under: Physics on 2021-08-20 14:55:33
Q&A 1. Energy of the Sun is generated by – Nuclear fusion 

Q&A 2. When the TV is switched on,- Visualization starts immediately, but audio is heard later, because sound travels at a lower velocity than light.

Q&A 3. Which principle is used to produce minimum temperature – superconductivity

The Hindu Succession (Amendment) Act, 2005

Filed under: Politics on 2021-08-15 07:11:22
The Hindu Succession (Amendment) Act, 2005 was enacted to remove gender discriminatory provisions in the Hindu Succession Act, 1956. Under the amendment, the daughter of a coparcener shall by birth become a coparcener in her own right in the same manner as the son. This amendment also repeats sectio

Delhi Sultanate Indian History

Filed under: History on 2021-08-06 16:06:36
Delhi Sultanate refers to the various Muslim dynasties that ruled in India (1210-1526). It was founded after Muhammad of Ghor defeated Prithvi Raj and captured Delhi in 1192. In 1206, Qutb ud-Din, one of his generals, proclaimed himself sultan of Delhi and founded a line of rulers called the Slave d

Situation Reaction Test: Best Examples for SSB

Filed under: SSB on 2021-08-02 18:41:36
He and his friends were coming from the school on bicycles, his friend fell from the bicycle and his hand got fractured. He…………….

TT came to check his ticket but he found that his purse, containing the ticker and cash was pickpocketed. He…………….

How was traveling in a train 

15 Most Common SRTs for Situation Reaction Test SSB

Filed under: SSB on 2021-08-02 15:32:16
1. He was going to the neighboring village on his cycle to get medicine for his ailing mother. The cycle got puncture and it  was getting dark. He...............

2. He was driving down a deserted road. He saw some men teasing a girl. He.........

3. He was given the responsibility of organizing

20+ SRTs with answers for SSB interview

Filed under: SSB on 2021-08-01 20:29:29
1.He met with a serious accident while going on a bicycle, resulting in serious injury to pillion rider and serious damage to his vehicle. He………………………..
  • Took the injured to the nearest hospital locking his vehicle.

2. While going over the bridge over a river with his frie

History of Kushana Empire

Filed under: History, Ancient History on 2021-08-01 10:48:59
In the early 2nd century BC, a tribe on the Central Asian frontier of China called Hsiung-nu defeated a neighboring one known as Yueh-chih. After more conflict, the survivors of the Yueh-chih were dislocated west, passing down the Ili river valley and along the southern shore of lake Issyk Kul. This

Women in Buddhism and Jainism for UPSC IAS

Filed under: History, Ancient History on 2021-08-01 09:34:36
Women in Buddhism and Jainism

The 6th century BCE in the Indian subcontinent was a dynamic period. It witnessed several changes that had long-lasting consequences. Firstly, the period witnessed the rise of territorial kingdoms known as Mahajanapadas. Secondly, the Indian subcontinent witnessed th

Marine Cycle of Erosion

Filed under: Geography, Hydrosphere on 2021-07-31 17:02:45
Marine Cycle of Erosion
1. Youth

# The waves are very active.

# Sea caves, arches and stalks begin to develop.

# Cliff undercutting is pronounced and wavecut platform begins to emerge due to wave erosion.

# By the end of youth, an irregular coastline remains.

2. Maturity

# The cli

Chola Dynasty in Indian History

Filed under: History, Ancient History on 2021-07-30 20:21:19
The Cholas are the earliest and the most ancient among the South Indian royal houses. The artifacts of the period found in South India mention Mahabharata as well as Ashokan edicts.

The CholaKingdom is very ancient, there has been references made in Mahabharatha and even in Ashokan inscriptions. 

Types of Marine Depositional Landforms

Filed under: Geography, Hydrosphere on 2021-07-29 16:17:44
Marine Depositional Landforms

1. Beach

# This is the temporary covering of rock debris on or along a wave-cut platform.

2. Bar

# Currents and tidal currents deposit rock debris and sand along the coast at a distance from the shoreline.

# The resultant landforms which remain submerged 

Types of Marine Erosional Landforms

Filed under: Geography, Hydrosphere on 2021-07-29 16:11:44
Marine Erosional Landforms

1. Chasms
# These are narrow, deep indentations (a deep recess or notch on the edge or surface of something) carved due to headward erosion (downcutting) through vertical planes of weakness in the rocks by wave action.

# With time, further headward erosion is hinder

What is Igneous Rocks | Indian Geography

Filed under: Geography, Indian Geography on 2021-07-28 10:31:04
# It is formed out of magma and lava from the interior of the earth.

# They are also known as primary rocks.
When magma in its upward movement cools and turns into a solid form it is called igneous rock.

# The process of cooling and solidification can happen in the crust of the earth or on th

The Indian Ocean

Filed under: Geography, Hydrosphere on 2021-07-28 10:22:43
# Indian Ocean is the third largest of the world’s oceanic divisions.
# Smaller and less deep than the Atlantic Ocean.

Submarine ridges

# Submarine ridges in this ocean include the Lakshadweep-Chagos Ridge [Reunion Hotspot], the Socotra-Chagos Ridge, the Seychelles Ridge, the South Madagasc

The Pandyan Dynasty Indian History

Filed under: History, Ancient History on 2021-07-28 10:13:03
The Pandyas were one of the three small Dhravidian races that occupied the southern extremity of India. Around 700 BC, Dhravidians must have penetrated into S.India and organized themselves into distinguishable communities. Titles such as Solan, Pandiyan, and Keralas proves the existence of such a c

The Atlantic Ocean

Filed under: Geography, Hydrosphere on 2021-07-27 07:11:03
# The Atlantic is the second largest ocean after the Pacific.

# It is roughly half the size of the Pacific Ocean.

# It’s shape resembles the letter ‘S’.

# In terms of trade, it is the most significant of all oceans.

# It has prominent continental shelf with varying widths.

# The

The Pacific Ocean

Filed under: Geography, Hydrosphere on 2021-07-27 07:07:57
# Largest and deepest ocean.
# Covers about one-third of the earth’s surface.
# Average depth is generally around 7,300 metres.
# Its shape is roughly triangular with its apex in the north at the Bering Strait.
# Many marginal seas, bays and gulfs occur along its boundaries.
# Nearly 20,000 i

Frequently asked 50+ SRTs for situation reaction test SSB

Filed under: SSB on 2021-07-25 17:05:18
1. He was going to the hospital to take care of his ailing mother. His cycle got punctured and it started raining. He…..

2. His friend came to him and asked for 2 lakh rupees on an urgent note in one day. He

3. He was out for tracking in Shimla and he lost his way. He wandered for 2 hours, b

Kanva Dynasty Indian History

Filed under: History, Ancient History on 2021-07-25 12:38:44
Kanva dynasty had a Brahmanic origin. The dynasty was named after the gotra of the ruler Kanva. The Kanva dynasty was founded by Vasudeva Kanva. It is believed that Vasudeva Kanva killed the Shunga ruler Devabhuti and established his own empire in 72 BCE.

Kanva dynasty had a ruling phase from 72 

Meteoroid, Meteor and Meteorite

Filed under: Geography, Universe on 2021-07-24 12:00:29
 A meteoroid is any solid debris originating from asteroids, comets or other celestial object and floats through interplanetary space.

 A meteor is the streak of light that appears in the sky when a meteoroid enters the atmosphere (mesosphere) at about 200 km at high speed and burns up because of

Vijay Nagar Empire - Indian History

Filed under: History, Ancient History on 2021-07-23 16:17:15
Foundation of Vijaynagar empire is certainly the most significant event in the history of medieval India. It lasted for 3 centuries and successfully prevented the extension of Muslim sultanetes in south. History of Vijaynagar empire is truly an unbroken era of bloody wars with Bahamani and other Mus

Maratha Empire Indian History

Filed under: History, Ancient History on 2021-07-23 16:14:56
The Marathas' rise to power was a dramatic turning point that accelerated the demise of Muslim dominance in India. Maratha chieftains were originally in the service of Bijapur sultans in the western Deccan, which was under siege by the Mughals. Shivaji Bhonsle (1627 - 1680 AD) is recognized as the "

What are Comets

Filed under: Geography, Universe on 2021-07-22 10:36:40
# A comet is an icy small Solar System body that, when passing close to the Sun, heats up due to the effects of solar radiation and the solar wind upon the nucleus and begins to outgas, displaying a visible atmosphere or coma, and sometimes also a tail.

# Comets have highly elliptical orbits, unl

What is Asteroid belt

Filed under: Geography, Universe on 2021-07-22 10:31:44
# Asteroids are remnants of planetary formation that circle the Sun in a zone lying between Mars and Jupiter. The circular chain of asteroids is called the asteroid belt.

# The remnants of planetary formation failed to coalesce because of the gravitational interference of Jupiter.

# The astero

Rulers of Chalukya Dynasty

Filed under: History, Ancient History on 2021-07-22 10:15:42
# Jayasimha was the first ruler of the Chalukyas.

1. Pulakesin I (Reign: 543 AD – 566 AD)

#  Founded the empire with his capital at Vatapi.
# Performed Ashwamedha.

2.  Kirtivarman I (Reign: 566 AD – 597 AD)

# Son of Pulakesin I.
# Conquered Konkan and northern Kerala.

3. Mangale

Saturn, Uranus and Neptune planet

Filed under: Geography, Universe on 2021-07-21 18:30:16
Saturn
# Saturn’s rings are probably made up of billions of particles of ice and ice-covered rocks.

# Titan is the second-largest moon in the Solar System (larger than Mercury) and it is the only satellite in the Solar System with a substantial atmosphere (nitrogen-rich).

Uranus

# In con

Jupiter Planet

Filed under: Geography, Universe on 2021-07-21 18:28:56
It is called Outer planet.
# It is composed mostly of gas and liquid swirling in complex patterns with no solid surface.

# Jupiter’s four large moons (Io, Europa, Ganymede, and Callisto), called the Galilean satellites because Galileo discovered them.

# Ganymede is the largest natural satel

What are Outer Planets

Filed under: Geography, Universe on 2021-07-21 18:27:38
# Outer Planets are Jupiter, Saturn, Uranus, Neptune and the dwarf planet – Pluto.

# The four outer planets, called the gas giants, collectively make up 99% of the mass known to orbit the Sun.

# They are composed mainly of hydrogen & helium & lack a solid surface. Their moons are, however, s

The Pallavas of Kanchi

Filed under: History on 2021-07-21 16:26:00
In the last quarter of the 6th century A.D. the Pallava king Sinhavishnu rose to power and conquered the area between the rivers Krishna and Cauveri. His son and successor Mahendravarman was a versatile genius, who unfortunately lost the northern parts of his dominion to the Chalukya king, Pulekesin

The Chalukyas of Badami

Filed under: History on 2021-07-21 16:24:30
The Chalukyas were a great power in southern India between 6th and 8th century A.D. Pulakesin I, the first great ruler of this dynasty ascended the throne in 540 A.D. and having made many splendid victories, established a mighty empire. His sons Kirtivarman and Mangalesa further extended the kingdom

20 Frequently asked SRTs with answers for SSB

Filed under: SSB on 2021-07-20 22:34:22
SRT- Your captain falls ill and the team has no leader, you'll do..

Ans- Volunteer to lead the team, Discuss important things with ill captain motivate teammates, practice well and Win the match.

SRT- Your friend need urgent money for his father's operation and you found a purse full of money 

Types of Ocean Currents

Filed under: Geography, Currents on 2021-07-20 21:09:09
 Warm Ocean Currents:

# Those currents which flow from equatorial regions towards poles which have a higher surface temperature and are called warm current.
# They bring warm waters to the cold regions.
# They are usually observed on the east coast of the continents in the lower and middle lati

What are waves and tides

Filed under: Geography, Currents on 2021-07-20 21:07:16
Waves

# Waves are nothing but the oscillatory movements that result in the rise and fall of water surface.
# Waves are a kind of horizontal movements of the ocean water.
# They are actually the energy, not the water as such, which moves across the ocean surface.
# This energy for the waves is 

Chipko Movement | Chipko Andolan

Filed under: History on 2021-07-20 16:27:28
Chipko Movement was a non-violent agitation which originated in Chamoli district and later at Tehri-Garhwal district of Uttarakhand in 1973. The name of the movement ‘chipko’ comes from the word ’embrace’, as the villagers hugged the trees and encircled them to prevent being hacked.


The

Mars Planet

Filed under: Geography, Universe on 2021-07-20 15:52:08
# Mars is often referred to as the “Red Planet” because of the reddish iron oxide prevalent on its surface.

# Mars has a thin atmosphere and has surface features ranging from impact craters of the Moon and the valleys, deserts, and polar ice caps of Earth.

# Mars is the site of Olympus Mon

Course and Consequences of Second World War

Filed under: World History on 2021-07-19 21:03:08
Course of Second world War:

# World War II officially began on September 1, 1939.
# Germany conquered – Poland, Norway, Denmark, Belgium, Holland and France.
# Battle of Britain – Germany vs Britain (air battle; German Air force =Luftwaffe).
# Battle of Stalingrad – Germany vs USSR. (Ope

Causes of Second World War(1939-1945)

Filed under: World History on 2021-07-19 21:00:17
These were the causes of second world war.
(1) Humiliation by the Treaty of Versailles

    #War indemnity.
    #The provision for disarming Germany.
    #Saar coal mine to France for 15 years.
    #Polish corridor was given to Poland.
    #City of Danzing was made free.

(2) Growth of Fasc

Gram Nyayalayas: Village Courts in India

Filed under: Politics on 2021-07-19 20:58:04
Gram Nyayalayas are village courts for speedy and easy access to the justice system in the rural areas of India.
The establishment of Gram Nyayalayas in India can be traced to the Gram Nyayalayas Act, 2008 passed by the Parliament of India.
Even though the target was to set up 5000 village courts 

Rapid fire SSB Interview Questions

Filed under: SSB on 2021-07-19 16:48:54
1. Name of the place you come from ?
2. Institution where you had your education ?
3. Your 10th class marks ?
4. Favourite subjects in 10th class?
5. Favorite teachers in 10th class, why?
6. Teachers you didn’t like in 10th, why?
7. Your 12th class marks?
8. Favourite subjects in 12th class

What are Smritis | Ancient History

Filed under: History, Ancient History on 2021-07-19 16:16:22
# The Smritis have continued to play a very important role in Hindu life as it were playing since the last two thousand years.

# The Smritis explained the religious duties, usage, laws, and social customs.

# The Smritis are the expanded version of the Dharmasutras, which covered the period fro

Sangam Literature

Filed under: History, Ancient History on 2021-07-19 16:13:24
# Tamil language is the oldest one among the south Indian languages. The earliest phase of Tamil literature is associated with the three Sangams.

# Sangams were the societies of learned men established by the Pandya kingdom. Each Sangam comprises of a number of distinguished poets and learned sch

Small Dynasty in Indian History

Filed under: History, Ancient History on 2021-07-19 16:11:26
Apart from some important dynasties ruling in the post-Mauryan period in north India, there were a number of republics ruling smaller states. The information about these small dynasties is extracted from their coins on which their names were written.

Following are some of the important small dyna

Confusing SRTs with Answers for SSB

Filed under: SSB on 2021-07-19 11:06:49
SRT- You are in train & lost your purse with money. You…… ???
Ans- I will use the money which i kept safely in my luggage for emergency situation…and will file an FIR later.

SRT- In his train compartment, two gunmen force passengers to give their belongings. He……???
Ans- Those gunmen 

About Moon - Earth' Satellite How moon was formed

Filed under: Geography, Universe on 2021-07-18 22:51:25
# Its diameter is only one-quarter that of the earth.

# It is about 3,84,400 km away from us.
A ray of light from the sun takes about eight minutes to reach the earth. Light takes only a second to reach us from the moon.

# The moon is tidally locked to the earth, meaning that the moon revolve

Short note on Venus Planet

Filed under: Geography, Universe on 2021-07-18 22:47:17
# Venus is the brightest planet in the solar system and is the third brightest object visible from earth after the sun and the moon.

# It is the brightest among planets because it has the highest albedo due to the highly reflective sulfuric acid that covers its atmosphere. It is sometimes visible

Top 15 confusing Situation Reaction Test SRTs for SSB

Filed under: SSB on 2021-07-18 16:22:52
#1 He is having high fever and he was told to walk a long distance by his NCC commander. He…

#2 He was selected as the leader of the mountain expedition, for which, he has to leave the next day. He got a call about his grandmother being ill. He…

#3 He was served with a challenge by the col

Tips for performing good in Situation Reaction Test SSB

Filed under: SSB on 2021-07-18 13:52:13
# Think of simple and obvious actions.
# Normally the reaction depends on individual’s capacity and ability.
# There is no, correct solution or book answer, for any situation.
# Do not write answers like - I will solve the situation, I will find out the problem, I will enquire about the problem

Mercury Planet

Filed under: Geography, Universe on 2021-07-18 08:25:56
# Mercury’s surface appears heavily cratered and is similar in appearance to the Moon’s, indicating that it has been geologically inactive for billions of years (because there is no atmosphere on Mercury).

# When viewed from Earth, the planet can only be seen near the western or eastern horiz

What are Inner Planets

Filed under: Geography, Universe on 2021-07-18 08:23:35
Inner Planets
# The inner Solar System is the traditional name for the region comprising the terrestrial planets and asteroids.

# They are composed mainly of silicates and metals.

# The four inner or terrestrial planets have dense, rocky compositions, few or no moons, and no ring systems.

What are Planet and its type

Filed under: Geography, Universe on 2021-07-18 08:22:07
Planet: 

# A celestial body moving in an elliptical orbit around a star is known as a planet.

# The planets of our solar system are divisible in two groups:

# the planets of the inner circle (as they lie between the sun and the belt of asteroids) or the inner planets or the ‘terrestrial p

Early History of South India

Filed under: History, Ancient History on 2021-07-18 08:16:09
# During the 1,000 B.C., the present states of Tamil Nadu and Kerala (in southern India) were inhabited by megalithic people.

# The important phase of the ancient history of south India is from the Megalithic period to about A.D. 300.

Megalithic Phase:

The literary meaning of the term megal

Sunga Dynasty in short

Filed under: History, Ancient History, Sunga Dynasty on 2021-07-18 08:06:56
The last Mauryan king Brithadratha was killed by his commander-in-chief Pushyamitra Sunga in 185 BC. He did so on being disgusted with his ruler's policy of the so-called non-violence that stood in the way of his leading a campaign against the alien invaders who had occupied a big chunk of North-Wes

Nanda Dynasty in Brief

Filed under: History, Ancient History on 2021-07-16 08:18:36
The first Magadha dynasty was overthrown by the usurper Mahapadna, founder of the Nanda dynasty, son of a low-caste woman. He established his capital in Pataliputra (eastern Bihar) at the time that Alexander was campaigning in the Indus river valley (327-324). The Nandas ruled Magadha between 364 B.

Shishunaga Dynasty

Filed under: History, Ancient History on 2021-07-16 08:17:50
Pradyota assents the throne of Avanti ending the Brhadratha Dynasty and commencing the Pradyota Dynasty of Magadha.

The Mahavamsa states that Ajatasattu's son Udayabhadra succeeded Ajatasattu and ruled for the next sixteen years. He moved his capital to the bank of Ganges which was known as Patal

Haryanka Dynasty History

Filed under: History, Ancient History on 2021-07-16 08:15:55
Pradyota became king of Avanti ending the Brhadratha Dynasty and commencing the Haryanka Dynasty of Magadha. The Haryanka king Bimbsara was responsible for expanding the boundries of his kingdom through matrimonial alliances and conquest. Bimbsara was the contemporary to Buddha. Bimbsara was impriso

20 Most Important Fill in the blanks for SSC CGL, NDA, CDS

Filed under: English on 2021-07-15 20:08:59
Fill in the blanks with appropriate preposition

1. A pious man is absorbed (a) ____meditation. He has firm faith (b) _____the Almighty. He abides (c) _____the rules of religion. He clings (d) ______ his faith. He knows that man is accountable to the Almighty (e) ________his action. So, he leads h

Kalinga Kingdom

Filed under: History, Ancient History on 2021-07-15 12:28:05
Kalinga is mentioned in the ancient scriptures as Kalinga the Braves (Kalinga Sahasikha). During the 3rd century B.C. the Greek ambassador Megasthenes in his tour of India had mentioned about the military strength of the Kalinga army of about one lakh which consisted of 60 thousand soldiers, 1700 ho

Kosala Kingdom

Filed under: History, Ancient History on 2021-07-15 12:26:25
Kosala was an ancient Indian kingdom, corresponding roughly in area with the region of Oudh. in what is now south-central Uttar Pradesh state, it extended into present-day Nepal. Its capital was Ayodhya. In the 6th century BC it rose to become one of the dominant states in northern India. Kosala for

Ghandahra Kingdom

Filed under: History, Ancient History on 2021-07-15 12:25:46
Ghandahra is the name of an ancient Mahajanapada in northern Pakistan and parts of northern Punjab and Kashmir and eastern Afghanistan. Gandhara was located mainly in the vale of Peshawar, the Potohar plateau and on the northern side of the Kabul River. Its main cities were Peshawar and Taxila.

T

Kuru Kingdom

Filed under: History, Ancient History on 2021-07-14 17:11:16
Kuru was the name of an Indo-Aryan tribe and their kingdom in the Vedic civilization of India. Their kingdom was located in the area of modern Haryana. They formed the first political center of the Indo-Aryans after the Rigvedic period, and after their emergence from the Punjab, and it was there tha

Mahajanpadas in details

Filed under: History, Ancient History on 2021-07-14 17:10:37
There were many states of the Aryans in North India, around the 6th century B. C. These states were called the 'Mahajanapadas'. The Mahajanapadas of Anga, Kashi, Kosala, Chedi, Vatsa, Matsya, Shursen, Ashmak, Avanti, Gandhar and Magadha were ruled by kings or monarchs. The kings in these states had 

Verdhaman Mahavir History

Filed under: History, Ancient History on 2021-07-14 17:03:52
Birth name of Mahavir was Vardhman. The different names Ativir , Sanmati , Mahavir were the titles conferred upon him for his acts of boldness and bravery at different occasions. He was born in a princely family with all the comforts of life were available to him but child Mahavir did not evince int

Gautam Buddha History

Filed under: History, Ancient History on 2021-07-14 17:02:57
Siddhartha Gautama was a prince who lived in the kingdom of Sakyas, near the present day border of India and Nepal, more than 2500 years ago. The young prince was raised in great luxury, but he was not happy. He wanted to understand what caused human suffering. He did not understand why some people 

Describe Yajurveda

Filed under: History, Vedic Period on 2021-07-12 18:07:54
“Yajus” means worship, and “Veda” means knowledge, so Yajur Veda is devoted to the worship of the Gods. It primarily contains prose mantras for worship rituals. It describes the way to perform religious rituals as well as sacred ceremonies.

In simple terms, Yajurveda can be understood as 

What is Hydrosphere

Filed under: Geography, Atmosphere on 2021-07-12 10:05:12
# The hydrosphere includes water on earth in Oceans, Seas, Rivers, Lakes and even in frozen forms.

# Only 2.5% of Earths water is freshwater. And even in this 2.5%; approximately 69% is in the form of snow and ice.

# 97.5% of Earths water is saltwater, which is unfit for human consumption.

7 Continents in the world

Filed under: Geography on 2021-07-12 10:00:09
Continents

 There are seven major continents and these are separated by large water bodies.

1. Asia

# The largest continent on Earth is Asia.

# Asia is also the most populous continent on earth i.e. it is home to approximately 60% of the world’s population as of 2019.

# Asian contin

Legislative council and its important

Filed under: Politics on 2021-07-11 09:47:39
India has a bicameral system i.e., two Houses of Parliament. At the state level, the equivalent of the Lok Sabha is the Vidhan Sabha or Legislative Assembly; that of the Rajya Sabha is the Vidhan Parishad or Legislative Council.

 

Why do we need a second house?

1. To act as a check on hasty

The Sun it's atmosphere and internal structure

Filed under: Geography, Atmosphere on 2021-07-10 07:37:29
The Sun

# Age: 4.6 billion years.
# Diameter: 1.39 million km.
# Temperature: 6000 °C on surface and 16 million °C in core.
# Density: 1.41 times that of water.
# Density of water = 999.97 kg/m³ = ~ 1 g/cm3;
# Density of Iron = 7870 kg/m³.

# That implies Iron is = 7.87 times denser th

Who were Aryans in History

Filed under: History, Ancient History on 2021-07-09 15:34:43
# About 1500 B.C., groups of warlike people left their homes in central Asia, possibly near the Caucasus Mountains, and came to India. These people called themselves arya (kinsmen or nobles). They are now known as the Aryans. The Aryans are said to have entered India through the fabled Khyber pass, 

Dravidian history

Filed under: History, Ancient History on 2021-07-09 15:32:52
Dravidian is the name given to a linguistically related group of people in India. They are said to be the first original settlers of ancient India. Dravidian culture is very diverse, with some groups maintaining more traditional customs such as totemism and matralinealism, while others have develope

MODEL OF MORAL DECISION MAKING for UPSC

Filed under: Ethics on 2021-07-09 15:24:52
Ethics can be looked at from another point of view. In fact, the best way of approaching  any subject is to consider the problems which it analyses. A simple way of understanding moral problems is to consider the manner in which we take moral decisions. The elements involved in moral decision-making

What is Ethics for UPSC

Filed under: Ethics on 2021-07-09 15:17:19
Ethics has been defined in various ways. The purpose of a definition is to describe its subject concisely and yet completely. Although there are many definitions of Ethics, a common thread runs through them. They are in fact different ways of looking at Ethics. We begin our discussion with some comm

Extension of Chalukya Dynasty

Filed under: History, Ancient History on 2021-07-04 19:16:51
The Chalukyas ruled parts of Southern and Central India between the 6th century and the 12th century.

# The Chalukya dynasty reached its peak during the reign of Pulakesin II.

# His grandfather Pulakesin I had created an empire around Vatapi.

# Pulakesin II subjugated the Kadambas, the Gang

Top 30 Idioms and phrases for competitive exams

Filed under: English on 2021-07-01 19:08:16
# Decked up – put on special clothes to appear particularly appealing and attractive
# Doing the rounds – to be passed from one person to another
# Between the cup and the lips – On the point of achievement
# A damp squib – Complete failure
# Put off – an evasive reply, to delay doing 

Economy of Maurya Empire Indian History

Filed under: History, Maurya Empire on 2021-07-01 14:28:50
# Largely, the population was agriculturists and lived in villages. The state helped people to bring new areas under cultivation by cleaning the forest. But certain types of forests were protected by law.

# A number of crops like rice, coarse grains (kodrava), sesame, pepper, and saffron, pulses,

Origin of Kushana Empire Ancient History

Filed under: History, Ancient History on 2021-07-01 06:50:24
Kushans or Kuei-Shang were one of the five Great Yueh-chi (tribes) principalities. In the 1st century CE, Kujula Kadphises (Kadphises I) brought together these five principalities and founded the Kushan Empire. The Kushans movement in India can be traced back to the first century CE during Kadphises

Top FAQs on National Parks Indian Geography

Filed under: Geography, Indian Geography on 2021-06-29 15:19:30
# Q . What is a National Park?
Ans. Any natural habitat which is set aside by the Government of a state or Union Territory for the conservation of the natural environment is called a National Park.

# Q . Which is the largest National Park in India?
Ans. Hemis National Park in Ladakh is the larg

Major Ravi Crops | Indian Geography

Filed under: Geography, Farming on 2021-06-28 18:05:28
Major Rabi Crops
These crops are mostly shown during the Ravi season. 

Cereals
Fruits
Vegetables
Barley
Banana
Cabbage
Gram
Lady Fingers
Capsicum
Rapeseed
Tomato
Onion
Mustard
Grapefruit	
Potato
Oat
Mangoes 
Spinach
Bajra
Lemons
Tomato

Who is Veer Savarkar for UPSC

Filed under: History, Medival History on 2021-06-28 17:55:21
# Born on May 28, 1883 in Bhagur, a city in Maharashtra’s Nashik.

# In his teenage, Savarkar formed a youth organization. Known as Mitra Mela, this organization was put into place to bring in national and revolutionary ideas.

# He was against foreign goods and propagated the idea of Swadeshi

The decline of the Kushana Empire

Filed under: History, Ancient History on 2021-06-28 09:57:33
# Kanishka was succeeded by his son Vasishka.
# Vasishka was followed by Huvishka and Kanishka II (son of Vasishka).
# Kanishka II was followed by Vasudeva I.
# Vasudeva I was the last great king of the Kushanas. After his death, the empire disintegrated away. He probably died in 232 AD

After 

Kanishka of Kushan Dynasty

Filed under: History, Ancient History on 2021-06-28 09:54:08
# He rules from 127 AD – 150 AD.
# Considered the greatest Kushana king and also a great king of ancient India.
# Son of Vima Kadphises.
# His kingdom included Afghanistan, parts of Sindhu, parts of Parthia, Punjab, Kashmir, parts of Magadha (including Pataliputra), Malwa, Benaras, perhaps part

Top 20+ SRTs Situation Reaction Test for SSB part 5

Filed under: SSB on 2021-06-27 06:56:11
Here are 20+ top SRTs to practice for your SSB. You can discuss SRT in this website's Forum. SSB Forum 
https://www.mcqbuddy.com/forum

List of SRTs: 
# His sister’s marriage is fixed. His relative refused to give loans/money. He…

# The marriage of your sister is fixed. He is not granted 

Tips for handling negative WAT (Word Association Test) in SSB

Filed under: SSB on 2021-06-27 06:46:05
Positive situation and positive words could be handled by everyone as it doesn’t demand any specific qualities but a true commander and leader are one who stood against the wind during the adverse conditions and the same thing is tested in this test by giving negative words. Here are some of the k

100+ important words for WAT SSB

Filed under: SSB on 2021-06-27 06:43:13
Fear
Future
Word
Love
Life
Error
Dance
Fruit
Speed
Food
Water
Medicine
Music
Green
Technology
Luxury
Children
Light
Knowledge
Nothing
Discipline
Tackle
Bold
Sorry
Beauty
Faith
Nature
Clock
Family
Frame
Media
Ball
Hate
Cool
Avoid
Comfort
Defeat
Original
Assist
F

Top 30 SRTs Situation Reaction Test for SSB part 4

Filed under: SSB on 2021-06-26 10:41:32
# You were travelling in a train during night. A thief came and stole your bag and jumped off from train. You will 

# You saw your sister was walking with stranger. You will 

# You are working in government office and suddenly receive a call that your father had met with an accident. You will 

The Peninsular Rivers Indian Geography

Filed under: Geography, Rivers on 2021-06-25 18:38:28
The peninsular rivers are the rivers that originate from the peninsular plateaus and small hills of India. These rivers are seasonal or non-perennial as they receive water only form the rains and thus cannot maintain water flow throughout the year. Some of the famous peninsular rivers include Kaveri

The Himalayan Rivers Indian Geography

Filed under: Geography, Rivers on 2021-06-25 18:37:14
The Himalayan Rivers are the rivers that originate from the Himalayan mountain ranges. These rivers are snow fed; they receive water from the melting ice of the glaciers as well as from the rains. The three main Himalayan Rivers are the Ganga, the Indus and the Brahmaputra. These three rivers flow t

Jalianwala Bagh Massacre Explaination

Filed under: History, Modern History on 2021-06-25 13:23:29
# incident on April 13, 1919, in which British troops fired on a large crowd of unarmed Indians in an open space known as the Jallianwala Bagh in Amritsar in the Punjab region (now in Punjab state) of India, killing several hundred people and wounding many hundreds more.

# During World War I (191

Life of Gautam Buddha and Buddhism

Filed under: History, Ancient History on 2021-06-25 10:14:43
#  Buddhism was founded by Gautama Buddha.
 # Buddha was born as Prince Siddhartha at Lumbini near Kapilavastu (in present Nepal) in 566 BC.
# He was the son of Suddhodhana and Mahamaya. Suddhodhana was the chief of the Sakya clan. Due to this, Buddha was also known as ‘Sakyamuni’.
# His moth

Rulers of Gupta Empire

Filed under: History, Gupta Empire on 2021-06-24 16:21:43
These are the rulers of Gupta Empire. 
1. Sri Gupta	
# Founder of Gupta Dynasty
# Reign from 240 CE to 280 CE
# Used the title of ‘Maharaja‘

2. Ghatotkacha	
# Son of Sri Gupta
# Took the title of ‘Maharaja‘

3. Chandragupta I	
# Reigned from 319 CE to 335/336 CE
# Started the Gu

Rocks and Minerals for UPSC

Filed under: Geography, Earth on 2021-06-24 16:09:03
# The earth’s crust is made up of various types of rocks.

# Rock- Any natural mass of mineral matter that makes up the earth’s crust.

# There are three major types of rocks-
Igneous rocks-when the molten magma cools; it solidifies to become igneous rock.

# Sedimentary rocks- igneous ro

Interior of Earth Geography

Filed under: Geography, Earth on 2021-06-24 16:07:39
# The earth is made up of several concentric layers with one inside another.
# Crust – The uppermost layer over the earth’s surface.
# It is the thinnest of all the layers.
It is about 35 km. on the continental masses and only 5 km. on the ocean floors.
# The main mineral constituents of the

Kalinga War Ancient History

Filed under: History, Ancient History, Satvahan Dynasty on 2021-06-23 20:13:28
# The Rock Edict XIII describes brightly the horrors and miseries of Kalinga war and its impact on Ashoka’s life.

# The Rock Edict XIII describes that one lakh people were killed in this war, several lakhs perished and a lakh and a half were taken prisoners.

#:These figures might be exaggera

Economy of Satvahan Dynasty

Filed under: History, Ancient History, Satvahan Dynasty on 2021-06-23 20:03:23
# Major economic system of Satavahana and other contemporary dynasties was well organized and systematic.

# There was all round development in the field of agriculture, industry, and trade during this period.

# Agriculture was the main occupation of a large section of the people.

# The land

Important Tips for Word Association Test SSB

Filed under: SSB on 2021-06-22 15:38:11
# You need to write fast as candidates often miss some of the words and run out of time.
# Practice a lot of WAT a month or two before your SSB Interview.
# Practice 20-25 words on a daily basis.
# After practicing, read your sentences again and again to point out the improvements.
# If possible

Which gases are found in our Atmosphere

Filed under: Geography, Atmosphere on 2021-06-22 15:21:14
# Nitrogen-is the most plentiful gas in the air.
Plants need nitrogen for their survival.
# Oxygen- is the second most abundant gas in the air.
# Humans and animals take oxygen from the air as they inhale.
# Carbon dioxide- is another most important gas.
# Green plants use carbon dioxide to mak

Structure of our Atmosphere

Filed under: Geography, Atmosphere on 2021-06-22 15:19:25
Our atmosphere is divided into five layers starting from the earth’s surface.

# Troposphere - the most important layer of the atmosphere. Its average height is 13 km. The air we inhale exists here. Most weather phenomena like rainfall, hailstorm, etc. occur in this layer.
# Stratosphere- just 

Interesting facts about the Passes in India

Filed under: Geography, Indian Geography on 2021-06-22 15:17:21
# The Dungri la pass or Mana Pass is the high altitude mountain pass and the highest motorable road with an elevation of 18,399 ft.
# Jawahar tunnel was constructed under the Banihal pass.
# Shipki La is a Himalayan pass that connects India and China.
# Zoji La pass connects the Ladakh and Kashmi

Mountain Passes in Southern India

Filed under: Geography, Indian Geography on 2021-06-21 16:06:26
# Shencottah Gap:
 Madurai-Kottayam	It is located in the Western Ghats. It joins the Madurai city in Tamil Nadu with the Kottayam district in Kerala.
The second-largest gap in the Western Ghats which is situated five kilometers from town is known by its name that is Shencottah Gap road-rail lines 

Mountain Passes in Kashmir

Filed under: Geography, Indian Geography on 2021-06-21 16:04:20
# Banihal Pass (Jawahar Tunnel): Banihal with Qazigund
Banihal pass is a popular pass in Jammu and Kashmir. It is situated in the Pir- Panjal Range. It connects Banihal with Qazigund.

# Zoji La: Srinagar- 
Kargil & Leh	It connects Srinagar with Kargil and Leh. Beacon Force of Border Road Organi

Mountain Passes in the Northeastern States

Filed under: Geography, Indian Geography on 2021-06-21 16:02:17
# Bomdi-La: Arunachal Pradesh-Lhasa
The Bomdi-La pass connects Arunachal Pradesh with Lhasa, the capital city of Tibet. It is located in the east of Bhutan.

# Dihang pass: Arunachal Pradesh- Mandalay	
It is located in the Northeastern states of Arunachal Pradesh. This pass connects Arunachal Pr

Facts about Satavahana Dynasty

Filed under: History, Ancient History, Satvahan Dynasty on 2021-06-20 11:07:14
In the northern region, the Mauryas were succeeded by the Sungas and the Kanvas. However, the Satavahanas (natives) succeeded the Mauryas in Deccan and in Central India.

# It is believed that after the decline of the Mauryas and before the advent of the Satavahans, there must have been numerous s

Chedi Dynasty Ancient History

Filed under: History, Ancient History on 2021-06-20 11:03:08
# The Chedi/Cheti dynasty rose in Kalinga in the 1st century BCE.
# The Hathigumpha inscription situated near Bhubaneswar talks about this.
# This inscription was engraved by king Kharavela who was the third Cheti king.
# King Kharavela followed Jainism.
# Chedi dynasty was also known as Cheta o

Brief description of Kanva Dynasty

Filed under: History, Ancient History on 2021-06-20 11:02:09
# According to the Puranas, there were 4 kings of the Kanva dynasty who were, Vasudeva, Bhumimitra, Narayana and Susarman.
# The Kanvas were said to be Brahmins.
The Magadha Empire had declined by this time to a great extent.
# The Northwest region was under the Greeks and parts of the Gangetic p

Mountain Passes in Uttarakhand for UPSC

Filed under: Geography, Indian Geography on 2021-06-20 10:42:23
Traill’s Pass- 
It is located in Uttarakhand. It is situated at the end of the Pindari glacier and connects the Pindari valley to Milam valley. This pass is very steep and rugged.

Lipu Lekh: 
Uttarakhand-Tibet	It is located in Uttarakhand. It connects Uttarakhand with Tibet. This pass is an i

Mountain Passes in Leh and Ladakh for UPSC

Filed under: Geography, Indian Geography on 2021-06-20 10:39:39
Khardung La:
It is the highest motorable pass in the country. It connects Leh and Siachen glaciers. This pass remains closed during the winter.

Thang La / Taglang La:
It is located in Ladakh. It is the second-highest motorable mountain pass in India.

Aghil Pass: 
It is situated to the North

Mountain passes in India

Filed under: Geography, Indian Geography on 2021-06-20 10:36:50
Mountain pass is a connectivity route through the mountain run. It is a gateway to connect different parts of the country and also with neighbouring countries for different purposes. 
Some of the Important Mountain Passes India are:

Zoji La
Bara- Lacha Pass
Mana Pass
Shipki La
Jelep La

Na

Important Facts about Lakes for UPSC Prelims

Filed under: Geography, Lakes on 2021-06-20 10:32:41
 Wular lake - is one of the biggest freshwater lakes in Asia and it was formed as a result of tectonic activity.
 Chilika Lake - in Odisha is the largest saline water lake in India.
Vembanad Lake - in Kerala is the longest lake in India.
Cholamu Lake - in Sikkim is the highest lake in India.
Lon

List of Important Lakes in India

Filed under: Geography, Lakes on 2021-06-19 19:28:29
The list of important lakes in India is given below:

Pulicat lake:	Andhra Pradesh
Kolleru Lake:	Andhra Pradesh
Haflong Lake:	Assam
Deepor Beel:	Assam
Chandubi Lake:	Assam
Kanwar lake:	Bihar
Hamirsar Lake:	Gujarat
Kankaria Lake:	Gujarat
Badkhal Lake:	Haryana
Brahma Sarovar:	Haryana
Chand

Top 10 largest Lakes in India

Filed under: Geography, Lakes on 2021-06-19 19:21:26
These lakes are in descending order: 
Vembanad Lake	:       Kerala
Chilika Lake:	Odisha
Shivaji Sagar Lake:	Maharashtra
Indira Sagar lake:	Madhya Pradesh
Pangong Lake:	Ladakh
Pulicat Lake:	Andhra Pradesh
Sardar Sarovar Lake:	Gujarat
Nagarjuna Sagar Lake:	Telangana
Loktak Lake:	Manipur
Wula

Consequences of Sunga rule

Filed under: History, Sunga Dynasty on 2021-06-19 17:54:32
# Hinduism was revived under the Sungas.
The caste system was also revived with the rise of the Brahmanas.
# Another important development during the Sunga reign was the emergence of various mixed castes and the integration of foreigners into Indian society.
# The language of Sanskrit gained more

End of the Sunga kings

Filed under: History, Sunga Dynasty on 2021-06-19 17:53:45
# Vasumitra’s successors are not clearly known. Different names crop up in several accounts such as Andhraka, Pulindaka, Vajramitra and Ghosha.
# The last Sunga king was Devabhuti. He was preceded by Bhagabhadra.
# Devabhuti was killed by his own minister, Vasudeva Kanva in around 73 BC. This es

Agnimitra the Sunga King

Filed under: History, Sunga Dynasty on 2021-06-19 17:52:03
# Was Pushyamitra’s son who succeeded him to the throne.
# His reign lasted from about 149 BC to 141 BC.
# By this time, Vidarbha broke away from the empire.
# Agnimitra is the hero of Kalidasa’s poem, Malavikagnimitram.
# His son Vasumitra succeeded him as king.

Pushyamitra Sunga in Sunga Dynasty

Filed under: History, Sunga Dynasty on 2021-06-19 17:51:12
# Pushyamitra Sunga was Brahmin army chief of Brihadratha, the last king of the Mauryas.
During a military parade, he killed Brihadratha and established himself on the throne in 185 or 186 BC.
# According to some historians, this was an internal revolt against the last Mauryan king. Some say it wa

After the Maurya Empire Rise of Sunga Dynasty

Filed under: History, Sunga Dynasty on 2021-06-19 17:49:35
After the death of Ashoka, the Mauryan Empire steadily disintegrated as his successors were not able to keep the vast empire from fracturing away. Independent kingdoms arose out of the provinces. Foreign invasions were occurring in the northwest. Kalinga declared its independence. In the South, the 

Ashoka Dhamma in Maurya Empire

Filed under: History, Maurya Empire on 2021-06-18 21:29:09
# Ashoka established the idea of paternal kingship.
# He regarded all his subjects as his children and believed it the king’s duty to look after the welfare of the subjects.
# Through his edicts, he said everybody should serve parents, revere teachers, and practice ahimsa and truthfulness.
# He

Conversion of Ashoka into Buddhism

Filed under: History, Maurya Empire on 2021-06-18 21:27:21
# The battle with Kalinga fought in 265 BC was personally led by Ashoka and he was able to vanquish the Kalingas.
# Whole cities were destroyed and more than a hundred thousand people were killed in the war.
# The horrors of war disturbed him so much that he decided to shun violence for the rest o

Rise of the power of King Ashoka in Maurya Empire

Filed under: History, Maurya Empire on 2021-06-18 21:26:15
# Ashoka was not the eldest son of Bindusara and so was not the heir presumptive.
# Bindusara wanted his elder son Susima to be crowned the next king.
# But Ashoka was trained in military and weapons and showed great skills as an administrator when he was made the governor of Ujjain.
# In the war

About King Ashoka in Maurya Empire

Filed under: History, Maurya Empire on 2021-06-18 21:25:00
# Son of Mauryan Emperor Bindusara and Subhadrangi. Grandson of Chandragupta Maurya.
# His other names were Devanampiya (Sanskrit Devanampriya meaning Beloved of the Gods) and Piyadasi.
# Considered one of India’s greatest emperors.
# He was born in 304 BC.
# His reign lasted from 268 BC to 23

Why did the Mauryan dynasty fall

Filed under: History, Maurya Empire on 2021-06-18 07:10:16
The decline of the Maurya Dynasty was rather rapid after the death of Ashoka/Asoka. One obvious reason for it was the succession of weak kings. Another immediate cause was the partition of the Empire into two. The Mauryan Empire began to decline after the death of Ashoka in 232 BC.

About Chanakya Guru of Chandragupta Maurya

Filed under: History, Maurya Empire on 2021-06-18 07:09:11
Chanakya
# Teacher of Chandragupta Maurya, who was also his Chief Minister.
# He was a teacher and scholar at Taxila. 
# Other names are Vishnugupta and Kautilya.
# He was also a minister in the court of Bindusara.
# He is credited to be the master strategist behind the usurping of the Nanda th

Second Ruler of the Mauryan Empire Bindusara

Filed under: History, Maurya Empire on 2021-06-18 07:06:16
# Son of Chandragupta.
# He ruled from 297 BC to 273 BC.
# Also called Amitraghata (Slayer of foes) or Amitrochates in Greek sources.
# Deimachus was a Greek ambassador at his court.
# He had appointed his son, Ashoka as the governor of Ujjain.
# Bindusara is believed to have extended the Maury

Founder of Mauryan Empire-Chandragupta Maurya

Filed under: History, Maurya Empire on 2021-06-17 10:14:22
# Chandragupta’s origins are shrouded in mystery. The Greek sources (which are the oldest) mention him to be of non-warrior lineage. The Hindu sources also say he was a student of Kautilya of humble birth (probably born to a Shudra woman). Most Buddhist sources say he was a Kshatriya.
# It is gen

Rise of Maurya Empire Ancient History

Filed under: History, Maurya Empire on 2021-06-17 10:12:14
In Ancient India, many significant empires evolved. One of them was the Mauryan empire. Founded by Chandragupta Maurya, the Mauryan empire was an important dynasty in our history. 
# The last of the Nanda rulers, Dhana Nanda was highly unpopular due to his oppressive tax regime.
# Also, post-Alexa

Top 20 SRTs for SSB part 3

Filed under: SSB on 2021-06-16 21:10:48
1) He had exams the next day & the road to his school was flooded with continuous rain for last two days.
2) While in discussion, his friend shouted at him, that he don’t know anything. He.......
3) While passing by he found two people sneaking at a house from the window. He.............
4) He 

Causes for the rise of Magadha

Filed under: History, Magadha Empire on 2021-06-16 21:00:48
Geographical factors

# Magadha was located on the upper and lower parts of the Gangetic valley.
# It was located on the mainland route between west and east India.
# The area had fertile soil. It also received enough rainfall.
# Magadha was encircled by rivers on three sides, the Ganga, Son an

Explain Nanda Dynasty

Filed under: History, Magadha Empire on 2021-06-16 20:58:12
Nanda Dynasty
This was the first non-Kshatriya dynasty and it lasted from 345 BCE to 321 BCE. The first ruler was Mahapadma Nanda who usurped the throne of Kalasoka.

About Mahapadma Nanda:

# He is called the “first historical emperor of India.” (Chandragupta Maurya is the First Emperor of

Explain Sisunaga Dynasty

Filed under: History, Magadha Empire on 2021-06-16 20:55:11
Sisunaga Dynasty: 
According to Sri Lankan chronicles, the people of Magadha revolted during the reign of Nagadasaka and placed an amatya (minister) named Sisunaga as the king. Sisunaga dynasty lasted from 413 BCE to 345 BCE.

Sisunaga

# Was the viceroy of Kasi before becoming king of Magadha.

Is Newton's Third Law of Motion is incorrect

Filed under: Science on 2021-06-15 08:38:58
Sir Isaac Newton who propounded the laws of motion. He gave his three laws related to motion. Two rules are correct for them but there is some inaccuracy in the third rule, so let's see what is it? Newton's third law was that for every action there is an equal opposite reaction, for example if we se

Types of Clouds Geography

Filed under: Geography, Atmosphere on 2021-06-15 06:26:26
Most clouds can be divided into groups (high/middle/low) based on the height of the cloud's base above the Earth's surface. Other clouds are grouped not by their height, but by their unique characteristics, such as forming alongside mountains (Lenticular clouds) or forming beneath existing clouds (M

Ibrahim Lodi in Lodi Dynasty

Filed under: History, Lodhi Dynasty on 2021-06-15 06:16:22
Ibrāhīm Lodī, (died April 21, 1526, Panipat [India]), last Afghan sultan of Delhi of the Lodī dynasty. He was a suspicious tyrant who increasingly alienated his nobles during his reign.
The son of Sikandar, Ibrāhīm succeeded to the throne on his father’s death (Nov. 21, 1517) and was quickl

Lodhi Dynasty Indian History

Filed under: History, Lodhi Dynasty on 2021-06-15 06:14:04
Lodī dynasty, (1451–1526), last ruling family of the Delhi sultanate of India. The dynasty was of Afghan origin. The first Lodī ruler was Bahlūl Lodī (reigned 1451–89), the most powerful of the Punjab chiefs, who replaced the last king of the Sayyid dynasty in 1451. Bahlūl was a vigorous le

What are the Teachings of Jainism

Filed under: History, Ancient History on 2021-06-14 17:02:03
# Mahavira rejected Vedic principles.

# He did not believe in God’s existence. According to him, the universe is a product of the natural phenomenon of cause and effect.

# He believed in Karma and transmigration of the soul. The body dies but the soul does not.

# One will be punished or r

Causes of the rise of Jainism

Filed under: History, Ancient History on 2021-06-14 16:59:22
# Vedic religion had become highly ritualistic.

# Jainism was taught in Pali and Prakrit thus was more accessible to the common man as compared to Sanskrit.

# It was accessible to people of all castes.

# Varna system had rigidified and people of the lower castes led miserable lives. Jainism

Who was founder of Jainism

Filed under: History, Ancient History on 2021-06-14 16:58:24
Founder of Jainism – Vardhaman Mahavira (539- 467 B.C.)
Here are some great points about Verdhaman Mahavira.

# Considered the last Tirthankara.

# He was born at Kundagrama near Vaisali.

# His parents were Kshatriyas. Father – Siddhartha (Head of Jnatrika Clan); Mother – Trishala (Sis

Origin of Jainism Ancient History

Filed under: History, Ancient History on 2021-06-14 16:56:40
Vardhana Mahavira was the 24th Tirthankara (a great teacher) and is said to have propounded Jainism.

Origin of Jainism:

# Jainism is a very ancient religion. As per some traditions, it is as old as the Vedic religion.

# The Jain tradition has a succession of great teachers or Tirthankaras.

Teachings of the Buddah-Buddhist Philosophy

Filed under: History, Ancient History on 2021-06-14 16:54:53
The teaching are mentioned below:

# It teaches the Middle Path renouncing extreme steps like indulgence and strict abstinence.

# The four noble truths (Arya Satya) in Buddhism are:
1. The world is full of sorrow
2. Desire is the root cause of all sorrow
3. Sorrow can be conquered by conquer

Explain Gautam Buddha Life for UPSC

Filed under: History, Ancient History on 2021-06-14 16:50:41
Gautam Buddha’s teachings revolve around the middle path of the living, the eight-fold path to enlightenment, and four noble truths. This article will provide you with relevant NCERT notes on Buddha, Buddha’s philosophy and teachings of Gautam Buddha, for the IAS Exam.


 #   Buddhism was fou

Top 15 Solved SRTs Situation Reaction Test for SSB

Filed under: SSB on 2021-06-13 17:31:44
Q.1. His sister’s marriage is fixed. His relative refused to give loan/money. He…
Ans. Raises money through the bank, performs the marriage, helps his parents and returns the loan              through Equated Monthly Installments.
Q.2. Marriage of your sister is fixed. He is not granted leave 

Top 20 SRT Situation Reaction Test for SSB part 2

Filed under: SSB on 2021-06-13 17:23:17
1) He was rather young when his father was killed in the war and later mother kidnapped by the rival group. He had no other relative. He.............
2) You are on the way to your home suddenly your bicycle got punctured. You…..
3) He urgently needed of money. He...
4) During d exams his teache

Top 20 SRT Situation Reaction Test for SSB

Filed under: SSB on 2021-06-13 17:14:34
1) His captain was injured before a crucial match, he was asked to lead the team? He. . . . . . . . . . . . . . . . . . . . . . . . .
2) He was on his way to home and suddenly it started raining heavily? He. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3) You are an officer posted

Who was Udayabhadra/Udayin Magadha Empire

Filed under: History, Magadha Empire on 2021-06-13 14:21:13
Udayabhadra/Udayin (460 BCE – 444 BCE)

# Son of Ajatasatru.
# Shifted the capital to Pataliputra (Patna).
# Last of the major Haryanka rulers.
# Udayin’s reign is important because he built the fort upon the confluence of the rivers Ganga and Son at Pataliputra. This was done because Patna

Who was Ajatasatru in Magadha Empire

Filed under: History, Magadha Empire on 2021-06-13 14:19:02
Here is the information about Ajatasatru::

# Son of Bimbisara and Chellana.
# He killed his father and became ruler.
# Embraced Buddhism.
# He convened the First Buddhist Council at Rajagriha just after the death of Buddha in 483 BCE. Read more on Buddhist Councils here.
# Won wars against Ko

Who was Bimbisara in Magadha Empire

Filed under: History, Magadha Empire on 2021-06-13 14:17:00
Here is the information about Bimbisara::
# Son of Bhattiya.
# According to Buddhist chronicles, Bimbisara ruled for 52 years (544 BCE – 492 BCE).
# Contemporary and follower of the Buddha. Was also said to be an admirer of Mahavira, who was also his contemporary.
# He Had his capital at Giriv

The Magadha Empire

Filed under: History, Magadha Empire on 2021-06-13 14:14:28
The Magadha Empire encompasses the rule of three dynasties over time – Haryanka Dynasty, Shishunaga Dynasty, and Nanda Dynasty. The timeline of the Magadha Empire is estimated to be from 684 BCE to 320 BCE.

Rise of Magadha Notes for UPSC Exam
The four Mahajanapadas – Magadha, Kosala, Avanti 

Later Vedic Period Vedic Civilization

Filed under: History, Ancient History on 2021-06-12 16:31:12
Later Vedic Period or Painted Grey Ware Phase (1000 BC – 600 BC)

During this time, the Aryans moved eastwards and occupied western and eastern UP (Kosala) and Bihar.

Political structure:

# Kingdoms like Mahajanapadas were formed by amalgamating smaller kingdoms.
# King’s power increase

Early Vedic Period Vedic Civilization

Filed under: History, Ancient History on 2021-06-12 16:29:15
Early Vedic Period or Rig Vedic Period (1500 BC – 1000 BC)

Initially, the Aryans lived in the land known as “Sapta Sindhu” (Land of the Seven Rivers). These seven rivers were: Sindhu (Indus), Vipash (Beas), Vitasta (Jhelum), Parushni (Ravi), Asikni (Chenab), Shutudri (Satluj) and Saraswati.

Indo-Aryan Migration to Vedic Civilization

Filed under: History, Ancient History on 2021-06-12 16:26:45
# The Aryans were a semi-nomadic pastoral people.

# The original homeland of the Aryans is a matter of debate with different experts suggesting different regions from where they originated.

# Some say they came from the area around the Caspian Sea in Central Asia (Max Muller), while others thi

50+ Words for Word Association Test SSB

Filed under: SSB on 2021-06-12 12:45:08
# Quality – Punctuality is an uncompromising quality of a good leader.
# Hide – Hide and seek is an interesting game.
# College – The electoral college chose her as a new representative.
# Journal – Maintaining a journal helps in self-development.
# Pet – A dog is the best pet a human 

50 Important Word Association Test-WAT for SSB

Filed under: SSB on 2021-06-12 12:23:22
1. Garden – PM Modi addressed the Indians at Madison Square Garden in New York.
2. Cinema – Cinematography is taken up as a profession by many students nowadays.
3. Women – Respecting a woman makes for a true gentleman.
4. Persuade – Persuasive people always have half the battle won.
5. 

Explain Upnishads Vedic Literature

Filed under: History, Ancient History on 2021-06-11 20:36:49
A few important points about Upanishads are mentioned below:

# There are 108 Upanishads
# Out of 108 Upanishads, 13 are considered the major ones.
# The concepts of ‘Atman’ and ‘Brahman’ are majorly explained by Upanishads.

It contains philosophical ideas about the following concepts

Brahamanas Vedic Literature

Filed under: History, Ancient History on 2021-06-11 20:34:12
They are the prose texts that explain the hymns in the Vedas and are also the classification of Sanskrit texts that are embedded within each Veda, incorporating myths and legends to explain and instruct Brahmins on the performance of Vedic rituals. In addition to explaining the symbolism and meaning

Types of Vedic Literature

Filed under: History, Ancient History on 2021-06-11 20:29:43
There are broadly two types of Vedic literature:

Shruti Literature – The word ‘Shruti’ from the term ‘Shruti Literature’ means ‘to hear’ and describes the sacred texts which comprise of Vedas, Brahmanas, Aranyakas, & Upanishads. Shruti Literature is canonical, consisting of revelati

Vedic Literature What are Vedas?

Filed under: History, Ancient History on 2021-06-11 20:28:00
The Vedas are the large bodies of religious text that is composed of Vedic Sanskrit and originated in ancient India. They form the oldest scriptures of Hinduism and the oldest layer of Sanskrit literature. The Vedas are said to have passed on through verbal transmission from one generation to the ne

Features of Rigveda

Filed under: History, Ancient History on 2021-06-11 14:16:10
# It is the oldest form of Veda and oldest known Vedic Sanskrit text(1800 – 1100 BCE).

# The meaning of the word ‘Rigveda’ is Praise Knowledge.

# It has 10600 verses.

# Out of 10 books or mandalas, book number 1 and 10 are the youngest ones as they were written later than books 2 to 9

Features of Samaveda

Filed under: History, Ancient History on 2021-06-11 14:13:39
# There are 1549 verses (except 75 verses, all have been taken from Rigveda).

# There are two Upanishads embedded in Samaveda – Chandogya Upanishad and Kena Upanishad.

# The Samaveda is considered as the root of the Indian classical music and dance.

# It is considered as the storehouse of

Features of Yajurveda

Filed under: History, Ancient History on 2021-06-11 14:12:02
#. It has two types – Krishna (Black/Dark) & Shukla (White/Bright).

# Krishna Yajurveda has an un-arranged, unclear, motley collection of verses.

# Shukla Yajurveda has arranged and clear verses.

# The oldest layer of Yajurveda has 1875 verses mostly taken up from Rigveda.

# The middle

Features of Atharvaveda

Filed under: History, Ancient History on 2021-06-11 14:10:01
# The daily procedures of life are very well enumerated in this Veda.

# It has 730 hymns/suktas, 6000 mantras, and 20 books.

# Paippalada and the Saunakiya are two surviving recensions of Atharvaveda.

# Called a Veda of magical formulas, it includes three primary Upanishads – Mundaka Upan

Types of Vedas

Filed under: History, Ancient History on 2021-06-11 14:06:32
There are four types of Vedas – Rigveda, Samaveda, Yajurveda, and Atharvaveda. One of the best sources of Ancient Indian History is Vedic literature. Vedas have formed the Indian scripture. The ideas and practices of Vedic religion are codified by the Vedas and they also form the basis of classica

Describe Rigveda for UPSC

Filed under: History, Ancient History on 2021-06-11 14:03:22
Rigveda is regarded as one of the most sacred texts of Hinduism. It has fascinated scholars and historians due to its significance and antiquity. It is a collection of ancient Indian collection of Vedic Sanskrit hymns.

# The Rigveda is divided into ten books which are known as Mandalas

# It is

The decline of Indus Valley Civilization

Filed under: History, Ancient History on 2021-06-10 15:33:50
1. Causes of the decline of this civilization have not been firmly established. Archaeologists now believe that the civilization did not come to an abrupt end but gradually declined. People moved eastwards and cities were abandoned. Writing and trade declined.

2. Mortimer Wheeler suggested that t

Indus Valley Civilization Important Sites

Filed under: History, Ancient History on 2021-06-10 15:32:09
1. In India: Kalibangan (Rajasthan), Lothal, Dholavira, Rangpur, Surkotda (Gujarat), Banawali (Haryana), Ropar (Punjab). In Pakistan: Harappa (on river Ravi), Mohenjodaro (on Indus River in Sindh), Chanhudaro (in Sindh).

2. The civilization was first discovered during an excavation campaign under

Indus Valley Civilization

Filed under: History, Ancient History on 2021-06-10 15:28:59
:- The Indus Valley Civilization was established around 3300 BC. It flourished between 2600 BC and 1900 BC (Mature Indus Valley Civilization). It started declining around 1900 BC and disappeared around 1400 BC.

:- This is also called Harappan Civilization after the first city to be excavated, Har

Important Chalcolithic Sites

Filed under: History, Ancient History on 2021-06-10 07:39:27
1. Ahar (Banas valley, South Eastern Rajasthan) – The people of this region practised smelting and metallurgy, supplied copper tools to other contemporary communities. Rice was cultivated here.

2. Gilund (Banas valley, Rajasthan) – Stone blade industry was discovered here.
Daimabad  (Ahmadna

Characteristics of the Chalcolithic Age

Filed under: History, Ancient History on 2021-06-10 07:37:54
1. Agriculture & cattle rearing – The people living in the stone-copper age domesticated animals and cultivated food grains. They domesticated cows, sheep, goats, pig and buffaloes and hunted deer. It is not clear whether they were acquainted with the horse or not. People ate beef but did not take

Chalcolithic Age Stone Copper Age

Filed under: History, Ancient History on 2021-06-10 07:36:10
The Chalcolithic Age marked the emergence of the use of metal along with stone tools. The first metal to be used was copper. The chalcolithic age largely applied to the pre-Harappan phase, but in many parts of the country, it appears after the end of the bronze Harappan culture.

Important Neolithic Sites Ancient History

Filed under: History, Ancient History on 2021-06-10 07:34:06
1. Koldihwa and Mahagara (lying south of Allahabad) – This site provides evidence of circular huts along with crude hand made pottery. There is also evidence of rice, which is the oldest evidence of rice, not only in India but anywhere in the world.

2. Mehrgarh (Balochistan, Pakistan) – The e

Neolithic Period New Stone Age and its features

Filed under: History, Ancient History on 2021-06-10 07:32:30
The term Neolithic is derived from the Greek word ‘neo’ which means new and ‘lithic’ meaning stone. Thus, the term Neolithic Age refers to the ‘New Stone Age’. It is also termed as ‘Neolithic revolution’ since it introduced a lot of important changes in man’s social and economic li

Important Mesolithic Sites Ancient History

Filed under: History, Ancient History on 2021-06-10 07:30:13
1. Bagor in Rajasthan is one of the biggest and best-documented Mesolithic sites in India. Bagor is on river Kothari where microliths along with animal bones and shells have been excavated.

2. Adamgarh in Madhya Pradesh provides the earliest evidence for the domestication of animals.

3. There 

Characteristic Features of the Mesolithic Era

Filed under: History, Ancient History on 2021-06-09 13:23:10
1. The people of this age lived on hunting, fishing and food gathering initially but later on they also domesticated animals and cultivated plants, thereby paving the way for agriculture.

2. The first animal to be domesticated was the wild ancestor of the dog. Sheep and goats were the most common

Mesolithic Period Middle Stone Age

Filed under: History, Ancient History on 2021-06-09 13:21:47
The term Mesolithic is derived from two Greek words – ‘meso’ and ‘lithic’. In Greek ‘meso’ means middle and ‘lithic’ means stone. Hence, the Mesolithic stage of prehistory is also known as the ‘Middle Stone Age’.

Both Mesolithic and Neolithic phases belong to the Holocene er

Upper Palaeolithic age

Filed under: History, Ancient History on 2021-06-09 13:19:32
The upper palaeolithic age coincided with the last phase of the ice age when the climate became comparatively warmer and less humid.
Emergence of Homo sapiens.
The period is marked by innovation in tools and technology. A lot of bone tools, including needles, harpoons, parallel-sided blades, fishi

Middle Palaeolithic age

Filed under: History, Ancient History on 2021-06-09 13:14:44
Tools used were flakes, blades, pointers, scrapers and borers.
The tools were smaller, lighter and thinner.
There was a decrease in the use of hand axes with respect to other tools.
Important middle Palaeolithic age sites:

Belan valley in UP
Luni valley (Rajasthan)
Son and Narmada rivers
Bh

Lower Palaeolithic Age Early Palaeolithic Age

Filed under: History, Ancient History on 2021-06-09 13:13:54
1. It covers the greater part of the Ice Age.
Hunters and food gatherers; tools used were hand axes, choppers and cleavers. 

2. Tools were rough and heavy.
One of the earliest lower Palaeolithic sites is Bori in Maharashtra.

3. Limestone was also used to make tools.
Major sites of lower Pal

Main characteristics of the Palaeolithic age

Filed under: History, Ancient History on 2021-06-09 13:11:27
1. The Indian people are believed to have belonged to the ‘Negrito’ race, and lived in the open air, river valleys, caves and rock shelters.
2. They were food gatherers, ate wild fruits and vegetables, and lived on hunting.
There was no knowledge of houses, pottery, agriculture. It was only in

Palaeolithic Age Old Stone Age

Filed under: History, Ancient History on 2021-06-09 13:09:25
The term ‘Palaeolithic’ is derived from the Greek word ‘palaeo’ which means old and ‘lithic’ meaning stone. Therefore, the term Palaeolithic age refers to the old stone age. The old stone age or palaeolithic culture of India developed in the Pleistocene period or the Ice Age, which is a 

Stone Age Ancient History

Filed under: History, Ancient History on 2021-06-09 13:08:09
The stone age is the prehistoric period, i.e., the period before the development of the script, therefore the main source of information for this period is the archaeological excavations. Robert Bruce Foote is the archaeologist who discovered the first palaeolithic tool in India, the Pallavaram hand

Factors responsible for the origin of Ocean Currents

Filed under: Geography, Currents on 2021-06-08 20:53:22
Ocean currents are continuous movements of water in the ocean that follow set paths, kind of rivers in the ocean. There are two distinct current systems in the ocean—surface circulation, which stirs a relatively thin upper layer of the sea, and deep circulation, which sweeps along the deep-sea flo

Mechanism of the onset of the Indian Monsoon

Filed under: Geography, Monsoon on 2021-06-08 20:46:54
Indian Monsoon can be best described as the seasonal reversal of winds. In the Indian monsoon winds flow from sea to land during the summer and from land to sea during winter.

The mechanism of the Indian monsoon can be understood in two phases namely, the onset of the South-West Monsoon and retre

Internal Structure of the Earth

Filed under: Geography, Earth on 2021-06-08 20:43:42
On the basis of seismic investigations, the earth can be divided into three major layers: crust, mantle, core.
Differentiation of layers of Earth

Crust: The outer superficial layer of the earth is called the "crust". In continental regions, the crust can be divided into two layers.
The upper la

What is Clouds

Filed under: Geography, Clouds on 2021-06-08 15:41:48
1. A cloud is an accumulation or grouping of tiny water droplets and ice crystals that are suspended in the earth atmosphere.

2. They are masses that consist of huge density and volume and hence it is visible to naked eyes.

3. There are different types of Clouds. They differ from each other in

Aurangzeb Mughal Dynasty

Filed under: History, Mughal Dynasty on 2021-06-08 15:34:17
1. In the north-east, the Ahoms [a kingdom in Assam near Brahmaputra valley] were defeated in 1663, but they rebelled again in the 1680s. Because Ahoms successfully resisted Mughal expansion for a long time and they dont want to give up their sovereignty which they were enjoying for 600 years .

2

Jahangir and Shahjahan Mughal Dynasty

Filed under: History, Mughal Dynasty on 2021-06-08 15:32:08
Jahangir [1605-1627]:-
1. Military campaigns started by Akbar continued.

2. The Sisodiya ruler of Mewar, Amar Singh, accepted Mughal service. Less successful campaigns against the Sikhs, the Ahoms and Ahmadnagar followed.

Shah Jahan [1627-1658]: 

1. Mughal campaigns continued in the Deccan

Humayun and Akbar in Mughal Dynasty

Filed under: History, Mughal Dynasty on 2021-06-07 15:58:18
Humayun [1530-1540, 1555-1556]
1. Humayun divided his inheritance according to the will of his father. His brothers were each given a province.

2. Sher Khan defeated Humayun which made him forced to flee to Iran.

3. In Iran, Humayun received help from the Safavid Shah. He recaptured Delhi in 

Babur The Founder of Mughal Empire

Filed under: History, Mughal Dynasty on 2021-06-07 15:56:07
1. The first Mughal emperor (1526- 1530)

2. Political situation in north-west India was suitable for Babur to enter India .

3. Sikhandar Lodi died in 1517 and Ibrahim Lodi succeded him. I. Lodhi tried to create a strong centralised empire which alarmed Afghan chiefs as well as Rajaputs.

4. 

The Mughal Dynasty

Filed under: History, Mughal Dynasty on 2021-06-07 15:53:09
1. From the latter half of the 16th century, they expanded their kingdom from Agra and Delhi until in the 17th century they controlled nearly all of the subcontinent.

2. They imposed structures of administration and ideas of governance that outlasted their rule, leaving a political legacy that su

Volcanic Landforms

Filed under: Geography, Volcano on 2021-06-07 12:26:44
1. The lava that is released during volcanic eruptions on cooling develops into igneous rocks.

2. The cooling may take place either on reaching the surface or from the inside itself.

3. Depending on the location of the cooling of lava, igneous rocks are classified as:

Mid-Ocean Ridge Volcanoes

Filed under: Geography, Volcano on 2021-06-07 12:18:07
1. These volcanoes occur in the oceanic areas.

2. There is a system of mid-ocean ridges more than 70,000 km long that stretches through all the ocean basins.

3. The central portion of this ridge experiences frequent eruptions.

Flood Basalt Provinces Volcano

Filed under: Geography, Volcano on 2021-06-07 12:17:16
1. These volcanoes outpour highly fluid lava that flows for long distances.

2. The Deccan Traps from India, presently covering most of the Maharashtra plateau, are a much larger flood basalt province.

Caldera Volcano

Filed under: Geography, Volcano on 2021-06-07 12:16:40
1. These are the most explosive of the earth’s volcanoes.

2. They are usually so explosive that when they erupt they tend to collapse on themselves rather than building any tall structure. The collapsed depressions are called calderas.

3. Their explosiveness indicates that its magma chamber 

Composite Volcanoes

Filed under: Geography, Volcano on 2021-06-07 12:15:40
1. Shape: Cone shaped with moderately steep sides and sometimes have small craters in their summits.

2. Volcanologists call these “strato-” or composite volcanoes because they consist of layers of solid lava flows mixed with layers of sand- or gravel-like volcanic rock called cinders or volca

Cinder Cone Volcanoes

Filed under: Geography, Volcano on 2021-06-07 12:14:24
1. Cinders are extrusive igneous rocks. A more modern name for cinder is Scoria.
2. Small volcanoes.
3. These volcanoes consist almost entirely of loose, grainy cinders and almost no lava.
4. They have very steep sides and usually have a small crater on top.

Shield Volcanoes

Filed under: Geography, Volcano on 2021-06-07 12:09:01
1. How to identify: They are not very steep but are far and wider. They extend to great height as well as distance.
2. They are the largest of all volcanoes in the world as the lava flows to a far distance. The Hawaiian volcanoes are the most famous examples.
3. Shield volcanoes have low slopes an

Islands Groups of India

Filed under: Geography on 2021-06-06 16:50:52
There are two major island groups in India. One in the Bay of Bengal and the other in the Arabian Sea. The Bay of Bengal groups of islands consists of 572 islands approximately. These are situated between 6°N to 14°N and 92°E to 94°E. Richie’s archipelago and Labyrinth are the two principal gr

What is Karewas in detail

Filed under: Geography on 2021-06-06 16:29:37
Kare was are the thick deposits of glacial clay and other materials embedded with moraine. The Kashmir Himalayas are famous for Karewas formations which are useful for the cultivation of Zafran, which is a local variety of saffron. Kashmir or the north-western Himalayas comprise a series of ranges s

how the Himalayas were formed

Filed under: Geography on 2021-06-06 16:28:34
The Himalayas have been formed due to folding by different mountain building movements. The major areas of the Himalayas have been formed by folding while minor has been formed as a result of weathering and other agents of changes. It had been uplifted from the Great Geosyncline known as Tethys sea 

Saline Lakes of Rajasthan

Filed under: Geography on 2021-06-06 16:27:05
Rajasthan lies in the desert area to the west of the Aravali hills. This region has very low rainfall. The groundwater in this region is impregnated with salt, therefore various saline lakes are found. Out of these, there are two well-known saline lakes on the eastern edge of the Thar Desert. They a

Explain Island Groups in India

Filed under: Geography on 2021-06-06 16:26:26
Arabian Sea and Bay of Bengal have a number of islands. They are called Lakshadweep, Andaman, and Nicobar islands. Andaman and Nicobar islands are the elevated portions of submarine mountains while the Lakshadweep Islands are built of coral deposits.

Explain Coastal Plains in India

Filed under: Geography on 2021-06-06 16:25:48
Arabian Sea and Bay of Bengal have a number of islands. They are called Lakshadweep, Andaman, and Nicobar islands. Andaman and Nicobar islands are the elevated portions of submarine mountains while the Lakshadweep Islands are built of coral deposits.

Explain The Greatest Indian Desert

Filed under: Geography on 2021-06-06 16:25:08
It lies to the west of the Aravali ranges in Rajasthan. This is the region of moving sand and low rainfall, known as Marusthali. It was drained by the Saraswati, Drisadvati, and Satluj rivers. But today Llini is the only river. There are numerous salt lakes of which Sambhar is the largest.

Explain The Great Peninsular Plateau

Filed under: Geography on 2021-06-06 16:24:29
The peninsular plateau forms the largest physiographic division facing towards the Bay of Bengal and the Arabian Sea. It stretches from the Satpura range (north) to Kanyakumari (south) and from the Sahyadri (Western Ghats) to Rajmahal hills in the east. It is triangular in shape having four physiogr

Explain The Great Northern Plain

Filed under: Geography on 2021-06-06 16:23:56
The great plains are composed of sediments deposited by rivers. They are quite extensive. The central and eastern parts of the plains have been formed by the tributaries of the Ganga and Brahmaputra rivers. Half of the Great plain lies in Uttar Pradesh and half in the state of Bihar.

Explain The Great Mountains

Filed under: Geography on 2021-06-06 16:23:21
These are formed by the continuous stretch of the mountain from Kashmir to Assam. It acts as a wall. They arc the Karakoram and the Himalayas. The Karakoram mountains lie between the Pamir plateau and the Indus River in the west. Baltoro is the famous glacier of the Karakoram range. They are very hi

What is horst Explain

Filed under: Geography on 2021-06-06 16:22:27
A horst is the uplift land between two parallel faults. The central mass of the land keeps standing while the adjoining areas are thrown down. It forms the shape of a block mountain or a horst. For example Vindhyan and Vosges.

characteristics of the Andaman and Nicobar Islands

Filed under: Geography on 2021-06-06 16:21:09
The main characteristics are :

1. The Great Andaman is a collection of three islands, north, middle, and south.
2. These are a group of islands.
3. The south coast is very indented and has the highest hill ranges,
4. There are 19 islands in Nicobar islands.

What is Karewas

Filed under: Geography on 2021-06-06 16:17:11
In the valley of Kashmir, the lake deposits comprise thick deposits of glacial clay and other materials embedded with maintaining, These deposits occur in the valleys within the Himalayan mountain where there was once glacial action and deposition of Morain.

Explain Doab with examples

Filed under: Geography on 2021-06-06 16:16:34
The plain formed between two rivers is known as Doab. It separates two rivers but maintains its uniform character over the whole area. In Punjab, Doabs maintain the physical characteristics of the Punjab plain.

Best Jalandhar Doab
Bari Doab
Chaz Doab
Sind Sagar Doab

What is Bhangar

Filed under: Geography on 2021-06-06 16:15:39
The south of Terai is a belt consisting of old and new alluvial deposits known as Bhangar. These areas stand above the level of floodwater and the flood plains. This land is made up of clay pebbles and gravel. In Gangetic plains, these alluvial lands have been formed by the deposition of sandbars by

Difference between northern mountain and peninsula

Filed under: Geography on 2021-06-06 16:15:00
The northern mountains are young, weak, and flexible and have suffered from folding and deformation. The peninsula contains mostly residual mountains. Here, the river valley is shallow having low gradients. On the other hand, the Himalayas mountains are tectonic and rivers are torrential. The format

Important Date of June month

Filed under: General Knowledge on 2021-06-06 09:51:22
Date	Day
June 01-	International Children’s Day
June 04-	International Day of Innocent Children Victims of Aggression
June 05-	World Environment Day
June 06-	National Day (Sweden)
June 08-	World Brain Tumour Day
June 10-	National Day (Portugal)
June 12-	World Day against Child Labour
June 1

What are tills

Filed under: Geography on 2021-06-06 08:10:50
Glacial deposits consists of clay, silt, sand and rocks of various sizes. Such materials deposited directly by the glacier are known as tills. till is deposited as glacial ice melts and drops its load of rock mountains.

What is piedmont glaciers

Filed under: Geography on 2021-06-06 08:10:20
Piedmont glaciers occupy broad low lands at the base of steep mountains and form where one or more valley glaciers emerge from the confining walls of mountain valleys.

Short note on Antarctic ice sheet

Filed under: Geography on 2021-06-06 08:08:33
Write a note on Antarctic ice sheet?

In the south polar region, the huge Antarctic ice sheet contains a maximum thickness of nearly 4300 meters.

It covers at area more than 13.9 million square kilometers about 12 times the area of India.

This huge volume off ice contains more than 90 percen

Differentiate between continental glaciers from valley glaciers

Filed under: Geography on 2021-06-06 08:07:37
Continental Glaciers: They are broad and extremely thick. They cover vast areas of land near the earth’s polar regions. Glaciers of this type build up at the center and slope outward to flow toward the sea in all directions.

Valley glaciers: They are long, narrow bodies of ice that fill high mo

End of the Swadeshi and Boycott Movements

Filed under: History on 2021-06-05 19:29:36
The British had seeded the seeds of communalism quite deep into India's social fabric, and the Swadeshi movement was unable to gain support from the Muslim masses, especially the Muslim peasantry, which in large parts of Bengal was in an inverse class relationship with the Hindu zamindars.

By mid

Effects of Swadeshi and Boycott Movements

Filed under: History on 2021-06-05 19:29:14
1. The Swadeshi and boycott movements were India's first 20th century movements that encouraged mass participation in modern nationalist politics by a large section of society.

2. For the first time, women came out of their homes and joined processions and picketing of foreign-made goods shops.

Importance of Swadeshi and Boycott Movements

Filed under: History on 2021-06-05 19:27:50
Launched in the early 20th century, the Swadeshi movement was a direct consequence of the British India government's decision to partition Bengal. The two main goals of this movement were the use of Swadeshi goods and the boycott of foreign-made goods.

Before the Swadeshi movement was launched, p

Impact of the Non-Cooperation Movement

Filed under: History on 2021-06-05 19:12:19
Despite the failure of the Non - Cooperation Movement to achieve its primary goal of Swaraj, it has succeeded on many other counts highlighted below:
 
1. The National Congress has shown that it represents the country's majority opinion. It can not be charged with representing a ' microscopic mino

End of the Non-Cooperation Movement

Filed under: History on 2021-06-05 19:11:48
While in 1921 the Non - Cooperation Movement was in full steam, the masses were awakened from their slumber and the grass root workers of Congress, as well as the leadership, were asking Mahatma Gandhi to launch the next phase of mass civil disobedience.

Gandhi announced that massive civil disobe

Chauri Chaura Incident

Filed under: History on 2021-06-05 19:11:21
A Congress - Khilafat procession took place at Chauri Chaura in U.P. district of Gorakhpur on February 5, 1922. Irritated by some policemen's behavior, they were attacked by a crowd section. The police opened fire on the unarmed procession in retaliation. Instigated by this, the whole procession att

The launch of the Non-Cooperation Movement

Filed under: History on 2021-06-05 19:10:49
The Jallianwala Bagh Massacre, Rowlatt Act and Khilafat Movement resulted in unrest among the masses anxious to take political action against the British government. Only added fuel to the fire was the economic hardship suffered by ordinary Indians. On August 1, 1920, the Non - Cooperation Movement 

Who were the Leaders of the Khilafat Movement

Filed under: History on 2021-06-05 19:07:29
The Ali Brothers (Maulana Mohammed Ali and Maulana Shaukat Ali), Maulana Azad, Hakim Ajmal Khan, and Hasrat Mohani were the leaders of the Khilafat Movement. Mahatma Gandhi later also became one of the leaders of the Khilafat Movement in India by strongly advocating the Khilafat cause.

Khilafat Movement in India

Filed under: History on 2021-06-05 19:06:55
Turkey had aligned itself in the First World War with Germany - led Axis powers that were defeated by Great Britain - led Allied powers. The political - conscious Muslims were critical of British and their allies treatment of the Turkish (Ottoman) Empire that had divided it and properly removed Thra

Causes of Non-Cooperation Movement and Khilafat Movement

Filed under: History on 2021-06-05 19:05:59
The Non - Cooperation Movement has had four main causes:
1. Jallianwala Bagh Massacre and Resultant Punjab Disturbances
2. Dissatisfaction with Montagu-Chelmsford Reforms
3. Rowlatt Act
4. Khilafat Agitation

1. Jallianwala Bagh Massacre and Resultant Punjab Disturbances
On April 13, 1919, a 

Non Cooperation Movement Indian History

Filed under: History on 2021-06-05 19:02:04
Noncooperation movement, unsuccessful attempt in 1920–22, organized by Mohandas (Mahatma) Gandhi, to induce the British government of India to grant self-government, or swaraj, to India. It was one of Gandhi’s first organized acts of large-scale civil disobedience (satyagraha).

The movement a

Reasons for Decline of Indus Valley Civilization

Filed under: History on 2021-06-05 14:24:39
Though there are various theories, the exact reason is still unknown. As per a recent study by IIT Kharagpur and Archaeological Survey of India, a weaker monsoon might have been the cause of the decline of Indus Valley Civilization. Environmental changes, coupled with a loss of power of rulers (cent

Indus Valley Society and Culture

Filed under: History on 2021-06-05 14:23:44
1. The systematic method of weights and measures ( 16 and its multiples).
2. Pictographic Script, Boustrophedon script – Deciphering efforts by I. Mahadevan
3. Equal status to men and women
4. Economic Inequality, not an egalitarian society
5. Textiles – Spinning and weaving
6. 3 types – 

The religion of Indus Valley People

Filed under: History on 2021-06-05 14:20:43
1. Pashupathi Mahadev (Proto Siva)
2. Mother goddess
3. Nature/ Animal worship
4. Unicorn, Dove, Peepal Tree, Fire
Amulets
5. Idol worship was practised ( not a feature of Aryans)
6. Did not construct temples.
7. The similarity to Hindu religious practises. (Hinduism in its present form origi

Indus Valley Sites and Specialties

Filed under: History on 2021-06-05 14:19:27
HARAPPA
1. Seals out of stones
2. Citadel outside on banks of river Ravi

MOHENJODARO
1. Great Bath, Great Granary, Dancing Girl, Man with Beard, Cotton, Assembly hall.
2. The term means ” Mount of the dead”
3. On the bank of river Indus
4. Believed to have been destructed by flood or in

Features of Indus Valley Civilization

Filed under: History on 2021-06-05 14:14:43
1. BC. 2700- BC.1900 ie for 800 years.
2. On the valleys of river Indus.
3. Also known as Harappan Civilization.
Beginning of city life.
4. Harappan Sites discovered by – Dayaram 5. Sahni (1921) – Montgomery district, Punjab, Pakistan.
6. Mohanjodaro discovered by – R. D. Banerji – Lark

Short description of Indus valley civilization

Filed under: History on 2021-06-05 14:12:33
Indus Valley Civilization was the first major civilization in South Asia,  which spread across a vast area of land in present-day India and Pakistan (around 12 lakh sq.km).

The time period of mature Indus Valley Civilization is estimated between BC. 2700- BC.1900 ie. for 800 years. But early Indu

Disease and symptoms

Filed under: Biology on 2021-06-05 13:51:56
Asthma:
The spores of the fungi, namely Aspergillus fumigates reaches the lungs of the human and constitutes a net like formation, thus, obstructs the function of lungs.
This is a infection disease.

Athlete’s foot:
This disease is caused by the fungi namely 

Tenia Pedes.
This is a infect

Diarrhoea disease its cause and symptoms

Filed under: Biology on 2021-06-05 13:49:07
Diarrhoea:

The reason of this disease is the presence of internal protozoa namely Entamoeba histolytica which is passed through house flies.

It causes wounds in the intestine. Protein digesting enzyme, trypsin is destroyed in this.

This disease is mostly found in children. Disease caused by

Third battle of panipat

Filed under: History on 2021-06-05 07:08:11
The Third Battle of Panipat was fought in 1761 between the Afghan invader Ahmad Shah Abdali and the Marathas under Sadashivrao Bhau Peshwa of Pune. Ahmad Shah won but with a very heavy casualty rate on both sides. It resulted in the worst defeat of Marathas in their history. The war led to a power v

Second battle of panipat

Filed under: History on 2021-06-05 07:07:15
The Second Battle of Panipat was fought on 5 November 1556 between the forces of Akbar and Samrat Hem Chandra Vikramaditya, a King of North India, who belonged to Rewari in Haryana and had captured the large states of Agra and Delhi defeating Akbar’s forces. This king, also known as Vikramaditya h

First battle of panipat

Filed under: History on 2021-06-05 07:02:47
The First Battle of Panipat was fought between the invading forces of Babur and the Lodi Empire, which took place on 21 April 1526 in North India. It marked the beginning of the Mughal Empire. This was one of the earliest battles involving gunpowderfirearms and field artillery.

Details:-
In 1526

Great knowledge about our solar system

Filed under: Geography on 2021-06-04 21:07:19
    The Sun is 93 million miles from the Earth. The light from the Sun only takes 8 minutes to travel to the Earth, but it would take Usain Bolt – the fastest man on Earth – 450 years to run from the Sun to the Earth.
    The Earth travels around the Sun in a loop that is shaped a bit like an o

What is proxima centuary?

Filed under: Geography on 2021-06-04 21:05:42
The nearest star to the Earth after the Sun is Proxima Centuri. It is red dwarf that is smaller and colder than our Sun and gives off a lot less light. Even though it is the closest star outside the Solar System, the light from it is too faint to see except with a telescope. Proxima Centuri is 24 tr

Definitions of heavenly bodies

Filed under: Geography on 2021-06-04 21:04:18
Asteroid – Asteroids are bodies of rock and ice in space. Millions of asteroids orbit the Sun -most between Mars and Jupiter. They vary in size between 1 metre across and 600 miles across.
Atmosphere – the layer of gas around a planet
Comet – a comet is a body of ice, dust and bits of rock t

Brief knowledge about our Planets

Filed under: Geography on 2021-06-04 21:02:17
Mercury – this is the closest planet to the Sun. It is the smallest planet and is made of rock. It is so close to the Sun that it only takes 88 days for it to complete its orbit and is much hotter than Earth.

Venus – Venus is the next planet from the Sun after Mercury. It is also made of rock