COMP A

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

1) In HTML, which element is used to insert various fields like radio button, textbox and

checkbox in the form?


(A) <Select> (B) <Area> (C) <Input> (D) <Radio button>
2) In Java exception handling, which of the following block is always executed regardless of
whether or not exceptions are thrown during the execution of the associated try block ?
(A) throw (B) finally (C) catch (D) new
3) Which of the following is not a section of the icon that is used to represent a class in class
diagram?
(A) Name (B) Attribute (C) Behaviour (D) Data Type
4) In Java exception handling, which block is generally used to clean up at the end of
Executing a try block?
(A) catch (B) finally (C) throw (D) new
5) In a class diagram, which symbol is used for public visibility?
(A) – (B) # (C) + (D) ~
6) In Java program, if there is a syntax error, which of the following error we will get ?
(A) Compile - time (B) Run – time (C) Print - time (D) File save - time
7) In Java, which exception class is used for condition resulting in an attempt to access a
non-existing file ?
(A) ArrayIndexOutOfBoundsException (B) FileNotFoundException
(C) NullPointerException (D) PrinterIOException
8) Which of the following best suits to Java?
(A) Procedural programming language (B) Object-oriented programming language
(C) Query language (D) Editor
9) In exception handling of Java, which block contains the code that may give rise to one or
more exceptions ?
(A) throw (B) try (C) catch (D) finally
10) In Java, which constant of calendar class returns day number within a week ?
(A) DAY_OF_WEEK (B) DAY_OF_MONTH (C) DAY_OF_YEAR (D) DATE
11) The object that we throw must be of which of the following Java class type ?
(A) java.lang.throw (B) java.lang.catch
(C) java.lang.throws (D) java.lang.throwable
12) In Java, which of the following method of Date class returns a string representing date
and time of invoking object ?
(A) Date() (B) String toString() (C) Date char() (D) Date Text()
13) In Java, text files and program codes are created using which stream ?
(A) Byte stream (B) Binary stream (C) Character stream (D) Boolean stream
14) In Java, when we write data to stream, what is that stream called ?
(A) Output stream (B) Input stream (C) Data stream (D) Line stream
15) In Write class of Java, which of the following exception occurs when there is a failed I/O
operation ?
(A) FileException (B) InputException (C) OutputException (D) IOException
16) Which of the following method of Java, returns an array of characters as bytes from
invoking string ?
(A) string concat() (B) char getByte() (C) byte [ ] getBytes() (D) string to byte()
17) In Java, FileInputStream and FileOutputStream are classes of which package that give us
the ability to read and write bytes from and into any files in the disk ?
(A) java.input (B) java.output (C) java.file (D) java.io
18) Polymorphism is achieved using how many types of overloading?
(A) Two (B) Three (C) One (D) Four
19) In Java, int compareTo (String str) method returns which of the following value if invoking
string is greater than str ?
(A) 0 (B) >0 (C) <0 (D) Logical value
20) In Java, which method of Scanner class scans the next token of the input as line ?
(A) String next() (B) String nextLine() (C) hasNext() (D) char hasNext()

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

62) Which of the following is not an important security aspect of E-commerce/M-commerce


security?
(A) Confidentiality (B) Integrity (C) Authorization (D) Navigation
63) In Java, which of the following variables can be accessed without creating an instance of a
class?
(A) Instance (B) Static (C) Local (D) Private
64) In Java, if we want to allow data to be modified by others, then which method do we have
to write?
(A) Accessor (B) Mutator (C) Accepter (D) Edit
65) Which of the following is an advantage of E-Commerce?
(A) Initial cost (B) Privacy (C) Security (D)Conduct business 24 x 7
66) Which of the following is not a reserved character of LaTeX ?
(A) # (B) o (C) $ (D) %
67) In JavaScript, which event occurs when a document or image is loaded?
(A) click (B) focus (C) load (D) abort
68) commodity.com and tradeindia.com websites are examples of which of the following
E-commerce business model?
(A) Business to Consumer – B2C (B) Business to Business – B2B
(C) Consumer to Consumer – C2C (D) Consumer to Business – C2B
69) In Java, which method is invoked automatically with creation of an object?
(A) Instance method (B) Constructor (C) Class method (D) Local method
70) When webpage viewed in the browser, where the page title will be displayed?
(A) Title bar (B) Status bar (C) Navigation pane (D) Menu bar
71) In Java, variables defined inside methods or blocks are known as which types of variable?
(A) Local (B) Instance (C) Class (D) Public
72) Which of the following E-Commerce business model refers to business and organizations
that sell products or services to consumers over the Internet using websites?
(A) Business to Consumer – B2C (B) Business to Business – B2B
(C) Consumer to Business – C2B (D) Government to Business – G2B
73) A LaTeX document has how many parts ?
(A) One (B) Two (C) Three (D) Four
74) In KompoZer, which menu – option is used to give a color to the text?
(A) Font Color (B) Format Font Color
(C) Format Text Color (D) Edit Font Color
75) Which of the following is used to transfer web pages from user computer to the web host?
(A) FTP (B) SMTP (C) PPT (D) STTP
76) Which of the following website is not an example of customer to customer (C2C)
E-commerce business model?
(A) eBay.com (B) rediff.com (C) OLX.com (D) Quikr.com
77) In Java, which of the following refers to different methods that have the same name but a
different signature?
(A) Method overloading (B) Duplicate method
(C) Instance method (D) Overridden method
78) Which of the following command structure is used to declare preinstalled packages in the
preamble of LaTeX document ?
(A) \import {package-name} (B) \insert {package-name}
(C) \open {package-name} (D) \usepackage {package-name}
79) In KompoZer webpage, which menu – option is used to insert a horizontal line?
(A) Insert Line (B) Insert Horizontal Line
(C) Edit Horizontal Line (D) Format Line
80) Which of the following is an HTML element on which style can be applied?
(A) Select (B) Declare (C) Selector (D) Declaration
81) In the CSS Stylesheets dialog box of KompoZer, a style rule for each element we have
added will appear below which of the following heading?
(A) External Style (B) Internal Stylesheet
(C) New Stylesheet (D) Public Stylesheet
82) In E-commerce, notices and reminders sent to the customer by companies or banks is an
example of which of the following services?
(A) Online billing (B) Information services
(C) Support services (D) Online banking
83) In HTML, which of the following attribute of form specifies the HTTP method to be used
when sending the data?
(A) Input (B) Submit (C) Action (D) Method
84) Aptana Studio open source software can be easily downloaded from which of the
following website?
(A) www.aptana.org (B) www.aptana.edut
(C) www.aptana.net (D) www.aptana.com
85) On which of the following website GSWAN is online available?
(A) www.gswan.com.in (B) www.gswan.org.in
(C) www.gov.gswan (D) www.gswan.gov.in
86) In SciTE editor, which of the following shortcut key is used to compile LaTeX ?
(A) F4 (B) F5 (C) F7 (D) F9
87) In CSS Stylesheets dialog box of KompoZer, which tab shows the CSS code which is
generated?
(A) Text (B) Background (C) General (D) Aural
88) Which of the following techniques works by identifying repetition in the data and encodes
the data in a way reduces or eliminates such repetition ?
(A) Data print (B) Data hiding (C) Data compression (D) Data duplicate
89) In KompoZer, Cascade button is available on which toolbar?
(A) Composition Toolbar (B) Format Toolbar – 1
(C) Format Toolbar – 2 (D) Menu bar
90) Which of the following is a free open source web development IDE?
(A) HTML (B) KompoZer (C) SciTE (D) Base
91) In JavaScript, which keyword is used to define a function?
(A) fun (B) FUNC (C) Func (D) function
92) Which of the following is not an important point of website development planning
process?
(A) Purpose (B) Audience (C) Content (D) Input
93) Which of the following refers to a file that has an entire directory structure inside it ?
(A) Apache (B) Archi (C) Archie (D) Archive
94) Using which of the following inbuilt JavaScript function data can be converted into
number?
(A) isNaN() (B) isNumber() (C) parseNumber() (D) parseFloat()
95) Which of the following free open source WYSIWYG HTML editor supports languages like
English, Dutch, German, Chinese and many more?
(A) Aptana Studio (B) Blue Griffon (C) Amaya (D) KompoZer
96) Which bar of VLC media player shows, how much of the current track has been played
and what is its total duration ?
(A) Menu bar (B) Toolbar (C) Progress bar (D) Status bar
97) In JavaScript, which sign is used as a mark of separation?
(A) ; (Semi colon) (B) : (Colon) (C) . (Full stop) (D), (Comma)
98) Stock market services offered via mobile devices are known as?
(A) Mobile Banking (B) M-Banking (C) Mobile Brokerage (D)Mobile Transaction
99) In ‘R’ software, which of the following command is used to open online help in a browser ?
(A) myhelp() (B) cmdhlp() (C) command() (D) help.start()
100) Which of the following is not a popular website for online auction?
(A) www.eBay.com (B) shopping.indiatimes.com
(C) www.mybids.in (D) www.onlineauction.com

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy