KENDRIYA VIDYALAYA SANGATHAN, HYDERABAD REGIONHALF YEALY EXAMIANTION 2014-15 INFORMATICS PRACTICES (065) Class – XI Maximum Marks: 70 Time Allowed: 3hrs Instructions: (i) All questions are compulsory. (ii) Programming language: Java, SQL =========================================================================================== Marks 1 What does a Bus mean ? 1 2 What is the function of an OCR? 1 3 What are non-impact printers? 1 4 Write two characteristics of Random Access Memory? 2 5 How Multi Processing Operating Systems is different from Multi Programming Operating Systems? 2 6 Write a short note on Firewall. 2 7 What is an Assembler 1 8 Explain how java codes are compiled and run. 2 2 a. What will be the output of the following code segments: int a=5, b=10, c=9, d=8; System.out.println(“” + ((a++)+(++c)-(--b)+(d--)); System.out.println(“” + ((a>b)?(c>d)?(++d):35:(--b))); 2 b. Predict the output of the following java construct: int m=5; int prod=1; int i=1; while(i<=5) { prod=prod+prod*(m%2); --m; ++i; } System.out.println(“”+prod); 2 Convert the following code segment using switch-case construct: 2 9 10 a. int num = Integer.parseInt(txtNum.getText()); if(num>=2 && num<=5) txtRes.setText(“Prime”); else if(num==6 || num==8 || num==10) txtRes.setText(“Even”); else txtRes.setText(“Not Valid”); b. 11 a. b. Rewrite the following code using while loop: int i,j; for(i=1,j=2;i<=6;i++,j+=2) System.out.println(i++); System.out.println(“Finished!!!”); 2 Find out errors and rewrite the code: M=1; N=0; For(;m+n=19;++n) System.out.println(“hello”); M=m+10; 2 The following code has some error(s). Rewrite the correct code. int y=3; switch(y); { case 1: System.out.print(“Yes its One”); case>2: System.out.println(“Yes its more than Two”); break; case else: System.out.print(“Invalid Number): } 2 12 Explain the use of Comments in Java with example 2 13 Explain two circumstances where run time errors may occur in a java program. 2 14 Write two characteristics of a good program. 2 15 Design an application having an interface like Grade Calculator. Implement functionality by writing method for calculate button of Grade calculation based on marks scored out of 100 4 90 to 100 - A 75 to <90 - B 60 to <75 - C 45 to <60 - D 33 to <60 - E 0 to <33 - F other invalid score 16 Explain the block diagram of a computer. With well labelled suitable diagram 4 17 Define the following. a. Spam b. Malware 2 18 What are various categories of software? Explain each. 4 19 Consider the following form in Interest Calculator application 4 (a) Write the code for jButtonClear Command Button to clear all the textboxes. (1) (b) Write the code for the Click event of the command button jButtonCalculate to calculate the interest and amount depending on the principal, rate and time. The interest is calculated as (PxRxT)/100 and amount as (Principal + Interest). (2) (c) Write code for the Click event of the jButtonExit to terminate the application 20 Describe the three common controls. Also give some of their properties. 2 21 What is the purpose of if statement? Name the different forms of if statement. 2 22 Explain the following terms: a) Exception handling 2 23 24 25 26 b) Syntax Error Design a form and write a code to find the greatest among three un-equal numbers. Using Netbeans Differentiate between: 1. Text field and Text area components : 2. parseInt() and parseDouble() methods: Name the primitives data types in java. a. What is DBMS? Write names of any two DBMSs. b. Write short Notes on: 1. Tuple and Attribute 2. Characteristics of MySQL: 4 4 2 6
Report "Informatics Practices Class XI Half Yearly Exam Paper 2014 QuestionPaper Set 2"