afaq

Storage devices CBSE Class 9 and 10

Storage devices come in various forms and serve different purposes based on their capacity, speed, portability, and use cases. Here’s an overview of the types you’ve mentioned: 1. Hard Disk Drive (HDD) Description: A hard disk drive is a traditional storage device that uses spinning disks (platters) to read and write data. Capacity: Typically ranges […]

Memory CBSE Class 9 and 10

Memory in computing is generally categorized into primary and secondary memory. Here’s a detailed breakdown of each type and their subcategories: Primary Memory Primary memory, also known as main memory, is the memory that the CPU accesses directly. It is faster than secondary memory but typically more expensive and volatile. Primary memory is essential for […]

Computer Systems – CBSE Class 9 and 10

A computer system is composed of several critical components that work together to perform a wide range of tasks. The main components include the Central Processing Unit (CPU), memory (both primary and secondary), storage devices, and Input/Output (I/O) devices. Here’s an overview of each component: Central Processing Unit (CPU) The CPU, often referred to as […]

Merge String Characters Program in Java

Define a class to accept two strings of same length and form a new word in such a way that, the first character of the first word is followed by the first character of the second word and so on. [10] Example: Input string 1-BALL Input String 2- WORD OUTPUT: BWAOLRLD import java.util.Scanner; public class […]

Name with A Program in Java

Define a class to declare an array to accept and store ten words. Display only those words which begin with the letter ‘A’ or ‘a’ and also end with the letter ‘A’ or ‘a’ [10] EXAMPLE Input: Hari, Anita. Akash, Amrita, Alina, Devi, Rishab, Jolin, Farha, AMITHA Output: Anita Amrita Alina AMITHA Farha import java.util.Scanner; […]

Reversed Case of Char Array Program in Java

Define a class to accept a string, and print the characters with the uppercase and lowercase reversed, but all the other characters should remain the same as before [10] EXAMPLE: INPUT: WelCoMe_2022 OUTPUT: wELcOmE_2022 import java.util.Scanner; public class ReversedCase { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String st; String newSt […]

Product and Square of Array Program in Java

Define a class to declare an array of size twenty of double datatype, accept the elements into the array and perform the following: • Calculate and print the product of all the elements. • Print the square of each element of the array. import java.util.Scanner; public class ProductOfArray { public static void main(String[] args) { […]

Find Highest and Lowest ASCII value Program in Java

Define a class to declare a character array of size ten, accept the characters into the array and display the characters with highest and lowest ASCII (American Standard Code for Information Interchange) value. [10] EXAMPLE INPUT ‘R’, ‘2’,’9′,’A’,’N’,’p’,’m’, ‘Q’,’F’ OUTPUT: Character with highest ASCII value = z Character with lowest ASCII value =A import java.util.Scanner; […]

1 2 3 4 5 36