Formatting page ...
V I B G Y O R H I G H Third Preliminary Examination AY 2020-21 COMPUTER APPLICATIONS Grade: X Max. Marks : 100 Date : 25/03/2021 Time Allowed: 2 hours Answers to this paper must be written on the paper provided separately. You will not be allowed to write during the first 15 minutes. This time is to be spent in reading the question paper. The time given at the head of this paper is the time allowed for writing the answers. _________________________________________________________________________ This paper is divided into two sections. Attempt all questions from Section A and any four questions from Section B. The intended marks for the questions or parts of questions are given alongside the questions in square brackets [ ]. SECTION A (40 Marks) Attempt all questions Question 1 [10] a. Define the OOP s principle- Abstraction. [2] b. What is Java bytecode? [2] c. Name the keyword that is used to identify the class variables. [2] d. Give the output of the following: [2] (i) System.out.println(Math.round(-200.5) - Math.floor(15.5)); (ii) System.out.println(Math.sqrt(Math.pow(9,2) * -1)); e. Give the output of the following program segment and also mention how many times the loop is executed: inti; for(i = 5; i> 10; i++) System.out.println(i); 1 [2]
|