0% found this document useful (0 votes)
71 views

Class X Chapter 2 Blujava

This document appears to be a practice exam for a computer education course. It contains 3 sections - fill in the blanks with 5 questions, answer 6 questions, and select the correct answer for 5 multiple choice questions. The sections cover topics like object oriented programming, classes, objects, and basic Java concepts. The exam is worth a total of 50 marks and a score of 30 is needed to pass.
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)
71 views

Class X Chapter 2 Blujava

This document appears to be a practice exam for a computer education course. It contains 3 sections - fill in the blanks with 5 questions, answer 6 questions, and select the correct answer for 5 multiple choice questions. The sections cover topics like object oriented programming, classes, objects, and basic Java concepts. The exam is worth a total of 50 marks and a score of 30 is needed to pass.
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/ 2

Computer dot com

A complete computer education


under W.B. Govt registered
An ISO 9001:2015 Certified institute [Online/ In- House ]
Full marks – 50 Qualify - 30
Name __________________________ Date ___________________ A/C ______________

Unit – I [ Fill in the blanks] any 5 5x2=10

1. Creating _______________is the fundamental concept in object oriented programming language.


2. A class is also considered as an _______________factory.
3. A real world object deals with characteristics and _______________
4. The ________________of a class differs on various characteristics.
5. The characteristics of the ______________ objects are considered to be the data members of the
software objects.
6. An object of a class is created by using a keyword ______________
7. Class is a _______________ of the objects.
8. _____________ keyword is used for dynamic allocation of an object.

Unit – 2 [Answer the following questions] any 6 6x5=30

1. How will you define a software object?


2. Define class and object with an example.
3. What does the following statement mean?
Employee staff = new Employee ( );
4. A class is also referred to as 'Object Factory'. Comment.
5. Why is a class known as composite data type?
6. Class and Objects are inter-related. Explain.
7. Why is an Object called an 'Instance' of a class? Explain.
8. Write a statement to create an object 'Keyboard' of the class 'Computer'.

Some part of wrong answer will be rendered the marks

1
Unit- 3 [Tick the correct answer ] any 5 5x2=10

1. Which among the following is not a valid error in Java?


a. Syntax errors b. Logical errors
c. Run-time errors d. Technical errors

2. Which among the following Scanner methods allows us to input a number with a decimal point?
a. nextInt() b. nextFloat()
c. nextDecimal() d. nextPoint()

3. The output in BlueJ occurs in which window?


a. Console window b. Terminal window
c. Both a and b d. None of these

4. The input in BlueJ occurs in which window?


a. Console window b. Terminal window
c. Both a and b d. None of these

5. Assigning value to a variable during declaration is called.


a. Declaration b. Assignment
c. Initialisation d. None of these

6. Which among the following is used to represent single-line comment?


a. // b. /* c. \\ d. <!—

You might also like