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

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

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

Sample Paper Class XI Subject Computer Sience UNIT TEST II

CHAPTER 4 FUNCTIONS. 4.1 Introduction

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

ASSIGNMENT CLASS-11 COMPUTER SCIENCE [C++]

1. Answer the following : a) What do you mean by Open Source Software. Give an example. (2)

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

COMPUTER SCIENCE (083)

16. What is the significance of the break statement in a switch block?

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

Home Assignment for Class XII(Summer Vacation) Subject: CS Based on Library Functions ( 1 Mark)

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

CLASS-XI COMPUTER SCIENCE

UNIT- 3 Introduction to C++

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

I Internal Examination Sept Class: - BCA I Subject: - Principles of Programming Lang. (BCA 104) MM: 40 Set: A Time: 1 ½ Hrs.

Differentiate Between Keywords and Identifiers

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

WT I (SET-I) Date: Class XI Sec. Time: 1 Hr. 10 min. Computer Science M.M.: 30

COMPUTER SCIENCE (083)

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

CSCE Practice Midterm. Data Types

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

Name :. Roll No. :... Invigilator s Signature : INTRODUCTION TO PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70

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

Sample Paper - II Subject Computer Science

Chapter 1. Computer Overview

CSCE Practice Midterm. Data Types

Computer Programming C++ (wg) CCOs

(6) The specification of a name with its type in a program. (7) Some memory that holds a value of a given type.

ITL Public School First Term( )

More on Arrays CS 16: Solving Problems with Computers I Lecture #13

Variables Data types Variable I/O. C introduction. Variables. Variables 1 / 14

b) #include<iostream.h> void main() { int a, b; cout<<"input two integer values? "; cin>>a>>b; double avg=(a+b)/2.0; cout<<"average="<<avg<<endl; }

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

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

C How to Program, 7/e by Pearson Education, Inc. All Rights Reserved.

BEng (Hons) Electronic Engineering. BEng (Hons) Telecommunications. Examinations for / Semester 2

Sample Paper Class XII SUBJECT : COMPUTER SCIENCE

Review of Important Topics in CS1600. Functions Arrays C-strings


Subject: Computer Science

Name :. Roll No. :... Invigilator s Signature :.. CS/B.TECH (NEW)/SEM-2/CS-201/ BASIC COMPUTATION & PRINCIPLES OF COMPUTER PROGRAMMING

Chapter-11 POINTERS. Important 3 Marks. Introduction: Memory Utilization of Pointer: Pointer:

C++ PROGRAMMING SKILLS Part 4: Arrays


Functions. Arash Rafiey. September 26, 2017

Multiple Choice Questions ( 1 mark)

Principles of Programming. Chapter 6: Arrays

STRUCTURED DATA TYPE ARRAYS IN C++ ONE-DIMENSIONAL ARRAY TWO-DIMENSIONAL ARRAY

Downloaded from

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

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

CS201- Introduction to Programming Latest Solved Mcqs from Midterm Papers May 07,2011. MIDTERM EXAMINATION Spring 2010

Computers Programming Course 5. Iulian Năstac

BEng (Hons) Electronic Engineering. Resit Examinations for / Semester 1

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

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

Split up Syllabus (Session )

Binary Representations and Arithmetic


6.096 Introduction to C++ January (IAP) 2009

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

Operators and Expressions in C & C++ Mahesh Jangid Assistant Professor Manipal University, Jaipur

Arrays. Week 4. Assylbek Jumagaliyev

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

Presented By : Gaurav Juneja

Sample Examination. Family Name:... Other Names:... Signature:... Student Number:...

A Fast Review of C Essentials Part I

Darshan Institute of Engineering & Technology for Diploma Studies

Chapter4: Data Structures. Data: It is a collection of raw facts that has implicit meaning.

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

BITG 1233: Introduction to C++

I BCA[ ] SEMESTER I CORE: C PROGRAMMING - 106A Multiple Choice Questions.

Department of Computer Science & Engineering Indian Institute of Technology Kharagpur. Practice Sheet #04

+2 Volume II OBJECT TECHNOLOGY OBJECTIVE QUESTIONS R.Sreenivasan SanThome HSS, Chennai-4. Chapter -1

b) Give the output of the following program: 6,70,70 2,70 210,282,59290

CHAPTER 3 Expressions, Functions, Output

INDIAN SCHOOL SOHAR FIRST TERM EXAM ( ) INFORMATICS PRACTICES

M1-R4: Programing and Problem Solving using C (JULY 2018)

Chapter-13 USER DEFINED FUNCTIONS

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

EDIABAS BEST/2 LANGUAGE DESCRIPTION. VERSION 6b. Electronic Diagnostic Basic System EDIABAS - BEST/2 LANGUAGE DESCRIPTION

'C' Programming Language

C Programming Multiple. Choice

Introduction to C++ Introduction and History. Characteristics of C++

CPT101- Principles of Programming

The Hyderabad Public School Begumpet, Hyderabad, A.P.

OBJECT ORIENTED PROGRAMMING AND DATA STRUCTURES

3. Java - Language Constructs I

CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING Chapter 6: One Dimensional Array

The C++ Language. Arizona State University 1

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

GOZO COLLEGE. Boys Secondary Victoria - Gozo, Malta Ninu Cremona. Half Yearly Examination

Do not start the test until instructed to do so!

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

Lecture 4. 1 Statements: 2 Getting Started with C++: LESSON FOUR

C++ Programming: From Problem Analysis to Program Design, Third Edition

Chapter 3. Numeric Types, Expressions, and Output

Transcription:

SBOA SCHOOL & JUNIOR COLLEGE, CHENNAI 101 COMPUTER SCIENCE CLASS: XI HALF YEARLY EXAMINATION 2016 MAX MARKS:70 CODE - A DURATION : 3 Hours All questions are compulsory. Do not change the order of the questions while answering. I 1. Write about non preemptive scheduling [1] 2. What is Multiprogramming O.S? [1] 3. Differentiate between compiler and interpreter. [1] 4. Differentiate between Freeware and Shareware software. [1] 5.What do you mean by Round Robin scheduling technique? [1] II 1. What is Explicit type conversion? Give the suitable expression. [2] 2. Find the output for the following code. [1] {char ch=98; int x=ch; if (x) { x--; cout<<x<<(char)x; cout<<x--<<(int)ch; 3. Classify the following variable names of c++ into valid and invalid category (i) 1no (ii) num 1 (iii) num (iv) num1num (v) num+1 (vi) num.1 [2] 4. Identify the resultant datatype and print the result for the following expression. [2] long double P=6.9; char C=65; short int S=20; signed float F=2.5; P * F - (C +S ) + (S++) * sizeof(f) 5. Rewrite the following program after removing the syntactical errors(if any). And [2] underline each correction. { int a=1250, char ch=1250; a=+ch; cout<<ch- =3; III 1. Differentiate between comma operator and sizeof() operator. [1] 2. Write a C++ program to accept an integer and if the sum of digits of that number is even then find the square of the given number otherwise cube of the given number. [2] 3. Write a c++ program to find the sum of the following series [3] (x/1 2 )+(x 3 /1 2 + x 3 /3 2 )+( x 5 /1 2 + x 5 /3 2 + x 5 /5 2 )+...+ ( x n /1 2 + x n /3 2 +...+ x n /n 2 ) 4.In the following program, find the correct possible output(s) from the optons: [2] {int y=0; while(y<=10) {int x =1; do{x++; y+=6; cout<<"%"; if(y%x==0) cout<<"*"; if(x%3==2) cout<<"#"; while(x<3); (i) #%#% (ii) *#*%*#*% (iii) **%**% (iv) **#%**#% 5. Find the output of the following program code. [2] { int a=5, b=0; char ch= D, ch1= \0 ; if ( a b!=0) cout<< ++a << b - -<< \n ; if ( ch && a) cout<< --ch<<a++<< \n ; if (ch1) cout<< - -a<<ch++<< \n ; cout<<++b<<ch --;

IV 1. Find the index position of the character W and T in the following array declaration. char str[ ] = WE ARE BEST [1] 2. Write a C++ program to accept an integer array and swap the elements which are [3] divisible by 3 on left side and the elements which are divisible by 5 on right side and rest of the elements in the middle positions of the array. 3. Find the output of the following segment [3] { int a[]= {18,12,45,54,71, i; clrscr(); for (i=0;i<4;i++) if (!(a[i]%9)) a[i+1] =a[i]*2; a[i]=a[i+1]; for ( i=0;i<5;i++) cout<<a[i]<<'@'; 4. Write a C++ program to accept a line of text and a character and replace all the [2] occurrences of the given character in the string with its previous letter and the rest with its successive letter, if any character other than alphabet replace with #. 5. Write a C++ program to input an two dimensional integer array of NXN size and [3] display in the following format middle row should be a square of that number and the middle column should be square root of that number and middle element of that array should be zero (N should be odd) if the array is 1 9 3 output is 1 3 3 4 5 6 16 0 36 7 36 9 7 6 9 V 1. Differentiate between Actual and Formal parameters. Illustrate with examples. [2] 2. Write a function in C++ which accepts N strings and its size as arguments [3] and return number of palindrome strings in it. 3. Write a function program to Merge two arrays A and B and store it in an array C. The [3] array A containing odd numbers arranged in descending order and B containing even numbers arranged in ascending order and C should be in ascending order. Eg. A array -> 9,7,5,1 B array -> 2,4,6,8 Resultant array C -> 1,2,4,5,6,7,8,9 4. Find the output of the following program. [4] #include <iostream.h> int X=5; int &Modify_Array(int &Temp) { if(temp % 5 = = 0) X+=Temp; Temp+ =X+ 3; return Temp; void Do_Updation(int m, int &n) { int X=5; X++; m = n +:: X; if(n > 30) n = Modify_Array (n); Modify_Array (n) = m; cout<<m<<" : "<<n<< : <<X<< : <<::X<<endl; { int X =5, Y = 22; Do_Updation(::X,Y); cout<<x<<" : "<<Y<< : <<::X<<endl; Do_Updation(Y,X); cout<<x<<": "<<Y<< : <<::X<<endl;

5. Write a C++ program called Sum_Unit passing two dimensional integer array and its size as parameter the formal parameter is int A[][4], int N, int M and display the sum of all the values, which are ending with 5 (i.e.,units place is 5. ) [2] For example if the content of aray is : Output is the sum of 55+555+35 55 44 555 19 35 50 VI 1. Give the output of the following program code segment : [3] void Change_Case(char msg[],int k) { for(int cnt=0; cnt<k;cnt++) if(islower(msg[cnt])) msg[cnt]=toupper(msg[- -cnt]); if(isupper(msg[cnt])) msg[cnt]=tolower(msg[cnt]); if(isdigit(msg[cnt])) msg[cnt]=msg[cnt]+1; msg[cnt]=msg[cnt++]; { char str[]="arise Awake TILL 2018! "; int Len=strlen(str); Change_Case(str,Len); puts(str); 2. Name the header files to which the following functions belong to : [2] (i) isalnum() (ii) setw() (iii) exit() (iv) getch() VII 1. Write the steps in developing the program. [1] 2. Change the following program code according to prettyprinting concept. [2] int main() { int a;char s[ ]= abc,ch= o ; int c=a+b/ch--*3-2+s[2]; for(i=0;s[i]!= \0 ;i++)if (a>25) cout<<a;cout<<b; 3. Define Algorithm. [1] 4. Write about Adaptive Maintenance. [1] VIII 1. Convert the following Octal into Decimal number : 65.43 [1] 2. Convert the following Decimal into Hexa decimal : 5485 [1] 3. Subtract using 1 s compliment method : 45-125 [2] 4. Subtract the following using 2 s complement method: 39-19 [2] 5. Convert the following from hexadecimal to octal ACE7.5E [2] 6. Represent the following binary no in its octal and hexadecimal form [2] 1101101111.11111010 &&&&&&&&&&&&&

SBOA SCHOOL & JUNIOR COLLEGE, CHENNAI 101 COMPUTER SCIENCE CLASS: XI HALF YEARLY EXAMINATION 2016 MAX MARKS:70 CODE - B DURATION : 3 Hours All questions are compulsory. Do not change the order of the questions while answering. I 1. Write about non preemptive scheduling [1] 2. What is Multiprogramming O.S? [1] 3. Differentiate between compiler and interpreter. [1] 4. Differentiate between Freeware and Shareware software. [1] 5.What do you mean by Round Robin scheduling technique? [1] II 1. What is Implicit type conversion? Give the suitable expression. [2] 2. Find the output for the following code. [1] {char ch=98; int x=ch; if (x) { x--; cout<<x<<(char)x; cout<<x--<<(int)ch; 3. What is wrong with the following statements? a) const int y; b). char ch=a; c). long float x; d). cin>>a>> \n ; [2] 4. Identify the resultant datatype and print the result for the following expression. [2] long double P=660; int C=65; double S=20; signed float F=10.0; P /F - (C +S ) + (S++) * sizeof(f) 5. Rewrite the following program after removing the syntactical errors(if any). And [2] underline each correction. { int a=1250, char ch=1250; a=+ch; cout<<ch- =3; III 1. Differentiate between comma operator and sizeof() operator. [1] 2. Write a C++ program to accept an integer and if the sum of digits of that number is even then find the square of the given number otherwise cube of the given number. [2] 3. Write a c++ program to find the sum of the following series [3] (x/1 2 )+(x 3 /1 2 + x 3 /3 2 )+( x 5 /1 2 + x 5 /3 2 + x 5 /5 2 )+...+ ( x n /1 2 + x n /3 2 +...+ x n /n 2 ) 4.In the following program, find the correct possible output(s) from the optons: [2] {int y=0; while(y<=10) {int x =1; do{x++; y+=6; cout<<"%"; if(y%x==0) cout<<"*"; if(x%3==2) cout<<"#"; while(x<3); (i) #%#% (ii) *#*%*#*% (iii) **%**% (iv) **#%**#% 5. Find the output of the following program code. [2] { int a=5, b=0; char ch= D, ch1= \0 ; if ( a b!=0) cout<< ++a << b - -<< \n ; if ( ch && a) cout<< --ch<<a++<< \n ; if (ch1) cout<< - -a<<ch++<< \n ;

cout<<++b<<ch --; IV 1. Find the index position of the character W and T in the following array declaration. char str[ ] = WE ARE BEST [1] 2. Write a C++ program to accept an integer array and swap the elements which are [3] divisible by 3 on left side and the elements which are divisible by 5 on right side and rest of the elements in the middle positions of the array. 3. Find the output of the following segment [3] { int a[]= {18,12,45,54,71, i; clrscr(); for (i=0;i<4;i++) if (!(a[i]%9)) a[i+1] =a[i]*2; a[i]=a[i+1]; for ( i=0;i<5;i++) cout<<a[i]<<'@'; 4. Write a C++ program to accept a line of text and a character and replace all the [2] occurrences of the given character in the string with its previous letter and the rest with its successive letter, if any character other than alphabet replace with #. 5. Write a C++ program to input an two dimensional integer array of NXN size and [3] display in the following format middle row should be a square of that number and the middle column should be square root of that number and middle element of that array should be zero (N should be odd) if the array is 1 9 3 output is 1 3 3 4 5 6 16 0 36 7 36 9 7 6 9 V 1. Differentiate between Actual and Formal parameters. Illustrate with examples. [2] 2. Write a function in C++ which accepts N strings and its size as arguments [3] and return number of palindrome strings in it. 3. Write a function program to Merge two arrays A and B and store it in an array C. The [3] array A containing odd numbers arranged in descending order and B containing even numbers arranged in ascending order and C should be in ascending order. Eg. A array -> 9,7,5,1 B array -> 8,6,4,2 Resultant array C -> 1,2,4,5,6,8,9 4. Find the output of the following program. [4] #include <iostream.h> int X=5; int &Modify_Array(int &Temp) { if(temp % 5 = = 0) X+=Temp; Temp+ =X+ 3; return Temp; void Do_Updation(int m, int &n) { int X=5; X++; m = n +:: X; if(n > 30) n = Modify_Array (n); Modify_Array (n) = m; cout<<m<<" : "<<n<< : <<X<< : <<::X<<endl; { int X =5, Y = 22; Do_Updation(::X,Y); cout<<x<<" : "<<Y<< : <<::X<<endl; Do_Updation(Y,X); cout<<x<<": "<<Y<< : <<::X<<endl;

5. Write a C++ program called Sum_Unit passing two dimensional integer array and its size as parameter the formal parameter is int A[][4], int N, int M and display the sum of all the values, which are ending with 5 (i.e.,units place is 5. ) [2] For example if the content of aray is : Output is the sum of 55+555+35 55 44 555 19 35 50 VI 1. Give the output of the following program code segment : [3] void Change_Case(char msg[],int k) { for(int cnt=0; cnt<k;cnt++) if(islower(msg[cnt])) msg[cnt]=toupper(msg[- -cnt]); if(isupper(msg[cnt])) msg[cnt]=tolower(msg[cnt]); if(isdigit(msg[cnt])) msg[cnt]=msg[cnt]+1; msg[cnt]=msg[cnt++]; { char str[]="arise Awake TILL 2018! "; int Len=strlen(str); Change_Case(str,Len); puts(str); 2. Name the header files to which the following functions belong to : [2] (i) isalnum() (ii) setw() (iii) exit() (iv) getch() VII 1. Write the steps in developing the program. [1] 2. Change the following program code according to prettyprinting concept. [2] int main() { int a;char s[ ]= abc,ch= o ; int c=a+b/ch--*3-2+s[2]; for(i=0;s[i]!= \0 ;i++)if (a>25) cout<<a;cout<<b; 3. Define Algorithm. [1] 4. Write about Adaptive Maintenance. [1] VIII 1. Convert the following Octal into Decimal number : 65.43 [1] 2. Convert the following Decimal into Hexa decimal : 5485 [1] 3. Subtract using 1 s compliment method : 45-125 [2] 4. Subtract the following using 2 s complement method: 39-19 [2] 5. Convert the following from hexadecimal to octal ACE7.5E [2] 6. Represent the following binary no in its octal and hexadecimal form [2] 1101101111.11111010 &&&&&&&&&&&&&