Download KENDRIYA VIDYALAYA NEW CANTT ALLAHABAD SESSION

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Nominative determinism wikipedia , lookup

Transcript
KENDRIYA VIDYALAYA NEW CANTT ALLAHABAD
SESSION ENDING EXAMINATION 2015-16
SUBJECT:INFORMATICS PRACTICES
SET I
MM:70
TIME:3HRS
Q1:Give the answers of the following:
a) Differentiate between the compiler and interpreter.
b)What is a computer virus? How can it affect your computer?
c) Draw a block diagram of the main units of a computer hardware system.
2
2
2
d) How Backup Utility is useful in our computer? Is it necessary to take Backup of data?
2
e) What are different types of threats to Computer Security?
2
Q2:Give the answers of the following:
a) What is Trojan horse? Name some computer virus.
b) 1 KB(Kilo Byte) = ________________
1 MB(Mega Byte) = _________________
1 GB(Giga Byte) = __________________
1 TB(Tera Byte) = ___________________
c) How can you declare the variable in JAVA for the following:(i) If you want to store the employee no. of an employee.
(ii) If you want to store the name of an employee.
d) What is meant by E-learning. Suggest any two websites which can be used for E-learning.
f. What benefits (mention at least 2) does an e-business offer to an organization?
Q3:Give the answers of the following:
a) Define the following terms in respect of Relational database management System:
(i) Primary Key.
(ii) Foreign Key.
b) What is the relationship between a Database and a Table?
c) What is DBMS? Write names of any two DBMSs
.
2
2
2
2
2
2+2
2
2
d) Write SQL statement to view names of all the tables contained in the current database
Q4:Give the answers of the following:
2
a) Give the value of x after executing following Java code.
int a=10;
int b=12;
int x=5;
int y=6;
while (a<=b)
{ if (a%2= =0)
x=x + y;
else
x=x-y;
a=a+1;
}
2
b) Rewrite the following fragment:
(i) Using switch
If(ch==’E’)
Eastern++;
If(ch==’W’)
Western++;
If(ch==’N’)
Northern++;
If(ch==’S’)
Southern++;
else
Unknown++;
(ii) Using while loop
int sum =0;
for (inti=1;i<=5;++i)
{
sum = sum + i;
}
2+2=4
c) Find the errors from the following code segment and rewrite the corrected code underlining the
correction made.
int a ,b;
c = a + b;
for(;i<=5;i++)
{
Display c;
c=c+1
]
d)Write a java code to print the table of a given number(Number will be entered by the user)
e) Abraham is a programmer at shouryen world School. He created the following
GUI in Netbeans. The grade is calculated on the basis of pelcentage of total
marks in five subjects (English, Maths, Physics, Chemistry, Computers)' The
Grade is calculated using the following criterion :
(Each subject marks is out of 100)
Help him to write code for the following :
2
2
i) write Java code to calculate and display Total (as sum of marks obtainedin all the subjects), percentage (as
Total/5) and Grade on the basisPercentage of marks and the given criteria on the click of Command
Buttons [Calculate Total], [Calculate %] and [Calculate Grade] respectively.
3
ii)Write Java code to clear all Textboxes on the click of [Clear] button.
1
iii)Write Java code to close the application on the click of [exit] button.
1
Q5:Give the answers of the following:
a) What is NULL? What happens when you perform arithmetic calculations on NULL
values?
b) What is the difference in the output of SELECT statement if we write the keyword
ALL in place of DISTINCT?
c) Consider the following table named "GYM" with details about Fitness products
being sold in the store.
Table Name :GYM
PrCode stores Codes of Products
PrName stores names of Products
(UnitPrice is in Rs.)
2
2
6
Write SQL statements to do the following:
a) Display the names of all the products in the store.
b) Display the names and unit price of all the products in the store
c) Display the names of all the products with unit price less than Rs.20000.00
d) Display details of all the products with unit price in the range 20000 to 30000
e) Display names of all products by the manufacturer "Fit Express"
f) Display all rows sorted in descending order of unit price.
Q6:Give the answers of the following:
a)Consider the following tables Employee and Department.
Employee
10
Write SQL statements to do the following:
a) Display the last names and first names of all employees.
b) Display the Department names of all employees, without duplicates.
c) Display all the details of employees with last name as "Lakshmi".
d) Display all the details of employees whose last name is ""Rajlani" or "Sharma".
e) Display the codes and first names of all employees of 'Accounts' department.
f) Display department names of departments with budget above 18000.
g) Display all the details of employees whose First name begins with "S".
h) Display department details(from Department table) in descending order of
Budget amount.
i) Change the Department name "Sales" to "Marketing" everywhere in the table
"Employee" and "Department"
j) Add a new row with appropriate data values in Department table.
Q7:Give the answers of the following:
a. What is the difference between a text field and a text area?
b. What are these methods used for?
(i) isEditable() (ii) setEditable()
c. Differentiate between –
(i) Label and Text field
(ii) Checkbox and Radio button
1
1 +1 = 2
1+ 1 = 2
1