DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

Similar documents
SAMPLE PAPER. Class: XII SUBJECT COMPUTER SCIENCE. Time: 3 Hours MM: 70

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION. REVISION Examination 2013 COMPUTER SCIENCE (083) CLASS XII

SAMPLE PAPER 2015 SUB - COMPUTER SCIENCE - (Theory) CLASS XII Time allowed: 3 hours Maximum marks: 70

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

void Add() { cin >> trainnumber; gets(trainname); } void display() { cout<<trainnumber <<":"<<TrainName<<end;

CLASS XII GUESS PAPER COMPUTER SCENCE (083)

DELHI PUBLIC SCHOOL BOKARO STEEL CITY

Computer Science[083]

Sample Paper 2013 SUB: COMPUTER SCIENCE GRADE XII TIME: 3 Hrs Marks: 70

Question Bank Class XII Subject : Computer Science

Computer Science 2006 (Outside Delhi)

PRINCE PUBLIC SCHOOL PRE-BOARD EXAMINATION ( ) SAMPLE PAPER-1 COMPUTER SCIENCE XII TIME ALLOWED: 3 HOURS

Computer Science 2006 (Delhi)

Sample Paper, Subject: Computer Science Class 12 th Time Allowed : 3 Hr. M.M.: 70

Guru Harkrishan Public School, Karol Bagh Pre Mock Class XII Sub: COMPUTER SCIENCE Allowed :3 hrs

General Instructions:


Sample Paper COMPUTER SCIENCE (Theory) Class-XII Time Allowed: 3hours Maximum Marks: 70

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

Mock Test Paper-2. CBSE XII : Computer Science. Duration : 3hrs Max Marks : 70

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

(Structured Query Language)

KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SECOND PREBOARD EXAMINATION FOR CLASS XII SUBJECT: COMPUTER SCIENCE

SAMPLE PAPER-2015 CLASS-XII COMPUTER SCIENCE. Sample paper-i. Time allowed: 3 hours Maximum Marks: 70 Name : Roll No.:

COMPUTER SCIENCE

KE DRIYA VIDYALAYA SA GATHA,CHE AI REGIO. COMMO PRE-BOARD EXAMI ATIO COMPUTER SCIE CE CLASS- XII Time allowed : 3 hours Maximum Marks : 70

JB Academy, Faizabad Half Yearly Examination Subject: Computer Science (083) Class XII

(d) Rewrite the following program after removing all the syntax error(s), if any. [2] include <iostream.h> void main ( )

COMPUTER SCIENCE 2002 (Delhi Board)

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

HOLIDAYS HOMEWORK CLASS : XII. Subject : Computer Science

Mock Test Paper-3. Computer Science. Duration : 3hrs Max Marks : 70

Sample Paper, 2015 Subject: Computer Science Class 12 th

Sample Paper 2012 Class XII Subject Computer Science

Downloaded from

KendriyaVidyalayaSangathan Kolkata Region

(i) case (ii) _delete (iii) WHILE (iv) 21stName

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

CLASS XII COMPUTER SCIENCE(083) TimeAllowed : 3 HrsMax Marks : 70

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

Autumn Break 2017 Exam Oriented Assignment Class-XII B, Computer Science

CBSE GUESS PAPER. Roll No. Computer Sc. XII(083)/

SECTION A [Only for candidates, who opted for C++]

KENDRIYA VIDYALAYA SANGATHAN (KOLKATA REGION) Second Pre Board Examination ( ) COMPUTER SCIENCE (Theory) Class-XII Marking Scheme

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION CLASS:XII - (COMPUTER SCIENCE )

Code No. 083 Time allowed: 3 hours Maximum Marks: 70 Instructions: (i) All questions are compulsory. (ii) Programming language: C++

COMPUTER SCIENCE SAM PLE PAPER 2-HALF YEARLY EXAMINATION

List of Practical for Class XII Computer Science

KENDRIYA VIDYALAYA SANGATHAN DEHRADUN REGION 1 st Pre-Board Examination, Class XII Computer Science(083) Time: 3 Hours Max.

ITL Public School Pre-Board( ) Computer Science (083) Time:3 hrs M. M: 70

(d) Observe the following C++ code very carefully and rewrite it after removing any/all syntactical errors: [2] Include < iostream.

Model Sample Paper 2015

Series SHC COMPUTER SCIENCE. Code No. 91. Roll No.

(a) Differentiate between a call by value and call by reference method.

COMPUTER SCIENCE. Time allowed : 3 hours Maximum Marks : 70

KUWAIT SAHODAYA EXAMINATION FIRST TERM SUBJECT : COMPUTER SCIENCE (083) : CLASS - XII SET - 3 Time : 3 Hours

Guru Gobind Singh Public School Sector : V/B, Bokaro Steel City

void display(){ cout << trainno.<< :>>Description<<endl; }; void main() {TRAIN T; Entry.(); Display.(); d) 410 e) i) south:east:south f) temttoe

BHARATIYA VIDYA BHAVAN S V.M.PUBLIC SCHOOL, VADODARA. Class : XII SAMPLE PAPER Max Marks : 70

KENDRIYA VIDYALAYA NO.02 AFS HINDAN G.BAD Holiday Homework Class XII Computer Science

Informatics Practices, Class XII ( ) (Summer Vacation-2015) (Holiday H.W) Java Concepts & Programming, MySQL

SPLIT-UP SYLLABUS ----CHENNAI REGION COMPUTER SCIENCE (Code: 083) Class-XII Academic Session

I Mid Semester May 2012 : Class XII : Computer Science Max Mark 50 : Time 2 Hrs. 1. a) What is macro in C++? Give example 2

KENDRIYA VIDYALAYA IIT CAMPUS CHENNAI 36 COMPUTER SCIENCE. Half Yearly

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

COMPUTER SCIENCE 1998 (Delhi Board)

THE EMIRATES NATIONAL SCHOOL SHARJAH THIRD MODEL EXAMINATION 2015 COMPUTER SCIENCE ( Code : 083) CLASS : XII MAX MARKS: 70

KENDRIYA VIDYALAYA SANGATHAN, COMPUTER SCIENCE (THEORY) I PRE-BOARD TIME 3 HRS CLASS XII M. Marks 70

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

THE INDIAN COMMUNITY SCHOOL, KUWAIT

Sample Paper 2015 Class XII Subject Computer Science

COMPUTER SCIENCE (CODE 083) CLASS XII Time allowed : 3Hours Maximum. Marks 70

2016 COMPUTER SCIENCE

2 SEMESTER EXAM CLASS : 12 DECEMBER 2016 TIME : 3 Hrs MAX MARKS : 70

KENDRIYA VIDYALAYA SANGATHAN,MUMBAI REGION 1 ST PRE-BOARD EXAMINATION TIME- 3 HRS. CLASS-XII SUBJECT-COMPUTER SCIENCE MARKS-70 MARKING SCHEME

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION. REVISION Examination 2013 COMPUTER SCIENCE (083) CLASS XII. Time Allowed: 3 Hours Maximum Marks: 70

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

KE DRIYA VIDYALAYA SA GATHA CHE AI REGIO COMMO PREBOARD EXAMI ATIO COMPUTER SCIE CE. CLASS- XII Time Allowed: 3 hours Max.

AISSCE COMMON MODEL EXAMINATION Subject Computer Science [083] Time Allotted: 3 Hours Maximum Marks: 70

COMPUTER SCIENCE Time allowed : 3hours] [Maximum Marks :70

Darshan Institute of Engineering & Technology for Diploma Studies

(c)rewrite the following program after removing the syntactical error(s),if any.under line each correction. [2] def main1(emp): print emp[name]

(4) Find the syntax error(s), if any, in the following program: #include main() int x[5],*y,z[5]; for(i=0;i<5;i++) x[i]=i; z[i]=i+3; y=z; x=y; (5) Rew

Sample Paper 2015 Class XII Subject COMPUTER SCIENCE. Some Important Questions Networking

VIDYA BHARATI SCHOOL

91/1 COMPUTER SCIENCE. Series SHC/1. dksm ua- jksy ua- Code No. Roll No. Candidates must write the Code on the title page of the answer-book.

CBSE Sample Paper 2015 Computer Science C++ Class XII Time 3hrs M.M 70

ASSIGNMENT CLASS : XII ( ) COMPUTER SCIENCE

1. a) Find the correct identifiers out of the following, which can be 2 used for naming Variable, Constants or Functions in a C++ program:

SAMPLE QUESTION PAPER CLASS-XII, SESSION: SUBJECT: COMPUTER SCIENCE

AUTUMN BREAK HOLIDAYS HOME WORK ( ) CLASS XII

KENDRIYA VIDAYALAYA PANGODE MONTHLY TEST AUGUST 2015

#include<iostream.h> #include<conio.h> #include<ctype.h>

include<iostream.h> #define PI=3.14 void main( ) { float r;a; cout<< enter any radius ; cin>>r; a=pi*pow(r,2); cout<< Area= <<a }

C++ 8. Constructors and Destructors

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

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

KENDRIYA VIDYALAYA SANGATHAN. Regional Office Delhi Split-up Syllabus Session Subject:-Computer Science Subject Code:-083

KENDRIYA VIDYALAYA NO-1 ARMAPUR

ISC 2007 COMPUTER SCIENCE PAPER 1 THEORY PART I Answer all questions in this part

Transcription:

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION 2017 2018 Class: XII Subject : Computer Science Assignment No. 3 1. a) What is this pointer? Explain with example. b) Name the header file required for successful compilation of the given snippet: 1 main( ) char str[20]= Exam ; return 0; cout<<setw(20)<<str; c) Rewrite the given snippet after removing the syntactical error(s), if any. Underline each correction 2 #include<iostream.h> #define SIZE 10 VOID MAIN() int a[size]=10,20,30,40,50 float x=2; SIZE=5; for(int i=0;i<size;i++) cout<<a[i]%x; d) What will be the output of the given snippet? 2 #include <iostream.h> void RIDDLE(int *N,int c) void main() for(int i=1;i<c;i++) *(N+i-1)=*(N+i)+1; int p[] = 6,9,8,q[]=4,3,1,r[]=50,80 clrscr(); RIDDLE(p,3); RIDDLE(q,3); RIDDLE(r,2); for(inti=0;i<3;i++) cout<<p[i]<< - ; cout<<endl; for(i=0;i<3;i++) cout<<q[i]<< % ; cout<<endl; for(i=0;i<2;i++) cout<<r[i]<< - ;

cout<<endl; e) What will be the output of the following program: 2 #include<iostream.h> void print(char *p) p= Pass ; cout<< \n Value is <<p<<endl; void main() char *q= Best Of luck ; print(q); cout<< \n New value is <<q; f) Study the following program and select the possible output from it : 2 #include <iostream.h> #include <stdlib.h> void main() int number; randomize(); number = 50 + random(3) for (int I=number;I>=50;I--) cout<<i<< # ; cout<<endl; (i) 53#52#51#50# (ii) 50#51#52# (iii)50#51# (iv) 51#50# 2. a) What is member-list initialization? Explain with example. 2 b) Answer the questions (i) and (ii) after going through the following program: 2 class Job int jobid;char jobtype; public: ~Job() cout<< Resigned <<endl; //function 1 Job() //function 2 jobid=10;jobtype= T ; Void Tellme() //function 3 cout<<jobid<<jobtype<<endl; Job(Job &J) //function 4 jobid=j.jobid +10; jobtype=j.jobtype+1;

Which member function out of Function 1, Function 2, Function 3 and Function 4 shown in the above definition of class Job is called automatically, when the scope of an object gets over? Is it known as constructor OR Destructor OR Overloaded Function OR Copy Constructor? Job p; //line-1 Job q(p) //line-2. Which member function out of Function 1, Function 2, Function 3 and Function 4 shown in the above definition of class Job will be called on execution of statement written as line 2? What is this function specifically known as out of destructor or copy constructor or default constructor? c) Define a class Clothing in C++ with the following descriptions: 4 Private Members: Code Type Size Material Price of type string of type string of type integer of type float of type string - A function Calc_Price ( ) which calculates and assigns the value of Price as follows: For the value of Material as "COTTON : Type Price (Rs.) TROUSER 1500 SHIRT 1200 For Material other than "COTTON" the above mentioned Price gets Reduced by 25%. Public Members: -A constructor to assign initial values of Code, Type and Material with the word "NOT ASSIGNED" and Size and Price with 0. -A function Enter( ) to input the values of the data members Code, Type, Size and Material and invoke the CalcPrice( ) function. -A function Show( ) which displays the content of all the data members for a Clothing. d) Answer the questions (i) to (iv) based on the following code: 4 class Goods int id; protected : char name[20]; long qty; void Incr(int n); Goods(); ~Goods(); void get(); class Food_products : protected Goods char exp_dt[10]; protected : int id;

int qty; void getd(); void showd(); class Cosmetics : private Goods int qty; char exp_date[10]; protected : int id; ~Cosmetics(); Cosmetics(); void show(); Name the all protected members of class Food_products. Name the member functions accessible through the object of class Food_products. From the following, Identify the member function(s) that cannot be called directly from the object of class Cosmetics show() get() If the class cosmetics inherit the properties of food_products class also, then name the type of inheritance. 3. a) Assume an array E containing elements of structure Student is required to be arranged in ascending order of the marks. Write a C++ function to arrange the same with the help of insertion sort the array and its size is required to be passed as parameters to the function. Definition of structure Student is as follows: 3 struct Student int Rollno; char Name[25]; float Marks; b) An array A[13][14] is stored in the memory along the column with each element occupying 4 bytes. Find out the Base address and address of the element A[3][7] if the element A[4][4] is stored at the address 1300. 4 c) Consider the following portion of a program, which implements a linked stack for Library. Write the definition of function PUSH (), to insert a new node in the stack with required information 3 struct Library int id; class stack char names[20]; Library *top;

stack() top=null; void PUSH(); void POP(); d) WAF that accept an array of 10 integers with size. The function finds a particular number from the array by using the binary search method 2 e) Convert the following infix expression into postfix. Show the stack status after execution of each operation: TRUE OR FALSE AND NOT FALSE OR FALSE 2 4 a) Observe the program segment given below carefully and answer the question that follows 1 #include<fstream.h> class school private : char scode[10],sname[30]; float nofstu; public: void INPUT( ); void OUTPUT( ); int COUNTREC( ); int school::countrec( ) fstream fin( scool.dat,ios::in ios::binary); //statement 1 int B= //statement 2 int C=B/sizeof(school); fin.close( ); return C; b) Write a function to display the length of maximum length word in each line from a text file matter.txt. 2 c) Given a binary file BUS.DAT, containing records of the following class colony type. class bus 3 public: int bus_no; char desc[40]; int distance; void bus::read() //in km cin>>bus_no; gets(desc) ; cin>>distance; void bus::display() cout<<bus_no; puts(desc); cout<<distance; int bus::retdist() return distance; Write a function in C++ that would read contents of file BUS.DAT and display and transfer the details of those buses which travels distance more than 100 km to other file Temp.DAT.

5 a) What is a relation? What is the difference between a tuple and an attribute? 2 b) Consider the following tables Item and Customer. Write SQL commands for the statements (i) to (iv) and give output for SQL queries (v) to (viii). 6 (i) (ii) (iii) (iv) (v) (vi) (vii) TABLE: ITEM I_ID ItemName Manufacturer Price PC01 Personal Computer ABC 35000 LC05 Laptop ABC 55000 PC03 Personal Computer XYZ 32000 PC06 Personal Computer COMP 37000 LC03 Laptop PQR 57000 TABLE: CUSTOMER C_ID CustomerName City I_Id 01 N Roy Delhi LC03 06 H Singh Mumbai PC03 12 R Pandey Delhi PC06 15 C Sharma Delhi LC03 16 K Agarwal Bangalore PC01 To display the details of those Customers whose City is Delhi To display the details of Items whose Price is in the range of 35000 to 55000 (Both values included) To display the CustomerName, City from table Customer and ItemName and Price from table Item, with their corresponding matching I_Id To increase the Price of all Items by 1000 in the table Item SELECT DISTINCT City FROM Customer; SELECT ItemName, MAX (Price), Count (*) FROM Item GROUP BY ItemName; SELECT CustomerName, Manufacturer FROM Item, Customer WHERE Item.Item_Id=Customer.ItemI_Id (viii) SELECT ItemName, Price * 100 FROM Item WHERE Manufacturer='ABC'; 6 a) State and verify Associative law. 2 b) Convert the following Boolean expression into its equivalent Canonical Sum of Product (SOP): (X+Y+Z) (X+Y+Z ) (X +Y+Z) (X +Y +Z ) 2 c) Design a circuit for the Boolean expression (A B C )+(AB C )+(ABC ) using NAND to NAND logic. 1 d) Reduce the following Boolean Expression using K-Map. 3 F(A,B,C,D) = ( 0, 2,3, 4, 5, 6, 7, 8, 11, 13, 15) 7 a) Write one advantage and disadvantage of Star Topology. 1 b) Expand the following terms with respect to Networking. 1 i) CDMA ii) FSF c) Differentiate between Hackers and crackers? 1 d) What is Bridge? 1 e) What is open source code? 1 f) What is GSM? 1

g) Sunbeam Group of Institutions in Varanasi is setting up the network among its different branches. There are four branches named as Bhagwanpur (BGN), Lahartara (LHT), Varuna (V) and Annapurna (A). Distances between various branches are given below: 4 Branch BGN to V Branch V to LHT Branch V to A Branch BGN to LHT Branch BGN to A Branch LHT to A 7 Km 4 Km 3 Km 4 Km 3.5 km 1 km Number of computers: Branch BGN 137 Branch V 65 Branch A 29 Branch LHT 98 Suggest a suitable topology for networking the computer of all the branches with a layout. Name the branch where the server should be installed. Justify your answer. Suggest the placement of hub or switches in the network. Mention any economic way to provide internet accessibility to all branches. ***************