AHLCON PUBLIC SCHOOL, MAYUR VIHAR I, DELHI ASSIGNMENT CLASS XI Session Chapter 1: Computer Overview

Similar documents
Subject: Computer Science

Chapter 1. Computer Overview

BRAIN INTERNATIONAL SCHOOL. Term-I Class XI Sub: Computer Science Revision Worksheet

UNIT- 3 Introduction to C++

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

PROGRAMMING IN C AND C++:

VARIABLE, OPERATOR AND EXPRESSION [SET 1]

Split up Syllabus (Session )

ASSIGNMENT CLASS-11 COMPUTER SCIENCE [C++]

KENDRIYA VIDYALAYA ALIGANJ SHIFT-II HOLIDAY HOME WORK XII COMPUTER SCIENCE ARRAY AND STRUCTURES

COMPUTER SCIENCE (083)

Differentiate Between Keywords and Identifiers

(i) Describe in detail about the classification of computers with their features and limitations(10)

INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI

BLUE PRINT SUBJECT: - COMPUTER SCIENCE(083) CLASS-XI. Unit Wise Marks

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE

D.A.V PUBLIC SCHOOLS, RANCHI ZONE FIRST SUMMATIVE ASSESSMENT CLASS - XI COMPUTER SCIENCE

Get Unique study materials from

Computer Programming C++ (wg) CCOs

Scheme G. Sample Test Paper-I. Course Name : Computer Engineering Group Course Code : CO/CD/CM/CW/IF Semester : Second Subject Tile : Programming in C

Downloaded from

Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100

AIR FORCE SCHOOL,BAMRAULI COMPUTER SCIENCE (083) CLASS XI Split up Syllabus (Session ) Contents

Fundamental of Programming (C)

KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SPLITUP SYLLABUS FOR COMPUTER SCIENCE CLASS XI

Fundamentals of Programming

Sample Paper Class XI Subject Computer Sience UNIT TEST II

Introduction to Computer Science Midterm 3 Fall, Points

PART I. Part II Answer to all the questions 1. What is meant by a token? Name the token available in C++.

COMPUTER SCIENCE (083)

Questions Bank. 14) State any four advantages of using flow-chart

Tribhuvan University Institute of Science and Technology 2065

VARIABLES AND CONSTANTS

Object Oriented Pragramming (22316)

BRAIN INTERNATIONAL SCHOOL Term-II Class-XI Sub:- Computer Science Revision Sheet

UNIT - I. Introduction to C Programming. BY A. Vijay Bharath

UNIVERSITY OF ENGINEERING & MANAGEMENT, KOLKATA C ASSIGNMENTS

Character Set. The character set of C represents alphabet, digit or any symbol used to represent information. Digits 0, 1, 2, 3, 9

UNIT I : OVERVIEW OF COMPUTERS AND C-PROGRAMMING

KENDRIYA VIDYALYA CLRI CHENNAI AUTUMN BREAK HOLIDAY HW MARKS QUESTIONS : DATA STRUCTURE

Page. No. 1/15 CS201 Introduction to Programmming Solved Subjective Questions From spring 2010 Final Term Papers By vuzs Team

6.096 Introduction to C++ January (IAP) 2009

CAMBRIDGE SCHOOL, NOIDA ASSIGNMENT 1, TOPIC: C++ PROGRAMMING CLASS VIII, COMPUTER SCIENCE

KendriyaVidyalayaSangathan Kolkata Region

The Warhol Language Reference Manual

CHAPTER 4 FUNCTIONS. 4.1 Introduction

ADARSH VIDYA KENDRA NAGERCOIL COMPUTER SCIENCE. Grade: IX C++ PROGRAMMING. Department of Computer Science 1

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

I SEMESTER EXAM : : XI :COMPUTER SCIENCE : MAX MARK a) What is the difference between Hardware and Software? Give one example for each.

DEPARTMENT OF INFORMATION TECHNOLOGY

Lecture 2 Arrays, Searching and Sorting (Arrays, multi-dimensional Arrays)

Sardar Patel University S Y BSc. Computer Science CS-201 Introduction to Programming Language Effective from July-2002

Question Bank (SPA SEM II)

CSc 10200! Introduction to Computing. Lecture 2-3 Edgardo Molina Fall 2013 City College of New York

Chapter1 Overview of computers

SPLIT UP SYLLABUS SUBJECT : COMPUTER SCIENCE (083) SESSION: Class XI (Theory) C++ Duration: 3 hours Total Marks: 70

2. Distinguish between a unary, a binary and a ternary operator. Give examples of C++ operators for each one of them.

COMPUTER SCIENCE SECTION A

SBOA SCHOOL & JUNIOR COLLEGE, CHENNAI 101 COMPUTER SCIENCE CLASS: XI HALF YEARLY EXAMINATION MAX MARKS:70 CODE - A DURATION : 3 Hours

Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p.

1 Lexical Considerations

m) sin() n) endl o) getch() p) cout

CHAPTER-6 GETTING STARTED WITH C++

DEPARTMENT OF MATHS, MJ COLLEGE

Sri Vidya College of Engineering & Technology

Agenda / Learning Objectives: 1. Map out a plan to study for mid-term Review the C++ operators up to logical operators. 3. Read about the tips

HIGER SECONDARY FIRST YEAR COMPUTER SCIENCE

Lexical Considerations

FORM 2 (Please put your name and form # on the scantron!!!!)

1996 ILLINOIS JETS TEAMS DISTRICT COMPUTER FUNDAMENTALS TEST. 1. A computer program is:


SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. Numbers & Number Systems

STRUCTURING OF PROGRAM

B.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University

BITG 1233: Introduction to C++

IECD Institute for Entrepreneurship and Career Development Bharathidasan University, Tiruchirappalli 23.

Memory Addressing, Binary, and Hexadecimal Review

COMPUTER APPLICATION

BCA (Part II) EXAMINATION, 2009 C++ PROGRAMMING Time allowed: Three Hours Maximum Marks: 50 Attempt any five questions

Fundamental Data Types. CSE 130: Introduction to Programming in C Stony Brook University

Lecture 2 Tao Wang 1

COMPUTER SCIENCE HIGHER SECONDARY FIRST YEAR. VOLUME II - CHAPTER 10 PROBLEM SOLVING TECHNIQUES AND C PROGRAMMING 1,2,3 & 5 MARKS

VALLIAMMAI ENGINEERING COLLEGE

UNIT IV 2 MARKS. ( Word to PDF Converter - Unregistered ) FUNDAMENTALS OF COMPUTING & COMPUTER PROGRAMMING

Long Questions. 7. How does union help in storing the values? How it differs from structure?

PROGRAMS. EXCELLENT ACADEMY OF ENGINEERING. Telephone: / NORMAL PROGRAM

ANSI C Programming Simple Programs

Absolute C++ Walter Savitch

Lecture 03 Bits, Bytes and Data Types

C++ is case sensitive language, meaning that the variable first_value, First_Value or FIRST_VALUE will be treated as different.

PROGRAMMING IN C++ COURSE CONTENT

Lexical Considerations

Programming Fundamentals. With C++ Variable Declaration, Evaluation and Assignment 1

calling a function - function-name(argument list); y = square ( z ); include parentheses even if parameter list is empty!

UNIT-2 Introduction to C++

Programming. We will be introducing various new elements of Python and using them to solve increasingly interesting and complex problems.

Algorithms 4. Odd or even Algorithm 5. Greatest among three numbers Algorithm 6. Simple Calculator Algorithm

1. Which of the following circuits can be used to store one bit of data? A) Encoder B) OR gate C) Flip Flop D) Decoder


Transcription:

AHLCON PUBLIC SCHOOL, MAYUR VIHAR I, DELHI - 110091 ASSIGNMENT CLASS XI Session 2018-19 Chapter 1: Computer Overview 1. 2. 3. What is the difference between data and information. What is CPU. Explain the two components of CPU. 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.. 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?. 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. 1. 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. 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.

. 2018-19 Convert the following decimal numbers to 10-bit Session binary (a) 27.2 (b) 3.21 Chapter 3: Data Representation 14. 1. 2. Convert the following hexadecimal numbers to decimal : (a) A (b) AB (c) 11101.1111 Convert the following binary numbers to decimal (a) 110.11 (b) 110.1001 Convert the following hexadecimal numbers to decimal : (a) E9 (b) 7 CA3 (c) 10101.0101 Encode the following message in ASCII code using the hex representation "COST = $72." Convert the following decimal numbers to hexadecimal : (a) 2 (b) 2352 The following ASCII-coded message is stored in successive memory locations in a computer : 1010011 10101000 1001111, 101000. What 4. Convert the following hexadecimal : (a) 20 (b) 319 0. Convert the following octal : (a) 38 AC (b) 7FD 1. Convert the following is the message? Convert each octal number to its decimal equivalent : (c) ABCD hexadecimal numbers to octal numbers to binary : (a) 123. (a) 743 (d) 257 (b) 7015 (a) 59 (c) 357 (d) 5,535 3. Convert the following binary numbers to octal : (a) 111010 (b) 110110101 (b) 3 (c) 3777 (e) 1204 Convert each of the following decimal numbers to (b) 3527 2. Convert the following octal numbers to binary : (a) 742 (c) 3.32 Convert the following binary numbers to decimal (a) 101.01 (b) 101.1101 (c) 919 (b) 372 (e) 255 Convert these hex values to decimal : (c) 1101100001 Convert the following binary numbers to octal : (a) 92 (b) 1A (c) 37FD (d) 2C0 (e) 7FF Convert these decimal values to hex : (a) 11001 (b) 10011101 (c) 111010111 10. Find the eight-bit two's complement form of the following decimal numbers : (a) - 10 (b) - 52 (c) - 123 19.. 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 : binary : (a) 37.31 (b).215 (c) 33.333 (a) 75 (d) 25,19 (b) 314 (e) 4095 (c) 2048

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.. 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?. 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 : 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?. 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?. 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 000 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.. 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 7 8 9 10 2 4 8 10 12 14 1 18 20 1 3 5 7 9 11 15 17 19 1 2 4 7 11 1 22 29 37 4

1 3 7 21 31 43 57 73 91 1 2 4 8 1 32 4 128 25 512 0 1 1 2 3 5 8 21 34 Display the following pattern 1 55555 22 4444 333 333 4444 22 55555 1 1 11111 12 2222 123 333 1234 44 12345 5 * ** *** **** *****

* *** ***** ******* ********* A AB ABC ABCD ABCDE Find the sum of the following series 1 + X + X2 + X3 + X4 +..Xn ½ + ¾ + 5/ +.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.. 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 10 12 15 17 14 18 19 21 14 21 19 Then output array ARR should have the following elements. 10 12 17 15 18 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 10 12 15 17 14 18 19 21 12 15 Then output array ARR should have the following elements. 17 14 18 19 21 10 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 10 12 15 17 14 18 19 21 12 10 Then output array ARR should have the following elements. 21 19 18 14 17 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. CLASS XI C++ 1

If input array ARR contains 10 12 15 17 14 18 19 21 9 57 3 Then output array ARR should have the following elements. 3 5 39 45 51 7 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 10 12 15 17 14 18 19 21 14 18 19 Then output array ARR should have the following elements. 21 10 12 15 17 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 10 12 15 17 14 18 19 21 19 21 Then output array ARR should have the following elements. 10 12 15 17 14 18 1. 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 10 12 15 17 14 18 19 21 17 15 Then output array XYZ should have the following elements. 10 12 14 18 21 19 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 10 12 15 17 14 18 19 21 17 19 21 Then output array XYZ should have the following elements. 10 12 14 18 15 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.. 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.. 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 1. 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.. 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. 2. 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 : 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 0 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.