Sie sind auf Seite 1von 34

AHLCON PUBLIC SCHOOL, MAYUR VIHAR – I, DELHI - 110091

ASSIGNMENT
CLASS XI
Session 2018-19
Chapter 1: Computer Overview

1. What is the difference between data and information.


2. What is CPU. Explain the two components of CPU.
3. What is the function of memory ? What are its measuring units ?
4. What are the differences between hardware, software, firmware and liveware ?
5. Give examples for each of system software and application software. Explain the
function of each type.
6. Give two major innovations in first generation computers.
7. Give two major innovations in the second generation computers.
8. Give two major advances of third generation computers.
9. What are the three types of computers ? How do they differ ?
10. Briefly distinguish between a general-purpose and a special-purpose computer.
11. In general how does the accuracy of an analog computer compare with the accuracy
of a digital computer ?
12. How is a compiler different from interpreter ?
13. What are the different types of digital computers based on their performance ?
14. What is the relation between microprocessor and microcomputer ?
15. Name the super computers developed in India.
16. What are the major strengths and weaknesses of computer ?
17. Why is binary language often termed as machine language ? Why is machine
language required ?
18. Who invented the punched card ?
Session 2018-19
Chapter 2: Software Concepts

1. What is an Operating System ? What are its functions ?

2. What purpose does the operating system serve to the computer and the user ?

3. What are the functions of an operating system ?

4. What functions are performed by an operating system as a resource manager ?

5. What is meant by the terms multiprogramming and multitasking

6. List two reasons why the scheduling of processes and threads on a multi-processor system

is more complicated than scheduling them on a uni-processor system.

7. What are language processors. Explain the different types of language processors.

8. What are device drivers.

9. Write short notes on Application Software with the examples.

10. Write short notes on Open Source Concepts.

11. Write name some commonly used operating systems.


Session
13. 2018-19
Convert the following decimal numbers to 10-bit
binary
(a) 27.2 (b) 3.21
Chapter 3: Data Representation (c) 63.362
14. Convert the following binary numbers to
 decimal
(a) 101.01 (b) 101.1101
1. Convert the following hexadecimal numbers to (c) 11101.1111
decimal :
Convert the following binary numbers to decimal
(a) A6 (b) A13B
(a) 110.11 (b) 110.1001
2. Convert the following hexadecimal numbers to
decimal : (c) 10101.0101
(a) E9 (b) 7 CA3 Encode the following message in ASCII code using
the hex representation "COST = $72."
Convert the following decimal numbers to hexadecimal
: The following ASCII-coded message is stored in
(a) 132 (b) 2352 successive memory locations in a computer :
1010011 10101000 1001111, 101000. What
4. Convert the following hexadecimal :
(a) 206 (b) 3619 is the message ?
0. Convert the following octal : Convert each octal number to its decimal equivalent :
(a) 38 AC (b) 7FD6 (c) ABCD 6 (a) 743 (b) 36 (c) 3777
.
1. Convert the following hexadecimal numbers to (d) 257 (e) 1204
octal numbers to binary : (a) 123 (b) 3527 Convert each of the following decimal numbers to
2. Convert the following octal numbers to binary :
(a) 59 (b) 372 (c) 919
(a) 7642 (b) 7015 (c) 3576
(d) 65,535 (e) 255
3. Convert the following binary numbers to octal :
Convert these hex values to decimal :
(a) 111010 (b) 110110101 (c) 1101100001
Convert the following binary numbers to octal : (a) 92 (b) 1A6 (c) 37FD
(d) 2C0 (e) 7FF
Convert these decimal values to hex :
(a) 11001 (b) 10011101 (c) 111010111 19.
10. Find the eight-bit two's complement form of the
following decimal numbers :
(a) - 10 (b) - 52 (c) - 123 .
11. Find the eight-bit two's complement form
following decimal numbers :
(a)-14 (b)-49 (c)-99

12. Convert the following decimal numbers to 10-bit : (a) 75 (b) 314 (c) 2048
binary : (d) 25,619 (e) 4095
(a) 37.31 (b) 6.215 (c) 33.333
Session 2018-19

Chapter 4: Microprocessor Basics and Memory Concepts

1. What is the function of memory ? What are its measuring units ?


2. What are the two categories of printers ? Which type of printers are more speedy
?
3. Why is primary memory termed as 'destructive write' memory but 'non-destructive read'
memory ?
4. List and describe the elements that each hardware input, output, or storage device
requires..

5. List three devices that are contained inside the computer case.

6. List at least three components that allow the processor to communicate with other
devices.

7. Compare RISC and CISC processors and EPIC processors.


8. Distinguish between : (a) RAM and ROM : (b) Internal and external memory (c) Main
memory and Cache memory.
9. What are RAM and ROM ? How are they alike ? How are they different ? What are
EEROM, PROM and EPROM
10. Distinguish between : (a) RAM and ROM : (b) Internal and external memory (c) Main
memory and Cache memory.
11. What are ports. Give some example of ports
Session 2018-19
Chapter 5 : Object Oriented Programming

1. What do you understand by procedural programming paradigm


2. How is modular programming approach different from procedural
programming approach
3. What is the difference between an object and a class
4. What do you mean by Abstraction and Encapsulation ? How are these two
terms interrelated ?
5. What is base class ? What is derived class ? How are these two interrelated ?
6. Explain the transitive nature of inheritance.
7. What is the benefit of transitive nature of inheritance ?
8. What is polymorphism ?
9. Write two major differences between Object Oriented Programming and
Procedural Programming.
Session 2018-19
Chapter 6 : Getting Started with C++

What is the difference between a keyword and an identifier


What are literals in C++ ? How many types of literals are allowed in C++ ?

How many ways are there in C++ to represent an integer constant ?

What is the difference between 'a' and "a" in C++ ?

Will be the sizes of following constants : '\a', "\a", "Reema\'s", ' \ " ' ?

Why is main function special ?


Write two advantages of using include compiler directive.
What does the file iostream.h consist of ?
What are the predefined stream objects in I/O library ?
What type of errors generally occur while programming
Differentiate between a Run Time Error and Syntax Error. Also give suitable
examples of each in C++.

Differentiate between a Logical Error and Syntax Error. Also give suitable examples
of each in C++.

What do you understand by 'code generation' ?

WAP to enter two numbers and find their sum.

WAP to enter three numbers and display their sum and average.
Session 2018-19
Chapter 7: Data Handling

1. What are data types ? What are all predefined data types in C++ ?

2. Why is char often treated as integer data type

3. What are data type m o d i f i e r s ? How do they affect a base data type ?

4. What is a reference variable ? What is its usage ?

5. How is structure different from` an array ?

6. How is a structure different from a class ?

7. What is a variable ? How many values are associated with it ?

8. What is the difference between 25L and 25 ?

9. Write a C++ program to compute the area of a square. Make assumptions

on your own.

10. What is the difference between structure and union.

11. What is the difference between pointer and reference variable.

12. What are the ways to specify constants.


Session 2018-19
Chapter 8: Operator and Expressions

1. Distinguish between a unary, a binary and a ternary operator. Give examples of


C++ operators for each one of them.
2. Differentiate between the post-increment and pre-increment operators. Also, give
a suitable C++ code to illustrate both.
3. Why do you think C++ wasn't named ++C
4. Given the following code fragment
i. int ch = 20 ;
ii. cout << ++ch << " \n " << ch << " \n " ;

5. What output does the above code fragment produce ?


6. What is the effect of replacing ++ ch with ch + I ?
7. What will be the result of following two expressions if i =10 initially ?
8. (1) ++ i <=10 (ii) i++ <=10

9. Write a C++ program that inputs experience and age of a person. The salary of
the person is 6000 if the person is experienced and his age is more than 35,
otherwise if the person is experienced and his age is more than 28 but less than 35
than the salary should be 4800 otherwise for experienced person the salary
should be 3000 and for inexperienced person the salary should be 2000.
10. A computer programming contest requires teams of 5 members
each. Write a program that asks for the number of players, and
then give the number of teams and number of players left over.
11. The value of e is known to be 2.71828 Using this value, write a program to
determine the value of the
t
expression : 2 - ye + 4Y. Obtain value of y from user.
12. Write a program which will raise any number X to a positive power n. Obtain
values of x and n from user.
13. Write a C++ program to input principal amount : and time. If time is more than
10 years, calculate the simple interest with rate 8%. Otherwise calculate it
with rate 12% per annum.
14. Write a C++ program to input a number. If the number is even, print its
square otherwise print its cube.
15. Write a C++ program to input a number. If the : number n is odd and positive,
print its square root otherwise print n5.
Session 2018-19
Chapter 9: C++ As per Latest C++11 Standards

List all fundamental data types as per C++11.


What are the size modifiers available for numeric data types as per C++11 ?

What are widths offered by different data types of C++11 standard ?


Session 2018-19
Chapter 10 : Flow of Control

What are selection statements. Give examples.

Differentiate between if – else and switch – case.

What are iterative statements. Give examples of each.

What is the difference between entry control loop and exit control loop.

WAP to enter a number and perform the following operations.

Find the sum of all the numbers between 1 to that number.

Find the total odd numbers between 1 to that number.

Find the total even numbers between 1 to that number.

Find the sum of all the odd and even numbers separately between 1 to that number.

Display the table of that number.

Check whether the number is prime or not.

Display the factorial of that number.

Count the total number of digits.

Find the sum of all the digits.

Count the total number of odd and even digits.

Reverse the number

Check whether the number is palindrome or not

Check whether the number is Armstrong or not

Check whether the number is perfect or not.

WAP to display the following series

1 2 3 4 5 6 7 8 9 10

2 4 6 8 10 12 14 16 18 20

1 3 5 7 9 11 13 15 17 19

1 2 4 7 11 16 22 29 37 46
1 3 7 13 21 31 43 57 73 91

1 2 4 8 16 32 64 128 256 512

0 1 1 2 3 5 8 13 21 34

Display the following pattern

1 55555

22 4444

333 333

4444 22

55555 1

11111 12

2222 123

333 1234

44 12345

*
**
***
****
*****
*
***
*****
*******
*********

AB

ABC

ABCD

ABCDE

Find the sum of the following series

1 + X + X2 + X3 + X4 +……………..Xn

½ + ¾ + 5/6 + ………………….N/(N+1)
Session 2018-19
Chapter 11: Functions
What is a function.
Explain the different types of functions.
Define function prototype, function call and function definition.
What are the ways to define a function.
What is the difference between call by value and call by reference.
How a function returns a value.
What are the ways to pass arrays to a function.
Difference between the formal parameters and actual parameters. Also, give a
suitable C++ code to illustrate both
What is the difference between global and local variable.
Write a C++ function that converts a 2-digit octal number into binary number and
prints the binary equivalent.

Write a function called zero_Small( ) that has two integer arguments being passed by
reference and sets smaller of the two numbers to 0. Write the main program to access
this function.
Give the output of the following program :

#include<iostream.h>
in t g =2 0 ;
void func(int & x, int y)
{ x=x-y;y=x*10;
cout << x « ' , ' < < y << '\n';

}
void main()
{
intg=7;
func(g, ::g) ;
cout << g « « : : g < < '\n';
func (:: g, g) ;
cout << g « << g << '\n';

Write definition for a function SumSeries() in C++ with two arguments/parameters -


double x and int n . The function should return a value of type double and it should
perform sum of the following series :
x - x 2 /3!+x 3 /5!-x 4 /7!+x 5 /9!-... upto n terms.

Write definition for a function SumSequence() in C++ with two


arguments/parameters -double x and int n. The function should return a value of type
double and it should perform sum of the following series :
1/x-3!/x 2 +5!/x3 -7!/x 4 +9!/x 5 -... upto n terms.

Raising a number n to a power pis the same as multiplying n by itself p times. Write a
function called power that takes two arguments, a double value for nand an int value
for pond returns the result as double value. Use default argument of 2 for p, so that if
this argument is omitted that number will be squared. Write the main function that gets
value from the user to test power function.
Write a C++ program that checks whether the given character is alphanumeric or a
digit. Add appropriate header file.

Write a C++ program that checks whether a given character is an alphabet or not. If
it is an alphabet, whether it is
lowercase character or uppercase character ? Include required header files
Write a C++ program that reads a string and converts it to uppercase. Include
required header files.

Write a C++ program that reads two strings and appends the first string to the second.
For example, if the first string is entered as Good and second string as Morning, the
program should print MorningGood. Use string library header.
Write a C++ program that reads two strings and copies the smaller string into the
bigger string. Use functions from string library header.

Write a function that takes one character as input and prints out that character plus
the next five characters, separated by tabs. The function takes one char argument,
and returns a char.
For example, if the value of the argument passed to the function was 'm', then the
function would print :
m n o p g r and return 'r'. Show separately the function declaration, the function
definition, and a sample function invocation.
Session 2018-19
Chapter 12 : Arrays

1. How does the amount of storage (in bytes) depend upon type and size of an array ? Explain
with the help of an example.

2. How are strings manipulated in C++ ? Support your answer with examples.
3. What do you understand by two-dimensional arrays ? State some situations that can be easily
represented by two-dimensional arrays.

4.How are two-dimensional arrays represented in memory ?


5.Can you think of a difference between an array of strings and other two-dimensional arrays ?
What is it ? Support your answer with examples.
6. Consider a 1-D array 'A' containing 100 integers. Develop a program to do the following :
(i) remove all occurrences of a given integer
(ii) shift the elements of the array to the right so that used space is available at the left end
(iii) fill the unused spaces by 0 (zero).
7. Write a Prograin, to print largest elentent of an array using a function.
8. Suppose A, B, C are arrays of integers of sizes m, n, m + n respectively. Give a program to
produce a third array C, containing all the data of array Aand B.

9. Write a function to receive an intarray, its size and a character '+' or '-'. By default, the
character should be '+'. For the character '+', the function returns the sum of positive numbers
stored in the array and for the character '-', the function returns the sum of negative numbers
stored in the array.

10. Write a program to pass an integer type of array and its size as a parameter to a function and it
performs the following operations.
If input array ARR contains
6 10 12 13 15 17 14 18 19 21
Then output array ARR should have the following elements.
10 6 13 12 17 15 18 14 21 19

11. Write a program to pass an integer type of array and its size as a parameter to a function and it
performs the following operations.
If input array ARR contains
6 10 12 13 15 17 14 18 19 21
Then output array ARR should have the following elements.
17 14 18 19 21 6 10 12 13 15

12. Write a program to pass an integer type of array and its size as a parameter to a function and it
performs the following operations.
If input array ARR contains
6 10 12 13 15 17 14 18 19 21
Then output array ARR should have the following elements.
21 19 18 14 17 15 13 12 10 6

13. Write a program to pass an integer type of array and its size as a parameter to a function and it
performs the following operations.

CLASS XI C++ 1
If input array ARR contains
6 10 12 13 15 17 14 18 19 21
Then output array ARR should have the following elements.
3 5 6 39 45 51 7 9 57 63

14. Write a program to pass an integer type of array and its size as a parameter to a function and it
performs the following operations.
If input array ARR contains
6 10 12 13 15 17 14 18 19 21
Then output array ARR should have the following elements.
21 6 10 12 13 15 17 14 18 19

15. Write a program to pass an integer type of array and its size as a parameter to a function and it
performs the following operations.
If input array ARR contains
6 10 12 13 15 17 14 18 19 21
Then output array ARR should have the following elements.
10 12 13 15 17 14 18 19 21 6

16. Write a program to pass an integer type of array and its size as a parameter to a function and it
performs the following operations.
If input array ARR contains
6 10 12 13 15 17 14 18 19 21
Then output array XYZ should have the following elements.
6 10 12 14 18 21 19 17 15 13

17. Write a program to pass an integer type of array and its size as a parameter to a function and it
performs the following operations.
If input array ARR contains
6 10 12 13 15 17 14 18 19 21
Then output array XYZ should have the following elements.
6 10 12 14 18 13 15 17 19 21

18. Write a program which takes an integer type of 2-D array and its size as a parameter and
perform the following operations.
1. Sum of both the diagonal elements separately.
2. Sum of both the diagonal elements.
3. Sum of each row
4. Sum of each column
5. Display the diagonal elements at their respective positions.
6. Display the alternate elements.
7. Display the elements residing at edges of the array.
8. Display the elements residing at the corner of the array.
9. Swap the first and last row.

CLASS XI C++ 2
10. Swap the first and last column.
11. Display the prime elements only.
12. Display the elements containing 3 as its ones place.
13. Display the middle row and middle column only at their respective places.
14. Display both the upper half diagonal elements
15. Display both the lower half diagonal elements
16. Display the transpose of the matrix(2 – D array)

19. Write a program that adds two matrices X and Y of size R1 X C1 and R2 X C2 respectively.
20. Write a program that subtracts two matrices X and Y of size R1 X C1 and R2 X C2
respectively.
21. Write a program that multiply two matrices X and Y of size R1 X C1 and R2 X C2
respectively.
22. Write a short program that doubles every element of a matrix A [4] [4].
23. Write a Program to pass a string as a parameter to a function and perform the following
operations.

1. count total number of characters in that string or calculate length of a string without using a
library function
2. count total number of spaces in that string.
3. count total number of alphabets, digits, spaces, other characters and words.
4. count number of words “do” or “DO” or “Do” or “dO” present in that string.
5. Reverse each word and display the whole string.
6. Program to reverse a string.
7. Check whether the string is palindrome or not.
24. Write a program to count number of occurrences of a given character in a string.
25. Write a program to compare two strings for equality.
26. Program, to find -the position of a pattern string in main string.
27. Program to find a substring of a given string

28. Write a function to receive an int array, its size and a character '+' or '-'. By default, the
character should be '+'. For the character '+', the functionreturns the sum of positive numbers
stored in thearray and for the character '-', the function returns the sum of negative numbers
stored in the array.

CLASS XI C++ 3
Session 2018-19

Chapter 13: Structures

What do we need a structure.

How do you refer to a structure variable.

What do you mean by nested structure.

What do you mean by an array of structre.

What is the purpose of using a typedef command in C++ ? Explain with suitable
example.

What is difference between #define and typedef

How are following related to one another : (i) arrays and structures (ii) structures and

classes ?

WAP to enter the information of 10 students and display the information of the

student who has scored the highest marks.

WAP to enter the information of 10 students and display the information of the

student who has scored the lowest marks.

WAP to enter the information of 10 students and display the information of the

student whose name starts with ‘A’

WAP to enter the information of 10 students and display the information of the

student whose name ends with ‘A’

Declare and initialize an array of 5 structures that store rollno, name and marks in 3
subjects for students

Give the output of the following program :


#include<iostream.h>
struct Pixel
{
int c, R ;
};

void Display (Pixel P)


{
cout << " C o l " < < P . C < < " R o w " < < P . R < < endl;

Pixel X = {40, 50}, Y, Z ;


Z=X;
X . C += 10;
Y=Z;
Y . C + = 10;
Y . R += 20;
Z . C -= 15;
Display ( X) ;
Display ( Y ) ;
Display ( Z ) ;
return 0 ;

Assuming suitable data types, give necessary declarations for an array of 20 voter
records, each record of which consists of four data values viz. id-no, name,
address, age.

Make use of above declarations to write a program segment that prints id-no, name
for all those voters whose age exceeds 60

Find the output of the following program :


#include<iostream.h>
struct MyBox
{ int Length, Breadth, Height ;
};
void Dimension(MyBox M)
{ cout << M.Length << " x " << M.Breadth << " x " ;
cout << M.Height << endl ;
}
int main( )
{
MyBox B 1 = { 1 0 , 1 5 , 5 } , B2, B 3 ;

++B1.Height ;

Dimension(B1);

B3=B1;

++B3.Length ;
B3.Breadth++;

Dimension(B3);

B2=B3;

B2.Height += 5 ;

B2.Length-- ; Dimension(B2)

return 0 ;
}
Session 2018-18
Chapter 14: Programming Methodology

What do you mean by Syntax errors and Semantics errors ?

Why are logical errors harder to locate ?

What is echo printing ?

What is the role of comments and indentation in a program ?


What is the role of comments and indentation in a program ?
How are meaningful identifiers useful ?

Explain the idea of a program bug. Do bugs always result from programming error ?
Justify your answer.
Explain how an expert understanding of your programming language can reduce
the amount of time in error rectification.
What is the significance of documentation ?
Why is program maintenance considered very important ?
What do you mean by robustness.

Das könnte Ihnen auch gefallen