0% found this document useful (0 votes)
464 views17 pages

XIth IP Python

This document contains 13 multiple choice and short answer questions from a chapter about basic computer organization from a Class 11 Informatics Practices textbook. The questions cover topics like volatile memory, units of memory like bytes and gigabytes, basic computer components like CPU, functions of memory, differences between RAM and primary memory, the role of mobile processors, system on a chip, categories of software, differences between interpreters and compilers, what application software is and why it's needed, basic computer architecture, functions of input and output units, subunits of the CPU like ALU and control unit, and the differences between CPU and ALU.

Uploaded by

Ghanshyam Sharma
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
464 views17 pages

XIth IP Python

This document contains 13 multiple choice and short answer questions from a chapter about basic computer organization from a Class 11 Informatics Practices textbook. The questions cover topics like volatile memory, units of memory like bytes and gigabytes, basic computer components like CPU, functions of memory, differences between RAM and primary memory, the role of mobile processors, system on a chip, categories of software, differences between interpreters and compilers, what application software is and why it's needed, basic computer architecture, functions of input and output units, subunits of the CPU like ALU and control unit, and the differences between CPU and ALU.

Uploaded by

Ghanshyam Sharma
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 17

CLASS XI – INFORMATICS PRACTICES

BOOK REFERENCE – SUMITA ARORA

Chapter – 1: BASIC COMPUTER ORGANIZATION


Very Short answer Type
Questions
Q.1 What is volatile memory?
Ans: RAM is known as Volatile Memory because when we switch off the computer its
data is vanished.

Q.2 Define each of the following:


(a) byte (b) kilobyte (c) megabyte (d) gigabyte (e)
terabyte Ans: (a) byte: This is the unit of memory in computer. 1 byte =
8 bits
(b) kilobyte: This is the unit of memory in computer. 1 kilobyte = 1024 bytes
(c) megabyte: This is the unit of memory in computer. 1 megabyte = 1024 kilobytes
(d) gigabyte: This is the unit of memory in computer. 1 gigabyte = 1024 megabytes
(e) terabyte: This is the unit of memory in computer. 1 terabyte = 1024 gigabytes.

Short Answer Type Questions

Q.1 State the basic units of computer. Name the subunits that make up the
CPU, and give the function of each of the unit.
Ans: Basic units of computer are Input Unit, Central Processing Unit and Output
Unit. Sub unites of CPU are Arithmetical Logical Unit(ALU), Control Unit (CU)
and Memory Unit(MU).

Q.2 What is the function of memory? What are its measuring units?
Ans: The computer memory is a temporary storage area. It holds the data and
instructions that the Central Processing Unit (CPU) needs. Before a program can
run, the program is loaded from some storage medium into the memory. This
allows the CPU direct access to the program. Its measuring units are byte,
kilobyte, megabyte, gigabyte, terabyte etc.

Q.3 Why is primary memory termed as „destructive write‟ memory but


„non-destructive read‟ memory?
Ans: The primary memory is called destructive write because the data enter here
are temporary.
That‟s why your RAM gets cleared after every restart.

Q.4 What is the role of CPU of a mobile system?


Ans: A mobile processor is found in mobile computers and cellphones.
A CPU chip is designed for portable computers, it is typically housed in a smaller
chip package, but more importantly, in order to run cooler, it uses lower voltages
than its desktop counterpart and has more sleep mode capability. A mobile
processor can be throttled down to different power levels or sections of the chip
can be turned off entirely when not in use. Further, the clock frequency may be
stepped down under low processor loads. This stepping down conserves power
and prolongs battery life.

First floor, Opposite Bank of Baroda, Ajmer Road, Madanganj-Kishangarh (Raj) Contact : +91 98291 71122
Email : infotechcomputer@gmail.com, Website : www.infotechcomputer.in
CLASS XI – INFORMATICS PRACTICES
BOOK REFERENCE – SUMITA ARORA

Q.5 What is SoC? how it is different from CPU? Why is it considered a better
development?
Ans: A system on a chip (SoC) combines the required electronic circuits of various
computer components onto a single, integrated chip (IC). SoC is a complete
electronic substrate system that may contain analog, digital, mixed-signal or
radio frequency functions. Its components usually include a graphical processing
unit (GPU), a central processing unit (CPU) that may be multi-core, and system
memory (RAM).
Because SOC includes both the hardware and software, it uses less power, has
better performance, requires less space and is more reliable than multi-chip
systems. Most system-on- chips today come inside mobile devices like
smartphones and tablets. These are considered a better development because of
their small size and speed capability.

Q.6 What are various


categories of software? Ans:
Software are classified into
following categories –
(i) System Software
a. Operating System
b. Language Processor
(ii) Application Software
a. Packages
b. Utilities
c. Customized software
d. Developer Tools

Q.7 What is the difference between an interpreter and a compiler?


Ans: Interpreter: Interpreter is a type of system software that translates and executes
instructions written in a computer program lini-by-line, unit by unit etc. It is
slower in execution because each time when you run the program translation is
required.
Compiler: Compiler is another type of system software that translates and
executes instructions written in a computer program in one go. Once compiled
program need not to translate again so it works faster.

Q.8 What is application software? Why it is required?


Ans: Application software is the set of programs necessary to carry out operations for
a specific task. Such as for word processing there are many application software
like MS-Word, Wordpad etc. These software are required to perform special task
using the computer like painting, recording, typing, data handling etc.

First floor, Opposite Bank of Baroda, Ajmer Road, Madanganj-Kishangarh (Raj) Contact : +91 98291 71122
Email : infotechcomputer@gmail.com, Website : www.infotechcomputer.in
CLASS XI – INFORMATICS PRACTICES
BOOK REFERENCE – SUMITA ARORA

Q.9 Briefly explain the basic architecture of a computer.


Ans: Computer organization refers to logical structure of a computer describing how its
components are connected to one another, how they affect one another‟s
functioning and contributes to overall performance of computer.
Computers follow the „IPO‟ principal i.e.
Input →Process →Output
(That means a certain
input is processed to
Generate specific output)

Q.10 What do you understand by input unit? What is its significance? What
does computer system consist of?
Ans: Input unit is formed by the input devices(Keyboard, mouse, MICR, OBCR etc.)
attached to the computer. Input unit is responsible for taking input and
converting it into computer understandable form(the binary code). Some
common input devices are:
(i) Keyboard
(viii) Magnetic Ink Character
(ii) Mouse Reader
(iii) Microphone (ix) Touch Pad
(iv) Scanner (x) Track Ball
(v) Webcam (xi) Joy stick
(vi) Optical Bar Code Reader (xii) Touch Screen
(vii) Optical Mark Reader (xiii) Biometric Sensors. Etc.
Q.11 What is the function of CPU in a computer system? What are its sub units?
Ans: The central processing unit (CPU) of a computer is a piece of hardware that carries
out the instructions of a computer program. It performs the basic arithmetical,
logical, and input/output operations of a computer system. The CPU is like the
brains of the computer - every instruction,

no matter how simple, has to go through the CPU. So let's say you press the
letter 'k' on your keyboard and it appears on the screen - the CPU of your
computer is what makes this possible. The CPU is sometimes also referred to as
the central processor unit, or processor for short. So when you are looking at the
specifications of a computer at your local electronics store, it typically refers to

First floor, Opposite Bank of Baroda, Ajmer Road, Madanganj-Kishangarh (Raj) Contact : +91 98291 71122
Email : infotechcomputer@gmail.com, Website : www.infotechcomputer.in
CLASS XI – INFORMATICS PRACTICES
BOOK REFERENCE – SUMITA ARORA

the CPU as the processor. Its sub units are:


(i) Control Unit
(ii) Arithmetical and Logical Unit (ALU)
(iii) Memory Unit

Q.12 What functions are performed by the control unit?


Ans: The CU controls and guides the interpretation, flow and manipulation of all data
and information. CU sends control signals until the required operations are done
properly by ALU and memory. Another function of CU is the program execution.
It means carrying out all the instructions stored in the program. CU gets program
instruction from the memory and executes them one after the other. CU acts as
a supervisor by controlling and guiding the operation taking place.

Q.13 Distinguish between CPU and ALU?


Ans: Difference Between ALU and CPU is that arithmetic logic unit (ALU),
another component of the processor, performs arithmetic, comparison, and other
operations. While Processor also central processing unit (CPU), interprets and
carries out the basic instructions that operate a computer.
The main difference between CPU and ALU is that the CPU is an electronic
circuit that handles instructions to operate the computer while the ALU is a
subsystem of the CPU that performs arithmetic and logical operations.

Q.14 What is the function of output unit in a computer system?


Ans: Input devices are the hardware that give computers instructions. Output devices
relay the response from the computer in the form of a visual response (monitor),
sound (speakers) or media devices (CD or DVD drives). The purpose of these
devices is to translate the machine's response to a usable form for the computer
user.

Q.15 Distinguish between internal and external memory.


Ans: Internal memory is usually chips or modules that you attach directly to
the motherboard. Internal Memory is a circular disc that continuously rotates as
the computer accesses its data. External memory often comes in the form of USB
flash drives; CD, DVD, and other optical discs; and portable hard drives.

First floor, Opposite Bank of Baroda, Ajmer Road, Madanganj-Kishangarh (Raj) Contact : +91 98291 71122
Email : infotechcomputer@gmail.com, Website : www.infotechcomputer.in
CLASS XI – INFORMATICS PRACTICES
BOOK REFERENCE – SUMITA ARORA

Q.16 What are RAM and ROM? How are they alike? How are they different?
What are PROM, EPROM, EEPROM?
Ans: A ROM chip is a non-volatile storage medium, which means it does not require a
constant source of power to retain the information stored on it.
A RAM chip is volatile, which means it loses any information it is holding when the
power is turned off. Both of them are known as primary memory as they can
directly work with CPU.
▪ Read Only Memory (ROM)
▪ Programmable Read Only Memory (PROM)
▪ Erasable Programmable Read Only Memory (EPROM)
▪ Electrically Erasable Programmable Read Only Memory (EEPROM)

Q.17 What are major functional components of a mobile system?


Ans: Major functional components of a mobile system are-
(i) Mobile Processor
a. Communications Processing Unit
b. Application Processing Unit
c. GPU (Graphics Processing Unit)
(ii) SoC (System on a chip)
(iii) Display Subsystem
a. Display Screen
b. Touch Sensitive Interface
c. Touch Sensitive Keyboards
(iv) Camera Subsystem
(v) Mobile System Memory
a. RAM
b. ROM
(vi) Storage
(vii) Power Management Subsystem

First floor, Opposite Bank of Baroda, Ajmer Road, Madanganj-Kishangarh (Raj) Contact : +91 98291 71122
Email : infotechcomputer@gmail.com, Website : www.infotechcomputer.in
CLASS XI – INFORMATICS PRACTICES
BOOK REFERENCE – SUMITA ARORA

Q.18 Draw a block diagram depicting organization of a mobile system.

Ans:

Q.19 What is the role of Power Management Unit in a mobile system?


Ans: This subsystem is responsible for providing power to a mobile system. The
mobile systems work on limited power provided through an attached battery
unit. This system has a battery management system that works with a battery
charger and a battery unit and provides power to the mobile system in required
form.
It also contains a collection of different functions like battery charging,
monitoring and supplying many different voltages these systems require. It also
contains software controlled turn-on and turn-off feature to optimize the power
consumption and battery life.

Q.20 What does the communication processor do?


Ans: This subsystem is responsible for making and receiving phone calls on a mobile
handset. It has a digital signal processor that helps it work with RF Transceiver
and the Audio subsystem.

Q.21 What is GPU? How is it useful?


Ans: Graphics Processing Unit assists the CPU by handling the visuals, other
graphically-rich applications. In short, GPU handles all graphics-related chores
of a mobile CPU.

First floor, Opposite Bank of Baroda, Ajmer Road, Madanganj-Kishangarh (Raj) Contact : +91 98291 71122
Email : infotechcomputer@gmail.com, Website : www.infotechcomputer.in
CLASS XI – INFORMATICS PRACTICES
BOOK REFERENCE – SUMITA ARORA

Q.22 What is system software?


Ans: The software that controls internal computer operations is called system
software. It manages all the resources of a system. Its example is Operating
System.

Q.23 Discuss the role of utility software in the context of computer


performance?
Ans: Utilities are those application programs that assist the computer by performing
housekeeping functions like backing up disk or scanning/cleaning viruses or
arranging information etc. its example is Antivirus software.

Q.24 What is the importance of an OS?


Ans: An operating system is a program which acts as an interface between a user and
the hardware. It manages all the resources of the computer system. It provides
and environment to the user to work with. All the application are installed after
the operating system is installed. It manages memory, processing, storage,
memory etc.

Q.25 How are software libraries useful? Name some software libraries of
Python.
Ans: A software library is a predefined and available to use, suit of data and
programming code in the form of prewritten code/ functions/scripts/classes etc.
that can be used in the development of the new software programs and
applications.
Some software library in python are:
(i) NumPy (numerical Python)
(ii) SciPy (Scientific Python)
(iii) Pandas Library

First floor, Opposite Bank of Baroda, Ajmer Road, Madanganj-Kishangarh (Raj) Contact : +91 98291 71122
Email : infotechcomputer@gmail.com, Website : www.infotechcomputer.in
CLASS XI – INFORMATICS PRACTICES
BOOK REFERENCE – SUMITA ARORA

Q.26 What is the utility of these software?


(a) Disk defragmentor (b) Backup Software
Ans: (a) Disk defragmentor: A file is fragmented when it becomes too large for your
computer to store in a single location on a disk. When this happens, your
computer splits the file up and stores in pieces. You can use fragmented files,
but it takes your computer longer to access them.
(b) Backup Software: This utility program facilitates the backing-up of disk.
Back-up means duplicating the disk information so that in case of any damage
or data-loss, this backed-up data may be used.

First floor, Opposite Bank of Baroda, Ajmer Road, Madanganj-Kishangarh (Raj) Contact : +91 98291 71122
Email : infotechcomputer@gmail.com, Website : www.infotechcomputer.in
CLASS XI – INFORMATICS PRACTICES
BOOK REFERENCE – SUMITA ARORA

Chapter – 2: GETTING STARTED WITH PYTHON


Very Short answer Type
Questions
Q.1 When was Python released?
Ans- Python was released in February 1991.

Q.2 Who developed Python?


Ans- Python was developed by Guido Van Rossum.

Q.3 Which two languages contributed to Python as a


Programming Language?

Ans- ABC language and Modula 3.

Q.4 Is Python an Object Oriented Language?


Ans-Yes, Python is an object oriented language.

Q.5 Python got its name from which show?


Ans- Py g s a a s BBC dy s “M y Py ’s Fly g
C s”

Short Answer Type Questions


Q.1 Python is an “Interpreted language‟. What does it mean to you?
Ans- It means that the Python installation interprets and executes the code line by line
at a time.

Q.2 What does a cross platform language mean?


Ans- it means a language can run equally on variety of platforms-Windows, Linux/UNIX,

Macintosh, Supercomputers, Smart phones etc.

Q.3 Python is a Free and Open Source language. What do you understand by
this feature?
Ans- It means Python is freely available without any cost. Its source code is also available. One
can modify, improve/extend an open source software.

First floor, Opposite Bank of Baroda, Ajmer Road, Madanganj-Kishangarh (Raj) Contact : +91 98291 71122
Email : infotechcomputer@gmail.com, Website : www.infotechcomputer.in
CLASS XI – INFORMATICS PRACTICES
BOOK REFERENCE – SUMITA ARORA

Q.4 In how many ways, can you work in Python?


Ans-In two ways we can work in Python-

(i) Interactive mode


(ii) Script Mode

Q.5 What is the difference between Interactive mode and Script Mode in
Python?
Ans- In interactive mode, one command can run at a time and commands are not saved.
Whereas in Script mode, we can save all the commands in the form of a program file and can
see output of all lines together.

Q.6 What are the advantages of Python?


Ans- Advantages-

i. Easy to use OO Language.


ii. Expressive Language.
iii. Interpreted Language.
iv. It is complete.
v. Cross-Platform Language.
vi. Free and Open Source.
vii. Variety of Usage/ Applications

Q.7 What are the limitations of Python?


Ans- limitations-

i. Not the fastest language.


ii. Lesser Libraries than C, Java, Perl.
iii. Not strong on Type Binding.
iv. Not easily convertible.

First floor, Opposite Bank of Baroda, Ajmer Road, Madanganj-Kishangarh (Raj) Contact : +91 98291 71122
Email : infotechcomputer@gmail.com, Website : www.infotechcomputer.in
CLASS XI – INFORMATICS PRACTICES
BOOK REFERENCE – SUMITA ARORA

Skill Based Questions


Q.1 Which of the following are not valid strings in Python?
(a)”Hello” (b) „Hello‟ (c)”Hello‟ (d) „Hello” (e) {Hello}

Ans- String (c) , (d) and (e ) are not valid strings.

Q.2 Write Instructions in python to get the following result: (Do it in both
interactive mode and script mode)
I am a student of MSS Kishangarh

I live in Kishangarh

And I love Kishangarh.

Kishangarh is 20 KM away from Ajmer

This Place is famous for Marble

Ans- In Interactive Mode-

>>> print("I am a student of MSS Kishangarh \n I live in Kishangarh \n And I love


Kishangarh \n\n Kishangarh is 20 KM away from Ajmer \n This Place is famous for
Marble")

In Script Mode-
print("I am a student of MSS Kishangarh \n I live in Kishangarh \n And I love
Kishangarh \n\n Kishangarh is 20 KM away from Ajmer \n This Place is famous for
Marble")

(save this code to a file and then run the file)

First floor, Opposite Bank of Baroda, Ajmer Road, Madanganj-Kishangarh (Raj) Contact : +91 98291 71122
Email : infotechcomputer@gmail.com, Website : www.infotechcomputer.in
CLASS XI – INFORMATICS PRACTICES
BOOK REFERENCE – SUMITA ARORA
Chapter – 3: PYTHON
FUNDAMENTALS
Very Short answer Type
Questions
Q.1 What is None literal in Python?
Ans: Python has one special literal, which is None. The None literal is used to
indicate absence of value. It is also used to indicate the end of lists in
Python. It means “There is nothing here”.

Q.2 What is the error in following code: x, y =7 ?


Ans: The following error comes - 'int' object is not iterable. Which means an integer
object i.e. cannot be repeated for x and y. one more integer object is required
after 7.

Q.3 What will the following code do: a=b=18 ?


Ans: This code will assign 18 to a and b both.

Q.4 Following code is creating problem X = 0281, find reason.

Ans: 0281 is an invalid token.

Q.5 Find the error in the following code:


(a) temp=90 print temp
(b) a=12 b=a+b print(a And b)
(c) print(“x=”x)
(d) a, b, c=2, 8, 4 print (a,b,c) c,b,a=a,b,c print(a;b;c)

Ans: (a) Missing parentheses in call to 'print'.

(b) Name „b‟ is not defined.

(c) Invalid Syntax.

(d) Invalid Syntax in second print statement.

(e) can't assign to literal in second line.

(f) Invalid Syntax.

First floor, Opposite Bank of Baroda, Ajmer Road, Madanganj-Kishangarh (Raj) Contact : +91 98291 71122
Email : infotechcomputer@gmail.com, Website : www.infotechcomputer.in
CLASS XI – INFORMATICS PRACTICES
BOOK REFERENCE – SUMITA ARORA

Q.6 Find the error in the following code:


(a) y = x +5 print(x,y) (b) a=input(“Value: “) b=a/2 print(a,b)
(c) print(x = y = 5)

Ans: (a) Name 'x' is not defined.


(b) Unsupported operand type(s) for /: 'str' and 'int'.
(c) Invalid Syntax.

Short Answer Type Questions


Q.1 What is the difference between a keyword and an identifier?
Ans: Difference between Keyword and Identifier: Every language has keywords
and identifiers, which are only understood by its compiler. Keywords are
predefined reserved words, which possess special meaning. An identifier is a
unique name given to a particular variable, function or label of class in the
program.

Q.2 What are literals in Python? How many types of Literals allowed in Python?
Ans: Literals: Python comes with some built-in objects. Some are used so often
that Python has a quick way to make these objects, called literals.The literals
include the string, Unicode string, integer, float, long, list, tuple and dictionary
types.

Q.3 How many types of sequences are supported in Python?


Ans: Three Types of Sequences are supported in python:

(i) String
(ii) List
(iii) Tuple

Q.4 What factors guide the choice of identifiers in program?


Ans: (i) An identifier must start with a letter or underscore followed by any number of
digits and/or letters.
(ii) No reserved word or standard identifier should be used.
(iii) No special character (Other than underscore) should be included in the identifier.

First floor, Opposite Bank of Baroda, Ajmer Road, Madanganj-Kishangarh (Raj) Contact : +91 98291 71122
Email : infotechcomputer@gmail.com, Website : www.infotechcomputer.in
CLASS XI – INFORMATICS PRACTICES
BOOK REFERENCE – SUMITA ARORA

Q.5 What is the difference between an expression and a statement in Python?


Ans: A statement is an instruction that the Python interpreter can execute. We have
only seen the assignment statement so far. Some other kinds of
statements that we‟ll see shortly are while statements, for statements, if
statements, and import statements. (There are other kinds too!)

An expression is a combination of values, variables, operators, and calls to


functions. Expressions need to be evaluated. If you ask Python to print an
expression, the interpreter evaluates the expression and displays the result.

Q.6 What are tokens in Python? How many types of tokens allowed in Python?
Ans: Tokens are the smallest unit of the program. There are following tokens in Python:
• Reserved words or Keywords
• Identifiers
• Literals Definition of all tokens may come. Which
is not given
• Operators in this question bank.
• Punctuators

Q.7 What are operators? What is their function? Give examples of some
unary and binary operators.
Ans: “Operators are those symbols used with operands, which tells compiler which
operation is to be done on operands.” in other words – “operators are tokens
that trigger some computation/action when applied to variables and other
objects in an expression.”
Operators are of following types:
▪ Unary operators like (+) Unary Plus, (-) Unary Minus, not etc.
▪ Binary Operators like (+) addition, (*) multiplication, and etc.

Q.8 What is block/code block/suit in Python?


Ans: Sometimes a group of statements is part of another statement of function. Such a group
of one or more statements is called block or code-block or suit in python. e.g.

First floor, Opposite Bank of Baroda, Ajmer Road, Madanganj-Kishangarh (Raj) Contact : +91 98291 71122
Email : infotechcomputer@gmail.com, Website : www.infotechcomputer.in
CLASS XI – INFORMATICS PRACTICES
BOOK REFERENCE – SUMITA ARORA
Q.9 What is the role of indentation in Python?
Ans: Indentation plays a very important role in Python. Python uses indentation to
create blocks of code. Statements at same indentation level are part of same
block/suit. You cannot unnecessarily indent a statement; python will raise an
error for that.

Q.10 How many types of strings are


supported by Python? Ans: Python
supports two types of strings:
(i) Single-line string That terminates in single line.
(ii) Multi-line String That stores multiple lines of text.

Skill Based Questions


Q.1 What will be the sizes of following constants?
(a) „\a‟ (b) “\a” (c) “Kumar\‟s” (d) „\”‟ (e) “it‟s”

Ans: (a) 50 (b) 50 (c) 56 (d) 50 (e) 53

This screenshot is the output of the above question.

Q.2 How can you create multi-line strings in Python?


Ans: We can create multi-line string by putting a backslash (\) at the end of line
which allows you to continue typing in next line in same string.

Q.3 Which of the following are syntactically correct strings? State reason.
(a) ”Python is nice Language”
(b) „He called me “Friend!” when he came‟
(c) “Very Good‟
(d) „This is a good book‟
(e) “Namaste
(f) “I liked „Harry Potter‟ very much”
Ans: (a) Correct (b) Correct (c) Incorrect (d) Correct (e) Incorrect (f) Correct

First floor, Opposite Bank of Baroda, Ajmer Road, Madanganj-Kishangarh (Raj) Contact : +91 98291 71122
Email : infotechcomputer@gmail.com, Website : www.infotechcomputer.in
CLASS XI – INFORMATICS PRACTICES
BOOK REFERENCE – SUMITA ARORA
Q.4 What is the error in following Python program with one statement?
print(“My name is : “, name)

suggest a solution

Ans: Error is : “name 'name' is not defined”. And the solution is to declare the
variable-name before this statement.

Q.5 Predict the output of the following:

Ans: Output: 17 5

Q.6 What will be the output of the following code:

Ans: Output: Hari , you are 18 now but You will be 19 next year

Q.7 Write a Program to obtain temperature in Celsius and convert it into


Fahrenheit using formula –
C X 9/5 + 32 = F

Ans:

Q.8 Predict output:

Ans: Output: 4 6 8

Q.9 WAP to read todays date (only date Part) from user. Then display
how many days are left in the current month.
Ans:

First floor, Opposite Bank of Baroda, Ajmer Road, Madanganj-Kishangarh (Raj) Contact : +91 98291 71122
Email : infotechcomputer@gmail.com, Website : www.infotechcomputer.in
CLASS XI – INFORMATICS PRACTICES
BOOK REFERENCE – SUMITA ARORA

Q.10 WAP to print the area of circle when radius of the circle is given by user.
Ans:

Q.11 WAP to print the volume of a cylinder when radius and height of the
cylinder is given by user.
Ans:

Q.12 WAP that asks your height in centimeters and converts it into foot and inches.
Ans:

Q.13 WAP to find area of a triangle.


Ans:

Q.14 WAP to calculate simple interest.


Ans:

Q.15 WAP to read a number in n and prints n2, n3, n4

Ans:

First floor, Opposite Bank of Baroda, Ajmer Road, Madanganj-Kishangarh (Raj) Contact : +91 98291 71122
Email : infotechcomputer@gmail.com, Website : www.infotechcomputer.in

You might also like