Computer Imp
Computer Imp
(1) Which of the following labels appears in “Create a new document or template” dialogue box?
Ans. : Create in
(2) Which option is to be selected to arrange any toolbar by right clicking on it?
(A) Block Background Color (B) Background Color (C) Block Color (D) Bg Color
(4) Which is the available check box that gives initial value in “Selection List Properties” Dialogue
Box?
(A) Initial Value (B) Start Value (C) Initially Selected (D) None of these
(5) Which of the following tags is used to create row of a table in HTML?
Ans. : TR
(6) In which kind of Field type does Initially Selected Check Box appear?
(A) Radio Button (B) Selection list (C) Check Box (D) A and b both
(7) Show the toolbar in which an option Heading 1 appears to give title of a form.
(A) Format Toolbar2 (B) Format Toolbar (C) Composite Toolbar (D) Edit mode
(A) When You See Is When You Get (B) What You See Is When You Get
(C) What You See Is What You Get (D) When You See Is What You Get
(A) GET and POST (B) GET and SET (C) GET and PUT (D) SET and POST
(10) Which of the following term provides facility of sending information in form of blocks using
HTTP transaction ?
(11) Which of the following keeps the data safe from unintended actions and inadvertent access by
outside objects?
Ans. : Encapsulation
(A) Many forms (B) different forms (C) a or b (D) None of these
Ans. : a or b
(13) Which of the following enables to represent data in which the implementation details are
hidden?
Ans. : Abstraction
Ans. : Data-Abstraction
(15) Which type of functions can be defined more than one time with same name in object oriented
programming?
(16) What type of encapsulation is possible by wrapping data and methods into a class?
Ans. : private
(17) In which of the following programming are data and functions separate entities?
Ans. : Structured
(A) Private (B) Protected (C) Public 0r Package (D) All of these
(A) Subclass (B) Child class (C) Derived class (D) All of these
(20) What is called the capability of using same names to mean different things in different context in general?
(21) Which of the following methods is invoked when a new object is created?
Ans. : constructor
Ans. : Package
(23) Which constructor is no more available in presence of user defined constructors in a class?
Ans. : Default
(24) Which of the following initializes the attributes of newly created object using default values
(A) Default constructor (B) Varies constructor (C) Constant constructor (D) None of these
Ans. : Declaration
Ans. : Math
(28) ‘protected’ members are available as the following type of members in the inherited subclass.
Ans. : private
(29) Which of the following is the keyword used to refer a superclass constructor in subclass
constructor?
(A) extends (B) super (C) name of the superclass (D) new
Ans. : super
(A) Special word of Java (B) Special part of memory (C) Special subsidiary part of memory
(38) After errorless compilation of Java program …………….. file is automatically created.
(A) .class
(B) .java
(C) .cmp
(D) .jacm
Answer:
(A) .class
(41) Basic variable can store only one value. Such variable is known as …………….. .
(A) constant variable
(B) scalar variable
(C) modular variable
(D) (A) or (B)
Answer:
(D) (A) or (B)
(44) int marks [ ] = new int [5] , how many bytes will be required by marks array ?
(A) 15
(B) 20
(C) 18
(D) 5
Answer:
(B) 20
(46) If we initialize the values of variables directly then …………….. operator is not needed.
(A) new
(B) create
(C) array name
(D) all of these
Answer:
(A) new
(47) Which elements are sorted by giving java.util.Arrays.sort (list 1, 5) ?
(A) list [1] to list [5]
(B) list [1] to list [5 – 1]
(C) list [0] to list [5 – 1]
(D) None of these
Answer:
(B) list [1] to list [5 – 1]
(48) Pair of ……………… brackets are used to declare 2-D array in java.
(A) ( ) ( )
(B) [ ] [ ]
(C) { } { }
(D) < > < >
Answer:
(B) [ ] [ ]
(50) Which constructor will create a string object using variable’s initial value ?
(A) String (char ary[ ])
(B) String()
(C) String (String String)
(D) String (String literal)
Answer:
(A) String (char ary[ ])
(52) If there is no semi colon at the end of the statement then what will happen ?
(A) It will show error while compiling a program
(B) .class is not created
(C) (A) and (B) both
(D) Nothing happens
Answer:
(C) (A) and (B) both
(58) It is usually understood that a compiled program is error free and will always
…………….. successfully.
(A) complete
(B) execute
(C) perform
(D) accomplish
Answer:
(B) execute
(60) What will be the output of the program ? public class Test
{
public static void main(String[ ] args)
try
{
(A) Finally
(B) Compilation fails
(C) The code runs with no output
(D) An exception is thrown at runtime
Answer:
(A) Finally