Class 11 Notes

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Q: Define input devices with example.

Ans- All the devices attached with a computer system which usually take input
from the user are called input devices. Such as Keyboard, Mouse, Scanner etc

Q: Differentiate between hardware and software.

Ans- All the tangible devices that are connected to a computer system called
hardware. Such as Monitor, Printer, Mouse, Keyboard etc.

All the data or information stored in a computer system or any other


electronic gadgets are called software. Software can be categorized into two- they
are System Software also known as Operating System and Application Software.
Some application software are- Word, Excel, PowerPoint, Tally etc.

Q: Differentiate between RAM and ROM.

Ans-

RAM ROM
The full form of RAM is Random Access The full form of ROM is Read Only
Memory. Memory.
Information can be read as well as Information can only be read in this
written in this memory memory.
It is a volatile/temporary memory. It non-volatile/permanent memory.

Q: What is a variable? Write the naming rules while creating/declaring a variable.

Ans: Variables are used to store information to be referenced and manipulated in


a computer program. Simply variable is a named memory location where data,
values, information can be stored for calculation. They also provide a way of
labeling data with a descriptive name, so our programs can be understood more
clearly by the reader and ourselves. It is helpful to think of variables as
containers that hold information. Their sole purpose is to label and store data in
memory. This data can then be used throughout your program. A variable can be
declared as the following-
P=10

Page 1 of 5
The rules that one should follow while creating a variable-

a. A variable should not be a keyword.


b. A variable name must start with a letter or underscore character.
c. A variable name must not contain any space.
d. A variable name may be the combination of letter, digit and an underscore
character.
e. A variable name should be short and meaningful.

Q: Define the following:


ALU, CPU, VDU, Hard Disk, Programming Language,
Ans:
ALU: The full form of ALU is Arithmetic and Logic Unit. This unit is responsible or
used to perform arithmetical and logical operations in a computer.
CPU: The full form of CPU is Central Processing Unit. This is considered as the
brain of a computer system. The CPU controls the various activities that is be
performed by the different units of a computer system. Its includes Control Unit,
ALU and Register.
VDU: The full form of VDU is Video Display Unit. It is one of the most important
output devices. It has a screen on which the images generated by the computer or
any other electronic device, is displayed. The VDU is also referred to as the
monitor.
Hard Disk: The Hard Disk is a secondary storage device that stores a huge
amount of data for a longer period. When we save a program or any other
information, it is typically stored in a hard disk. Now a day, hard disks are used to
come in terms of Tera Byte.
Programming Language: A programming language is a system of notation for
writing computer programs. Most programming languages are text-based formal
languages, but they may also be graphical. The programming language is itself an
application which is used to develop some other applications. Some of the most
commonly used programming languages include Java, Python, C++, JavaScript,
and C# etc.

Page 2 of 5
Q: Write a program to find the perimeter of a Rectangle.

Ans:

length=float(input("Enter the Length:"))

br=float(input("Enter the Breadth:"))

perimtr=2*(length+br)

print("The Perimeter of the Rectangle=",perimtr)

Q: Write a program to calculate the area of a circle.

Ans:

radius=float(input("Enter the Radius of the Circle:"))

pi=3.14

area=pi*radius*radius

print("The Area of the Circle=",area)

Q. Write a program to calculate the exact half of a given number.

Ans:

num=float(input("Enter the Number:"))

half=num/2

print("The Half of the Number=",half)

Q. Write a program to calculate the square of a given number.

Ans:

num=float(input("Enter the Number:"))

sqr=num*num

print("The Half of the Number=",sqr)

Page 3 of 5
Q. Write a program to check whether a number is positive or negative.

num=float(input("Enter the Number:"))

if(num>0):

print("The Number",num, "is POSITIVE")

else:

print("The Number",num, "is NEGATIVE")

Q. Write a program to check whether a number is even or odd. 3

Ans:

num=int(input("Enter the Number:"))

if num%2==0:

print("The Number is EVEN")

else:

print("The Number is ODD")

Q: Write a program to calculate the circumference of a circle.

Ans:

radius=float(input("Enter the Radius of the Circle:"))

pi=3.14

circum=2*pi*radius

print("The Circumference of the Circle=",circum)

Page 4 of 5
Q: Write a program to find the addition, subtraction, multiplication and division
of two numbers.

Ans:

Num1=float(input("Enter the First Number:"))

Num1=float(input("Enter the Second Number:"))

Sum=Num1+Num2

Sub=Num1-Num2

Prod=Num1*Num2

Div=Num1/Num2

print("The Addition of the Numbers=",Sum)

print("The Subtraction of the Numbers=",Sub)

print("The Multiplication of the Numbers=",Prod)

print("The Division of the Numbers=",Div)

Q. Write a program to find the area of a triangle.

Ans:

base=float(input("Enter the Base of the Triangle:"))

height=float(input("Enter the Height of the Triangle:"))

area=(base*height)/2

print("The Area of the Triangle=",area)

Page 5 of 5

You might also like