COMP A
COMP A
COMP A
21) Which of the following represents non-exclusive relationship between two classes?
(A) Aggregation (B) Composition (C) Inheritance (D)Polymorphism
22) Which of the following refers to representation of data in which the implementation
details are hidden?
(A) Encapsulation (B) Abstraction (C) Polymorphism (D) Composition
23) Which of the following is not a correct way to create and initialize an array names marks?
(A) int marks [ ] = new int [3]; (B) int [ ] marks = new int [3];
(C) int marks [ ] = {0, 10, 20}; (D) int marks [3] = {0, 10, 20};
24) In the following statement for declaring 2-D array of Java 5 represents what?
int marks [ ] [ ] = new int [5] [3]
(A) Number of rows (B) Number of columns (C) Array size (D) Number of bytes
25) In Java, array index value starts from which number?
(A) 0 (B) 1 (C) –1 (D) 8
26) In Java, which of the following constructor creates a string object same as object specified
in argument?
(A) String (char ary [ ]) (B) String ()
(C) String (String literal) (D) String (String strObj)
27) In Java, initial value for 1-D array are separated using which symbol?
(A) . (Full stop) (B) , (Comma) (C) : (Colon) (D) – (Dash)
28) In Inheritance, what is called an existing class?
(A) Sub class (B) Super class (C) Child class (D) Derived class
29) sort() and fill() are methods of which of the following Java class ?
(A) java.string (B) java.util.Arrays (C) java.io (D) java.util.io
30) LaTeX commands start with which of the following character followed by the command
name ?
(A) \ (Back slash) (B) / (Slash) (C) $ (Dollar) (D) – (Dash)
31) In Java, Scanner class can be used to perform which of the following operations ?
(A) Accept input from the keyboard (B) Write data into file
(C) Reading password (D) Count number of character in file
32) In KompoZer, which menu – option is used to view the different toolbars and status bar?
(A) View Show/Hide (B) Edit Shot/Hide
(C) Insert Menu (D) Edit Display
33) In LaTeX, which of the following command is inserted at the end of line to insert a break
in lines ?
(A) \ (B) # (C) % (D) \\
34) Which of the following statement is true for Java Language?
(i) Java language was developed by Sun Microsystem.
(ii) Java is an object-oriented language.
(iii) Java is not platform-independent at both the source and binary level.
(A) Only (i) and (ii) (B) Only (ii) and (iii)
(C) Only (i) and (iii) (D) (i), (ii) and (iii)
35) In Java, which of the following is not a step of creating an object form a class?
(A) Declaration (B) Instantiation (C) Initialization (D) Calculation
36) In Java, when no visibility modifier is used, then what is the default visibility?
(A) Public (B) Package (C) Protected (D) Private
37) In Java, which keyword is used to call the constructor of super class in the constructor of
sub class?
(A) base (B) sub (C) super (D) parent
38) Which of the following is a new card payment mechanism launched by National Payment
Corporation of India (NPCI)?
(A) Rupy (B) PayRupy (C) Rudeb (D) RuPay
39) In Java, float data type takes how many bytes of storage space?
(A) 2 bytes (B) 4 bytes (C) 8 bytes (D) 16 bytes
40) Which operator is used to access instance variable via object in Java?
(A) : (B) , (C) + (D) .
41) Which of the following is a computer program that detects, prevents and takes action to
remove the malicious code from the infected system?
(A) Digital Certificate (B) Cryptography (C) Antivirus software (D) Firewall
42) Which of the following is not a symbol of trademark?
(A) TM (B) SM (C) © (D) ®
43) Which of the following statement is true for object oriented programming language?
(i) It uses object as its fundamental building block.
(ii) Similar objects are classified using a concept of class.
(iii) Abstraction, Encapsulation, Polymorphism and Inheritance is its basic properties.
(A) Only (i) and (ii) (B) Only (ii) and (iii)
(C) Only (i) and (iii) (D) (i), (ii) and (iii)
44) Which of the following is a digital code inserted into a digital image, audio or video file
which can identify the file’s copyright information?
(A) Image Mark (B) Digital Mark (C) Code Mark (D) Water Mark
45) In Java, which of the following loop is a exit-controlled or post-test loop construct?
(A) for loop (B) while loop (C) do ... while loop (D) switch
46) In KompoZer, which of the following viewing mode Edit mode toolbar offers the page
view as seen in a browser?
(A) Normal view (B) HTML Tags view (C) Preview mode (D) Print view
47) Which of the following statement is right for Boolean literals in Java ?
(i) 0 is treated as false and 1 is treated as true.
(ii) Literals are to be typed without quotes.
(iii) For the boolean type, there are two literals : true and false
(A) Only (i) and (ii) (B) and (ii) and (iii)
(C) Only (i) and (iii) (D) (i), (ii) and (iii)
48) How many types of control structures are there in Java?
(A) One (B) Two (C) Three (D) Four
49) In Java, variable name must begin with which of the following?
(A) % (B) Digits (C) Space (D) Alphabet
50) Which of the following is not a comparison operator in Java?
(A) <= (B) >= (C) = (D) !=
51) After execution of which statement in the loop of Java, all the following statements in a
body of the loop are skipped and no further iteration take place?
(A) continue (B) go (C) break (D) loop
52) Which of the following is not a basic arithmetic operator of Java?
(A) + (B) – (C) * (D) \
53) In KompoZer, which menu – option is used to create a form?
(A) Insert Form Create Form (B) Insert Form Define Form
(C) Edit Form (D) Format Form Create Form
54) Which of the following statement is true for JavaScript variable?
(i) Variables in JavaScript are case sensitive.
(ii) JavaScript variable can store numbers, strings or text.
(iii) In JavaScript, variables can be declared using VAR keyword.
(A) Only (i) and (ii) (B) Only (ii) and (iii)
(C) Only (i) and (iii) (D) (i), (ii) and (iii)
55) In Java, which of the following variables can be accessed without creating an instance of class?
(A) Instance (B) Static (C) Local (D) Private
56) In Java, which of the following visibility modifier is used to achieve highest level of
protection?
(A) Public (B) Package (C) Protected (D) Private
57) Which of the following is an example of inbuilt JavaScript function?
(A) hello() (B) validateForm() (C) alert() (D) myFun()
58) ) In JavaScript, isNaN(123) function returns what ?
(A) 123 (B) –1 (C) true (D) false
59) In Table properties dialog box of KompoZer, which value of table tab is used to give
caption to the table?
(A) Caption (B) Title (C) Row Title (D) Column Title
60) In the switch statement of Java, the test expression should be of which of the following
type?
(A) float (B) double (C) byte (D) boolean
61) In KompoZer, which tab of the page pane is used to design the web page?
(A) Design (B) Source (C) Split (D) View