0% found this document useful (0 votes)
21 views10 pages

March 2022 (General Stream)

The document contains a series of multiple-choice questions related to programming concepts, particularly in Java, web development, and LaTex. It covers topics such as input handling, polymorphism, HTTP methods, and object-oriented programming principles. Each question provides four answer options, testing knowledge on various technical aspects and tools.

Uploaded by

zalakavyaraj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views10 pages

March 2022 (General Stream)

The document contains a series of multiple-choice questions related to programming concepts, particularly in Java, web development, and LaTex. It covers topics such as input handling, polymorphism, HTTP methods, and object-oriented programming principles. Each question provides four answer options, testing knowledge on various technical aspects and tools.

Uploaded by

zalakavyaraj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

March 2022 (General Stream)

1. In Java, which of the following classes can be used to get the input from the keyboard, when
input to be typed in hidden form?
(A) java.util.Scanner (B) java.util.Console (C) java.io.Console (D) java.io.FileReader
2. Which type of polymorphism is achieved, when same operation is given different meanings
depending upon the data type of operands used?
(A) Method overloading(B) Operator overloading(C) Aggregation (D) Composition
3. Which of the following websites is not a proper example of online book store?
(A) www.makemytrip.com (B) www.buybooksindia.com
(C) www.amozon.com (D) shopping.indiatimes.com
4. Which kind of variables are of basic data types and can store only one value at a time?
(A) Array variable (B) 1-D variables (C) 2-D variables (D) Scalar variables
5. In Java, what will be the value of variable next, where next=(N%2==0)?(N/2);(3*N+1); and
N is 9?
(A) 4.5 (B) 9 (C) 28 (D) Error
6. Which of the following HTTP methods does not have any restrictions on data length?
(A) Set (B) Put (C) Get (D) Post
7. Which of the following is the original file format of rational plan viewer?
(A) .java (B) .xrp (C) .class (D) .html
8. Which of the following is a new card payment mechanism launched by NPCI?
(A) Master Card (B) Visa Card (C) Google Pay (D) Rupay
9. In KompoZer, which one of the following dialog boxes will be opened when we click on
Form --> Text Area option from menu?
(A) Text Area of Form (B) Text Area of Properties
(C) Form Field Properties (D) Advanced Edit Properties
10. Which of the following is not a benefit of M-Commerce?
(A) Provides global reach (B) Conducts business 24x7
(C) Timely information can reach the user (D) It offers a limited bandwidth
11. Which tab is available in ‘Insert Table’ dialog box of KompoZer?
(A) Location (B) Settings (C) Precisely (D) Table
12. In Java, which of the following determines the required memory size, type of values, range
of values and type of operation that can be performed?
(A) Variables (B) Data types (C) Comments (D) Arithmetic operators

Page 1 of 10 Mar 2022 G


13. In Java, which of the following are the construction of classes that incorporate other
objects?
(A) variables and literals (B) new keyword and class keyword
(C) accessor and mutator methods (D) composition and aggregation
14. In JavaScript, which of the following functions returns true if the value is not-a-number and
false if the value is a number?
(A) alert () (B) validateForm () (C) length () (D) inNaN ()
15. In Java, which of the following is not a proper example of common syntax errors?
(A) Mismatch of bracket (B) Use of undeclared variable
(C) An attempt to divide any number by 0 (D) Wrong spelling of identifier or keyboard
16. Which of the following is an event handler of submit event?
(A) submit () (B) submission () (C) onsubmit () (D) onclick ()
17. In Java, which method of date class returns number of milliseconds since January 1, 1970
GMT?
(A) Date (long elapsed time (B) long get Time ()
(C) Date () (D) void set Time (long elapsed Time)
18. In LaTex, which document class is used for generating presentations similar to office suites
using the beamer package?
(A) beamer (B) slides (C) letter (D) book
19. In which property of OOP, only the object that “owns” the data can change its content?
(A) Encapsulation (B) Data abstraction(C) Messaging (D) Aggregation
20. In Java, which of the following can be used in a method declaration or constructor
declaration to inform that the code within the constructor or method may throw an
Exception?
(A) catch block (B) finally block (C) throws clause (D) throw statement
21. Which class of Java van be used to access attributes of files like file permissions, length of a
file, last modification time?
(A) Writer Class (B) File Class (C) Scanner Class (D) Console Class
22. In Publish Page dialog box of KompoZer, in which field of website information, the actual
web address or URL of the website should be specified?
(A) site name (B) Publishing server
(C) User name (D) HTTP address of your home page
23. Which of the following are data centres, which perform the credit card transactions and
settle funds to the merchant?

Page 2 of 10 Mar 2022 G


(A) Issuing banks (B) Acquiring banks (C) Processors (D) Payment Gateways
24. Which of the following is a complete Web authoring system which integrates web page
development and web file management?
(A) Menu bar (B) HTML (C) KompoZer (D) CSS
25. In Java, in switch statement, which of the following statements will be executed, when no
match is found?
(A) break (B) default (C) continue (D) exit
26. In which of the following, the lifetime of of the part class depends on the existence of the
owner class?
(A) Abstraction (B) Polymorphism (C) Composition (D) Aggregation
27. In which section of UML diagram, behaviour or methods or operations of a class are
available?
(A) Top section (B) Bottom section (C) Middle section (D) Left section
28. In Java, which type of object must be there, to create an exception object and throw it
explicitly otherwise compile error occurs?
(A) java.lang.Throwable (B) java.util.Throwable
(C) java.Throwable (D) java.Throwable.Exception
29. Which of the following blocks in Java, contains the code that we want to monitor for
exceptions?
(A) catch block (B) try block (C) finally block (D) throws clause
30. In Java, which of the following is same as q &&= p?
(A) q = q p (B) q = q - p (C) q = q + p (D) q = q && p
31. In CSS Stylesheet dialog box, which button should be clicked, after selecting selector from
the drop down menu to create a style rule?
(A) Create Style rule (B) Advanced Edit (C) General (D) Internal Stylesheet
32. Which of the following LaTex commands provide text in bold letters?
(A) \text b (B) \text bold (C) \text bold face (D) \text bf
33. Which command of LaTex is used to represent mathematical symbol ‘’?
(A) \neq (B) \pm (C) \mp (D) \gep
34. In Java, which property of 1-D array is used to know size of each row?
(A) size (B) length (C) sort (D) fil
35. In Java, which constant of calendar class will display day number in the year?
(A) DAY_OF_YEAR (B) DAY (C) DAY_OF_MONTH (D) DAY_OF_WEEK
36. What is the full form of CA?

Page 3 of 10 Mar 2022 G


(A) Chief Accountant (B) Certification Authority
(C) Channel Authority (D) Certified Accountant
37. In CSS Stylesheets dialog box of KompoZer, which of the following tabs is not available?
(A) General (B) Style (C) Aural (D) Box
38. In Java, which logical operator results in complemented result?
(A) NOT (B) AND (C) OR (D) XOR
39. Which of the following helps us in creating and using archive files for backup, for transfer
via an external storage device, for transfer via network etc.,?
(A) VLC Media Player (B) Character Map (C) Google Map (D) Archive Manager
40. In Java, which of the following returns a reference to an object that represents an instance
of the class?
(A) Super (B) New keyword (C) Extends (D) Class keyword
41. Use of which protection of Java will become more relevant when we use inheritance
concept of object-oriented programming?
(A) Public (B) Private (C) Protected (D) Package
42. In Java, which method of scanner class, scans the next token of the input as Line?
(A) string next ( ) (B) boolean has Next()
(C) int next Line( ) (D) string next Line( )
43. In Java, which of the following blocks is always executed before the program ends,
regardless of whether any exceptions are generated in the try block or not?
(A) throw statement (B) throws clause (C) catch block (D) finally block
44. Which of the following symbols is the beginning of LaTex comment?
(A) /* (B) % (C) // (D) #
45. In Java, which of the following is a proper syntax to define class?
(A) <class name> (B) <object name>
{ {
<variables> <variables>
<methods> }
}
(C) new <object name> (D) class <class name>
{ {
<variables> <variables>
<methods> <methods>
} }

Page 4 of 10 Mar 2022 G


46. Which of the following open source IDE is a complete web development environment,
which provides language support for HTML, CSS, JavaScript, Ruby, Rails, PHP, Python abd
many more?
(A) KompoZer (B) BlueGriffon (C) Aptana Studio (D) Amaya
47. In Java, which of the following methods calls sort elements of array ‘list’ from list [1] to list
[5-1]?
(A) sort (list) (B) java.sort (list)
(C) java.util.Array.sort (list, 1,5) (D) java.util.sort (list, 5)
48. In Java, which method of file class returns an array of abstract path names denoting the
files in the directory?
(A) String [] list () (B) long length () (C) File [] list Files ()(D) string get Path ()
49. In Java, which of the following are useful when same operations are to be performed on
various elements of the similar type?
(A) Operators (B) Arrays (C) Files (D) Comments
50. In Java, which of the following is an invalid variable name?
(A) totalAmount (B) birthDate (C) $ price (D) top5students
51. Which of the following is the transformation of plain text into unreadable or cipher text
using encryption algorithm?
(A) Digital certificate (B) Encryption (C) Decryption (D) Digital water marking
52. By using which of the following E-Commerce business models, the sharing of information
helps in reducing IT costs, streamline procedures and government offices can be more
efficient?
(A) G2B (B) G2G (C) G2C (D) B2C
53. In Java, instance variables and instance methods are referred by using which operator?
(A) dot ( . ) operator (B) plus ( + ) operator
(C) Hyphen ( - ) operator (D) under score ( _ ) operator
54. In Java, which of the following is a proper example of initializing 1-D array?
(i) int marks [3] = {90, 100, 110};
(ii) int marks [ ] = {90, 100, 110};
(iii) int [ ] marks = {90, 100, 110};
(A) Only (i) (B) (i) and (ii) (C) (i) and (iii) (D) (ii) and (iii)
55. Which of the following describes a group of objects with similar attributes and common
behaviour?
(A) Variables (B) Objects (C) Procedural programming(D) Class

Page 5 of 10 Mar 2022 G


56. In Java, how many integer values can be stored using following array?
int marks [ ] [ ] = new int [4] [4];
(A) 4 (B) 8 (C) 16 (D) 64
57. Which of the following describes the style of the elements in the document and not its
content?
(A) CSS (B) HTML (C) JavaScript (D) HTTP Method
58. In Java, which of the following can not be invoked explicitly elsewhere in the program?
(A) class (B) constructor (C) class variable (D) display ( ) method
59. In KompoZer window, which of the following toolbars is available at the bottom right side
of the window?
(A) Status bar (B) Site manager (C) Edit mode toolbar(D) Composition toolbar
60. Which of the following properties should be supported by object – oriented programming
language?
(A) Abstraction, encapsulation, polymorphism, inheritance
(B) Aggregation, composition, inheritance abstraction
(C) Generalization, abstraction, inheritance, polymorphism
(D) Abstraction, composition, polymorphism, inheritance
61. Which of the following symbols represents ‘package’ visibility?
(A) # (B) + (C) ~ (D) -
62. Which of the following is the default view of Google Map?
(A) Satellite view (B) Map view (C) 3-D view (D) Realistic view
63. In LaTex, which of the following is the very first element in the preamble?
(A) \date (B) \document class {document class name}
(C) \author (D) \chapter
64. In Java, which of the following enables to take one of two alternative courses of action
depending on whether the value of a given boolean = valued expression is true or false?
(A) Switch statement (B) For loop (C) While loop (D) If - statement
65. In Java, which escape code represents ‘carriage return’?
(A) \n (B) \r (C) \t (D) \f
66. In Java, how many arguments are required to fill partial array?
(A) 2 (B) 3 (C) 4 (D) 5
67. In which kind of commerce, the retail merchant with their years of experience create the
store design which helps the customer to purchase a product?
(A) E-Commerce (B) M-Commerce (C) L-Commerce (D) Traditional Commerce

Page 6 of 10 Mar 2022 G


68. In KompoZer, which of the following menu options is used to give a suitable color to the
text?
(A) Format --> Change text color (B) Format --> Text colot
(C) Edit --> Text color (D) File --> Change text color
69. Which object of Browser Object Model (BOM) is created automatically by the browser?
(A) frame (B) form (C) document (D) window
70. Which of the following adds interactivity to HTML pages and is inserted directly into the
HTML code?
(A) CSS (B) JavaScript (C) Java (D) Oracle
71. In Java, in which steps of object creation, constructor is called to initialize the newly
created object?
(A) Declaration (B) Instantiation (C) Initialization (D) Modification
72. Which of the following type of <input> element is generally used to select a single item
from a given group of items?
(A) Radio (B) Checkbox (C) Text (D) Reset
73. In Java, which of the following is correct syntax of do... while loop?
(A) do {statements} (exp);
(B) do (exp) {statements} (while);
(C) do (exp1; exp2; exp3) {statements};
(D) do (exp) {statement 1} while {statement 2};
74. IN Java, which of the following allows us to build new class with added capabilities by
extending existing class?
(A) Accessor method (B) Mutator method (C) Inheritance (D) Constructor
75. Which of the following methods of string class of Java returns true if invoking string is same
as str after ignoring case?
(A) boolean equals ignore case (string str) (B) int compare To (string str)
(C) boolean equals (string str) (D) int length ( )
76. Which of the following examples represents multilevel inheritance?
(A) date 1 – date 2 and n1 – n2 (B) Motherboard is a part of computer
(C) Employee is a kind of person and teacher is a kind of employee
(D) Call to a method
77. Which of the following E-Commerce business models enables the businesses to form E-
relationship with their suppliers, distributors and other agents?
(A) B2B (B) B2C (C) C2B (D) C2C

Page 7 of 10 Mar 2022 G


78. Which E-Commerce business model enables the consumers to directly deal with each other
through online auctions and classified advertisements without involvement of third party?
(A) B2C (B) C2B (C) B2B (D) C2C
79. Which of the following commands is used to compile the Java program?
(A) run <file name> (B) execute <file name>(C) javac <file name>(D) java <file name>
80. In Java, which kind of variables are allocated memory from heap area when an object is
created?
(A) Instance variables (B) Local variables (C) Class variables (D) Global variables
81. Which of the following security aspects of M-Commerce ensures that the sender of the
message can not deny that the/she sent the message?
(A) Confidentiality (B) Integrity (C) Non-repudiation(D) Authorization
82. In CSS stylesheets dialog box of KompoZer, which tab is used to keep an image in the
background?
(A) Background (B) General (C) Borders (D) Aurals
83. In Java, which kind of files contain data that can be read in a text editor because the data
has been encoded using a scheme such as ASCII or Unicode?
(A) Text files (B) Binary files (C) Image files (D) Audio files
84. In VLC Media Player, which menu option is used to open playlist?
(A) View --> Playlist (B) File --> Open --> Playlist
(C) View --> Open Playlist (D) File --> Open --> Media --> Playlist
85. In Image Properties dialog box of KompoZer, which tab shows radio button with ‘Alternate
text’ option?
(A) Link (B) Location (C) Dimensions (D) Appearance
86. In KompoZer, if we want any option of the radio button selected when the form is loaded
then, which checkbox should be ticked?
(A) Initially checked (B) Initially selected(C) Read only (D) Advanced edit
87. Which of the following is a valuable tool for businesses and other organizations when
composed of the right material?
(A) Audience (B) WYSIWYG tools (C) Images (D) Website
88. Which of the following is an advantage of E-Commerce?
(A) Resistance to change(B) Security (C) Privacy (D) Teamwork
89. In KompoZer, which of the following menu options is used to open the recently opened file?
(A) File --> Open (B) File --> Recently Opened Files
(C) File --> Recent File (D) File --> Recent Pages

Page 8 of 10 Mar 2022 G


90. In Java, which code indicates that some problem occurred while executing the command?
(A) Exit code : 0 (B) Exit code : 1 (C) Exit code : -1 (D) Exit code : -2
91. In LaTex, which character is used to denote a non-breaking space?
(A) % (B) { } (C) ~ (tilde) (D) \\
92. Which part of Java looks for unused objects and reclaims the memory that those objects are
using?
(A) new keyword (B) heap area (C) constructor (D) garbage collector
93. Which of the following is not an important point to be considered while developing a good
website?
(A) Content (B) Medium (C) Table size (D) Purpose
94. In the following statement of JavaScript, what is object name?
‘document.write (Hello world”);
(A) document.write (B) write (C) document (D) hello world
95. Which of the following events would occur, when loading of image is cancelled?
(A) Cancel (B) Abort (C) Change (D) Blur
96. In KompoZer, which option of Table tab, of the Table properties dialog box shows the
number of rows, columns and height and width of the table?
(A) Size (B) Borders and spacing
(C) Table alignment (D) Caption
97. Which one of the following services is not available with online banking?
(A) Deposit money through cheque (B) Obtain statement for any credit or debit
(C) Find status of transaction (D) Check account balance any time
98. In KompoZer, which tab displays the HTML source of the current element?
(A) Design (B) Source (C) Split (D) Preview
99. Which of the following programs can be used to enter Unicode characters into any
application?
(A) Google Map (B) Skype (C) Archive Manager (D) Character Map
100. In Java, which method of file writer class writes the lower 16 bits of ‘c’ to the stream?
(A) void write (int c) (B) void write (string s)
(C) boolean write (int c) (D) string (write (int c))

Page 9 of 10 Mar 2022 G


Corrections are there in this nos

4
11
13
17
19
24
26
29
34
37
38
41
42
47
48
52
58
64
66
68
73
74
85
89
91
94
98
100

Page 10 of 10 Mar 2022 G

You might also like