KENDRIYA VIDYALAYA SANGATHAN GUWAHATI REGION क य व लय स गठन, ग व ह ट स भ ग I-PRE BOARD EXAMINATION ( -ब ड पर )

Similar documents
KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION MARKING SCHEME. Code No. 083

COMPUTER SCIENCE (Theory) - Class XII Marking Scheme

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

KE DRIYA VIDYALAYA SA GATHA CHE AI REGIO COMMO PREBOARD EXAMI ATIO COMPUTER SCIE CE- CLASS- XII. Marking scheme

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

KENDRIYA VIDYALAYA SANGATHAN TINSUKIA REGION PRE BOARD EXAMINATION SUBJECT COMPUTER SCIENCE

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

INDIAN SCHOOL MUSCAT FIRST TERM EXAMINATION

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

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

DELHI PUBLIC SCHOOL BOKARO STEEL CITY ASSIGNMENT FOR THE SESSION

COMPUTER SCIENCE

CLASS XII SECOND TERM EXAMINATION SUBJECT : COMPUTER SCIENCE SET A2 (SOLUTIONS)

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

CLASS XII GUESS PAPER COMPUTER SCENCE (083)

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

KENDRIYA VIDYALAYA SANGATHAN (CHANDIGARH REGION) MARKING SCHEME (Ist Pre Board )

DELHI PUBLIC SCHOOL TAPI

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

Types of Data Structures

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

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

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

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

CLASS XII SECOND TERM EXAMINATION SUBJECT : COMPUTER SCIENCE SET A1(SOLUTIONS)

KE DRIYA VIDYALAYA SA GATHA, CHE AI REGIO. COMMO PRE-BOARD EXAMI ATIO COMPUTER SCIE CE (CLASS-XII) MARKI G SCHEME

Classification s of Data Structures

COMPUTER SCIENCE (083)

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

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

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

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

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION

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

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

Question Bank Class XII Subject : Computer Science

Sample Paper 2012 Class XII Subject Computer Science

CLASS-XI COMPUTER SCIENCE

Object Oriented Programming Using C++ UNIT-3 I/O Streams

KENDRIYA VIDAYALAYA PANGODE MONTHLY TEST AUGUST 2015


MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

Basic program The following is a basic program in C++; Basic C++ Source Code Compiler Object Code Linker (with libraries) Executable

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

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

ARRAY FUNCTIONS (1D ARRAY)

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

Content: Learning Objectives

CS201- Introduction to Programming Current Quizzes

P.G.TRB - COMPUTER SCIENCE. c) data processing language d) none of the above

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

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

KENDRIYA VIDYALAYA SANGATHAN, GUWAHATI REGION HALF-YEARLY EXAMINATION-2015 CLASS XI : COMPUTER SCIENCE Time Allotted : 3 hrs. Max.

Sample Paper 2015 Class XII Subject Computer Science

FORTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLIGY- OCTOBER, 2012 DATA STRUCTURE

8. Functions (II) Control Structures: Arguments passed by value and by reference int x=5, y=3, z; z = addition ( x, y );

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

Solution for Data Structure

Review Questions II KEY

Functions. Introduction :

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION SECOND PRE BOARD EXAMINATION CLASS XII

Data Structure using C++ Lecture 04. Data Structures and algorithm analysis in C++ Chapter , 3.2, 3.2.1

Agenda. The main body and cout. Fundamental data types. Declarations and definitions. Control structures

UNIT- 3 Introduction to C++

Sample Paper Class XI Subject Computer Sience UNIT TEST II

COMPUTER SCIENCE(083) SAMPLE QUESTION PAPER CLASS XII

Unit 2: Data Structures

C++ Final Exam 2017/2018

KENDRIYA VIDYALAYA NO.1 SAGAR XII-COMPUTER SCIENCE ( ) HOMEWORK SUMMER VACATION

S.E. Sem. III [INFT] Data Structures & Analysis. Primitive Linear Non Linear

Guru Gobind Singh Public School Sector: V/B, Bokaro Steel City Assignment (Level 2)


ASSIGNMENT CLASS-11 COMPUTER SCIENCE [C++]

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

cout << "How many numbers would you like to type? "; cin >> memsize; p = new int[memsize];

C Language Part 2 Digital Computer Concept and Practice Copyright 2012 by Jaejin Lee

C++ 8. Constructors and Destructors

Downloaded from

COMPUTER SCIENCE (083)

Computer Science 2006 (Delhi)

void main() { int global=7 ; func( ::global,global) ; cout<<global<<, <<::global<< \n ; func(global,::global) ; cout<<global<<, <<::global<< \n ; }

Guide for The C Programming Language Chapter 5

CPE 112 Spring 2015 Exam II (100 pts) March 4, Definition Matching (8 Points)

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

EAS 230 Fall 2002 Section B

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

Review Questions for Final Exam

Multiple Choice (Questions 1 13) 26 Points Select all correct answers (multiple correct answers are possible)

Name Section: M/W T/TH Number Definition Matching (8 Points)

DATA FILE HANDLING FILES. characters (ASCII Code) sequence of bytes, i.e. 0 s & 1 s

PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Electronics and Communication

Name Section: M/W T/TH Number Definition Matching (6 Points)

CSCE 2014 Final Exam Spring Version A

2015 Academic Challenge

DC54 DATA STRUCTURES DEC 2014

MODULE V: POINTERS & PREPROCESSORS

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

2016 COMPUTER SCIENCE

Associate Professor Dr. Raed Ibraheem Hamed

KENDRIYA VIDYALAYA PANGODE MONTHLY TEST I JUNE 2015 CLASS XII COMPUTER SCIENCE Time allowed: 1 1/2 Hours Max. Marks: 50

Transcription:

KENDRIYA VIDYALAYA SANGATHAN GUWAHATI REGION क य व लय स गठन, ग व ह ट स भ ग I-PRE BOARD EXAMINATION 203-4( -ब ड पर 203-4) Class: XII Time: 3 Hrs. Computer Science Max. Marks: 70 Answer Key Q a) Typedef statement can create a new name to an existing data type, it actually does not create a new data type but redefines an existing type with a new name. e.g. Int x=0; Tpedef int numbers; Numbers y=x++; b) Dos.h, conio.h, math.h/cmath, stdio.h/cstdio c) [] 0 & 5 [2] 2 & 3 [] & 6 [2] 22 & 4 d) (c) In the following program after removing the error(s), if any. Underline each correction. #include <oistream.h> => #include<iostream.h>/<iostream> cin<<x; => cin>>x; for (x=;x<00: x+=2) => for (x=;x<00; x+=2) if x%2=0 => if (x%2==0) each e) All correct each f) inttanee( each 2 char) 2 Q2 a) Game game(3,2) or any correct example Game (game@ aa)score=aa.score;time=aa.time; b) mark each for correct diff. and example 2 c) #include<iostream.h> #include<stdio.h> #include<conio.h> class Taxpayer Int pan; char name[20]; float taxable; float tax; public: void inputdata( ) cout<< \n Enter Personal Account Number : ; cin>>pan; cout<< \nenter Name : ; gets(name); cout<< \nenter taxable income : ; cin>>taxable; void displaydata( ) cout<< \n Panno\t Name \t\t Total Annual Taxable Income \t Tax \n ; cout<<pan<< \t <<name<< \t\t\t\t<<taxableinc<< \t\t\t\t <<tax<<endl: void computetax() float ti=taxableinc; If( ti<200000) tax=0; else if (ti>=200000 && ti<=500000) tax=(ti-200000)*0.;

else if (ti>500000 && ti<=000000) tax=30000+(ti-500000)*0.2; else tax=30000+00000+(ti-000000)*0.3; ; void main() taxpayer payee; payee.inputdata(); payee.computetax(); payee.displaydata(); For header files ( ) and correct declaration of private members( ) d) i) none ii) void enter(), void show() iii) member functions void enter(), void show(), void sales_entry(), void sales_details(), void status(), void register() data members- voucher_no, sales_date(),,salary, salesman_ no, salesman_name. iv) 66 bytes. Q3 a) void highlow(int A[],int size) int temp; for(int i=0;i<size;i++) for(int j=i+;j<size;j++) if(a[i]>a[j]) temp=a[i]; A[i]=A[j]; A[j]=temp; cout<< \nhighets value : << A[size-]; cout<< \nlowest value : <<A[0]; Passing parameter and function heading Logic for sorting Printing highest and lowest value Or any other suitable method. Q3 b) Base Address B = 250 Element size W =4 bytes Lr = 4, Lc = -, I=6, j=2 no of rows( n ) = Ur Lr + = 7-4+ = 4 no of columns( c ) = Uc-Lc + = 3 (-) + =5 Address of Roll[I,j] = B + W * ( c * ( I Lr) + ( J Lc ) ) = 250 + 4 * ( 5 * ( 6-4) + ( 2 (-) )) = 250 + 4 * (0+3) =302 Q3 c) struct stack or it could be a class implementation. Int info; Char name[0]; stack *next; top, ptr;

void pop( ) If(top==NULLl) cout<< Underflow ; exit(0); else cout<<top->info; puts(top->name); ptr=top; top=top->next; ptr->next=null; delete ptr; Q3 d) void Qinsert( ) THENODE *nptr; nptr=new THENODE; if(!nptr) cout<< Overflow, aborting!!!!! \n ; exit(0); nptr->next=null; cout<< \nenter a name ; gets(nptr->name); if(rear==null) front=rear=nptr; Else rear->next=nptr; rear=nptr; Q3 e) input operation stack Intermediate o/p 4 push 4 0 push 4,0 5 push 4,0,5 + Pop twice evaluate 4,5 0+5=5 push * Pop twice evaluate 60 4*5=60 push 5 push 60,5 3 Push 60,5,3 / Pop twice evaluate 60,5 5/3=5 push - Pop twice evaluate 55 60-5=55 push None pop - 55 result Q4 a) int countlines( ) Ifstream fin( Movie.txt ); Int count=0; 2

char ch; while(!fin.eof( )) fin>>ch; if(ch== \n ) count++; fin.close( ); return (count); b) file.seekg((recno-)*sizeof(item),ios::beg); file.seekp((recno-)*sizeof(item), ios:beg); c) (i) void search(int bk_no) ifstream fin; int ind=0; fi.open( book.dat,ios::in ios::binary); if (!fin) cout<< Can t open file \n ; exit(); While(fin) Fin.read((char*) &bk,sizeof(bk)); If(bk_no==bk.RBno()) cout<< book no you searched found with these details <<endl; bk.display();ind=; break; if(ind==0) cout<< book no you searched not found <<endl; fin.close(); // end of function. or nay other correct ans. Q5 a) mark each for correct ans. 2 b) I. select name from person where dept= finance and experience>0; 6 II. select dept, avg(basic+allowance) as "average salary" from person, remuneration where dept="sales" and person.id=remuneration.id or select dept, avg(basic+allowance) as "average salary" from person, remuneration where person.id=remuneration.id group by dept having dept="sales" III. select min(allowance), max(allowance) from person p, remuneration r where p.id=r.id and p.sex= F ; IV. select max(comm), from person p, remuneration r where p.id=r.id and p.sex= M ; V. count(*) 4 VI. name dept basic amit SALES 2000 nidesh SALES 2000 anita SALES 42000 sunil SALES 2700 Q6 a) mark each for correct ans. 2 b) U V+UV 2 c) (X+Y+Z)(X+Y+Z )(X+Y +Z)(X +Y +Z)(X +Y +Z ).

d) AB\CD C+D C+D C +D C +D A+B 0 0 0 A+B 0 0 A +B 0 A +B 0 0 0 3 (B+D)(A+B+C)(A+B +D )(B +C +D )(A +B+C ) / 2 for map only 7. a) mark for correct definition b) switch provides a hardware interface for connecting a wired device to a network. additionally it can also be used for partitioning a network into smaller subnets. c) message switching circuit switching in message switching technique circuit switching works on the the data or information being set principle of telephone system, over the network is stored in where a physical path is temporary buffers until a path to established before data can be destination is freed. sent. d) XML- extenxible Markup Language, GSM- Global system/standard of 2 Mobiles Communication. 3G- 3 rd Generation Mobile Communication, CDMA- Code Division Multiple Access. mark each. e) a. Mrkt FunDe LegalDep SalesD most suitable and economic diagram b. sales depatment because it has max. no. of computers. c. switch/switches of required no of ports will be used in each building d. a broadband modem/router may be placed in sales dept so that all departments can access internet. f) Cloud computing is a model for enabling ubiquitous, convenient, ondemand network access to a shared pool of configurable computing resources (e.g., networks, servers, storage, applications, and services) thatcan be rapidly provisioned and released with minimal management effort or service provider interaction. 2