0% found this document useful (0 votes)
40 views5 pages

Half Yearly Examination 2018 2019 Computer Science

Uploaded by

Ramya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views5 pages

Half Yearly Examination 2018 2019 Computer Science

Uploaded by

Ramya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Vallipurathanpalayam, Erode.

Half Yearly Examination 20182019


Computer Science
Max. Marks: 20
Exam No : __________
Time : 40 mins.
Std / Sec : VIII _____ Theory: Total:
Teacher’s Sign: ___________
Invigilator’s Sign: __________
Parent’s Sign: ____________
Date : 09.10.2018 Practical: Grade:

General Instructions:
 Read each question carefully and follow the instructions.
 Attempt all questions.

I. Name the following

1. Graphical representation of an algorithm is called _________________________. (½)

2. Type of operators that use two operands _______________________. (½)

3. Data type required to store the decimal values ____________________. (½)

4. Operator is used to check for conditions in a program ______________________. (½)

5. The header file required to display an output___________________. (½)

6. Debug and rewrite the correct statement. (1)


a) cin<<” enter the number”; ________________________________________________

b) int 2ram; ________________________________________________________________

c) get ch(); _________________________________________________________________

d) clscr(); __________________________________________________________________

7. List out any two rules for the variable declaration in C++. (1)

_______________________________________________________________________________________

_______________________________________________________________________________________

1
8. Write the differences between System software and Application software. (1)

System software Application software

9. Write the output for the following program. (1½)


#include<iostream.h>
#include<conio.h>
void main ()
{
int a=2, b=3;
cout<<” The value for A & B” <<a<<b;
a= a+b;
a=a*a;
cout<< “\n The value of A” <<a;
b=10;
b=b+a;
cout<<” \n The value for A & B” <<a<<b;
getch();
}

2
10. Write a program to print your name and address using single “cout” statement. (2)

11. Write a program in C++ for the following scenario.


The table given below shows the data allowance for user A and B Provided by a network
company. If data usage exceeds above allowed bandwidth, then the user need to pay extra
charge of Rs.50 per month. Assuming user, A has consumed 10MB and user B has consumed
25GB, find out the total amount that each user needs to pay. (3)

User Data allowed Days Amount

A 10 MB 30 days Rs.50
B 20 GB 30 days Rs.100

3
12. Mention the types of errors that occur in the following statements. (1)
a. int double total; ________________________________
b. cout>>”enter the number; ___________________________________
c. a==a+; _______________________________________________
d. a=a+b _____________________________________
13. Write the steps involved in software development process life cycle. (2)

14. Write a short note on Open Source Software? (2)

4
15. Write the code for the following output. (3)

ADDITION OF FIVE ODD NUMBERS

Enter the 5 odd number:


13579
Total of 5 number =25

You might also like