Computer Pt-1 Answer Key
Computer Pt-1 Answer Key
Answer Key
Answer the following
Q.1 What is the function of memory ?What are its measuring units ? (2)
A.1 The memory temporarily holds the data and information during processing.
The smallest unit of memory is a byte (8 bits).A byte can store one character in binary
form.Other measuring units are kilobyte equal 2 10 bytes,1024 KB= 1 MB,1024 MB = 1GB,
1024 GB= 1TB
Q.6Write the difference between Analog Computer and Digital Computer (1)
A.6 Analog Computer- works on continuously aspects of physical phenomenon such as fluid
pressure,mechanical motion and electrical quantities.change current voltage ex. thermometer
Digital – works on 0 and 1 0 ab)means false 1 means true(presence) used in business and
scientific
Q. 8How can the software be classified? Name at least one software in each of the
categories. (2)
A.8 System Software – Application Software
System Software – O/S and Language Processor
Application Software – Packages ,Utilities
1
Q.9 Write the difference between RISC and CISC (2)
RISC stands for 'Reduced Instruction Set Computer Whereas, CISC stands for Complex
Instruction Set Computer. The RISC processors have a smaller set of instructions with few
addressing nodes. The CISC processors have a larger set of instructions with many addressing
nodes.
Q.11 Convert the binary number to decimal - 10010- Ans -18 (1)
Q.19 What is the difference between interactive mode and script mode in Python? (2)
A. Interactive mode- instructions are given in front of Python prompt
Script mode- Store in a file with extension .py
Q.20 What are immutable and an mutable typed? List immutable and mutable types of
Python (4)
Ans- mutable object can be changed after it is created, and an immutable object can't. Objects
of built-in types like (int, float, bool, str, tuple, unicode) are immutable. Objects of built-in
types like (list, set, dict) are mutable. Custom classes are generally mutable.
2
Q.22 Write a program to find maximum of three numbers using nested if else statement (3)
# Greates number of the three numbers
x=y=z=0
x=int(input("Enter a number"))
y=int(input("Enter a number"))
z=int(input("Enter a number"))
max=x
if y>max:
max=y
if z>max:
max=z
print("Largest Number is",max)
Q.24 Write a program to check whether the entered number by user is even or odd (2)
A.24
# Find odd or even number
n=int(input("Enter a number"))
if(n%2==0):
print("Even number")
else:
print("Odd number")