The document consists of a series of multiple-choice questions related to programming concepts, Java, web development, and software tools. Topics covered include inheritance, data protection mechanisms, Java file extensions, exception handling, and LaTeX commands. The questions are designed to test knowledge on various programming languages and development environments.
The document consists of a series of multiple-choice questions related to programming concepts, Java, web development, and software tools. Topics covered include inheritance, data protection mechanisms, Java file extensions, exception handling, and LaTeX commands. The questions are designed to test knowledge on various programming languages and development environments.
The document consists of a series of multiple-choice questions related to programming concepts, Java, web development, and software tools. Topics covered include inheritance, data protection mechanisms, Java file extensions, exception handling, and LaTeX commands. The questions are designed to test knowledge on various programming languages and development environments.
The document consists of a series of multiple-choice questions related to programming concepts, Java, web development, and software tools. Topics covered include inheritance, data protection mechanisms, Java file extensions, exception handling, and LaTeX commands. The questions are designed to test knowledge on various programming languages and development environments.
Download as DOCX, PDF, TXT or read online from Scribd
Download as docx, pdf, or txt
You are on page 1of 6
1. Inheritance is generally referred to which kind of relationship between two classes ?
(A) ‘not is – a’ relationship (B) ‘a – part – of relationship
(C) ‘is – like’ relationship (D) ‘is – a’ relationship 2. Composition model refers to which of the following relationship ? (A) Non exclusive (B) Exclusive (C) ‘a – kind – of relationship (D) None of these 3. From the following which mechanism providing protection to data and methods of a program ? (A) Aggregation (B) Composition (C) Polymorphism (D) Encapsulation 4. When the program gets compiled without errors, compiler creates which type of file extension in Java ? (A) .class (B) .java (C) .C++ (D) .c 5. From the following which is not compiled or interpreted in Java ? (A) if statement (B) Function (C) Comment (D) Variable 6. Which menu-option is used if the program is compiled without any error ? (A) Tools → Execute (B) Edit → Go (C) Tools → Go (D) Tools → Compile 7. In Java, boolean data type hold which logical values ? (A) Y, N (B) 0, 1 (C) True, False (D) Yes, No 8. Which zip format is used in Java ? (A) ZAR (B) Openoffice.org (C) TAR (D) JAR 9. To open a play list in VLC player which menu – option is used ? (A) View → Open directory (B) Media → Open directory (C) View → Play list (D) Media → Save play list 10.Which service provides the facility of finding the nearest ATM centre, bank, bus stop ? (A) Hotspot (B) GSP (C) GPS (D) Will 11.Which software is used for Statistical computing? (A) Rational plan (B) Skype (C) ‘R’ software (D) Character map 12.From the following which Rational plan allow us to manage independent projects ? (A) Multi (B) Viewer (C) Single (D) None of these 13.Which option of Image Properties dialog box will display the text in case the image is not displayed in the browser in KompoZer ? (A) Alternate text (B) Don’t use altemet text (C) Text (D) Tooltip 14.Which menu-option is used to change the page title of web page in KompoZer ? (A) Format → Page title and Properties (B) View → Page title → Properties (C) Insert Page title → Properties (D) Edit Page title → Properties 15.Which of the following is a variable that is stored on the users computer ? (A) Java (B) HTML (C) Integer (D) Cookie 16.From the following, who offers limited free space on the Webserver ? (A) SSL (B) ISP (C) FTP (D) IDE 17.What is the full form of FTP ? (A) First Tool Process (B) File Transfer Property (C) File Transfer Protocol (D) File Transfer Process 18.From the following wliich are the open source web development tools ? (A) Aptana Studio (B) BlueGriffon (C) Amaya (D) All of these 19.If ‘str’ is the object of string class and its content is “I_Like_Computer”, then what is the value of str.length( ) ? (A) 15 (B) 19 (C) 17 (D) 13 20.What stands for AM and PM in integer constant of calender class ? (A) 0 and 0 (B) 1 and 1 (C) 1 and 0 (D) 0 and 1 21.Which braces is used in 2-D array using comma separated values of data elements ? (A) < > (angled bracket) (B) ( ) (simple bracket) (C) { } (curly bracket) (D) [ ] (square bracket) 22.Which of the following refer to the starting index value in arrays ? (A) 1 (B) 0 (C) null (D) All of these 23.In Java, all kinds of error conditions are called what ? (A) Error (B) Exception (C) Abbreviation (D) Anomaly 24.Which exception class observed when an attempt to access a non existing file ? (A) NumberFormatException (B) NullPointerException (C) ArithmeticException (D) FileNotFoundException 25.__ is a computer program that detects, prevents and takes action to remove the malicious codes like viruses, worms and trojan horses from the infected system ? (A) Antivirus software (B) Encryption (C) Cryptography (D) Digital certificate 26.In which way of programming, the focus is on writing functions or procedures which operate on data ? (A) Object oriented programming (B) Procedural programming C) Query language (D) All of these 27.In object oriented programming, attributes that describe the object are known as what ? (A) Object (B) Data Field (C) Method (D) Behaviour 28.What is in the middle section of class diagram ? (A) Method of class (B) Attributes or properties of the class (C) Behaviour class (D) Name of the class 29.Which sign is used for ‘Package’ visibility ? (A) ~ (B) + (C) # (D) – 30.In which feature, object oriented programming allows defining more than one method having same but different signature in class ? (A) Aggregation (B) Data abstraction (C) Function or method overloading (D) Encapsulation 31.__method of java.util.Arrays will fill whole or partial array with specified value ? (A) sort() (B) put() (C) print() (D) fill() 32.int compareTo(String str) method returns which value if invoking string is equal to ‘str’ ? (A) 0 (B) >0 (C) <0 (D) -1 33.__ methods of string class returns a string after appending ‘str’ with the invoking string ? (A) char indexAt(int index) (B) byte [] getBytes() (C) String concat(String str) (D) String append (String str) 34.In Java, if ‘str’ is the object of string class and it’s content is “Thank GOD”, then what is the value of str.length() ? (A) 9 (B) 10 (C) 8 (D) 11 35.__of Date class of Java returns a string representing date and time of invoking object ? (A) long getTime() (B) Date (long elapsedTime) (C) void setTime(long elapsedTime) (D) String toString() 36.In Java, Calendar class is provided into which package ? (A) java.date (B) java.calendar (C) java.year(D) java.util 37.In Java, what type of value is returned when we use get method of Calendar class with the constant DAY_OF_YEAR as an argument ? (A) int (B) char (C) string (D) Boolean 38.___ refers to an error condition in Object Oriented programming terminology ? (A) Anomaly (B) Abbreviation (C) Exception(D) Deviation 39.In Java, wliich exception class is used when there is an attempt to divide any number by 0