RPSC Programmer 2011 Old Question Paper

by on 06/05/2013

 

rpsc programmer old question paper 2

rpsc programmer old question paper 2

 

RPSC Programmer 2011 Old Question Paper

RPSC Programmer 2011 Old Question Paper – II

Click Here for Programmer Paper – I

Click Here for Programmer Paper – II

Question Paper Preview

  • Question Paper Name:      Programmer II 2011 final
  • Creation Date: 2012-04-15      02:26:03.0
  • Duration: 120

Download free study material for rpsc programmer exam 2013

Programmer – II

Question id : 85483 (Correct + 1.0 , Wrong – 0.33)

Most modern software applications enable you to customize and automate various features using small custom-built “miniprograms” called:
1. Macros
2. Code
3. Routines
4. Subroutines

Question id : 85484 (Correct + 1.0 , Wrong – 0.33)

The organized process or set of steps that needs to be followed to develop an information system is known as the:
1. Analytical cycle
2. Design cycle
3. Program specification
4. System development life cycle.

Question id : 85485 (Correct + 1.0 , Wrong – 0.33)

The make-or-buy decision is associated with the ____________ step in the SDLC.
1. Problem/Opportunity Identification
2. Design
3. Analysis
4. Development and Documentation

Question id : 85486 (Correct + 1.0 , Wrong – 0.33)

In the Analysis phase, the development of the ____________ occurs, which is a clear statement of the goals and objectives of the project.
1. Documentation
2. Flowchart
3. Program specification
4. Design

Question id : 85487 (Correct + 1.0 , Wrong – 0.33)

____________ spend most of their time in the beginning stages of the SDLC, talking with end-users, gathering information, documenting systems, and proposing solutions.
1. Systems analysts
2. Project managers
3. Network engineers
4. Database administrators

Question id : 85488 (Correct + 1.0 , Wrong – 0.33)

The problem statement should include all of the following EXCEPT:
1. Input
2. Output
3. Processing
4. Storage

Question id : 85489 (Correct + 1.0 , Wrong – 0.33)

The problem statement includes the ____________, which lists specific input numbers a program would typically expect the user to enter and precise output values that a perfect program would return for those input values.
1. Testing plan
2. Error handler
3. IPO cycle
4. Input-output specification

Question id : 85490 (Correct + 1.0 , Wrong – 0.33)

The condition immediately outside the system is called
1. The boundary
2. The interface
3. The environment
4. All of the above

Question id : 85491 (Correct + 1.0 , Wrong – 0.33)

Turn key package includes
1. Hardware
2. Software
3. Training
4. All of the above

Question id : 85492 (Correct + 1.0 , Wrong – 0.33)

Error may be found by outsider during
1. Structured walk through
2. Formatter
3. A debugger
4. All of the above

Question id : 85493 (Correct + 1.0 , Wrong – 0.33)

Nassi-Schneiderman charts
1. Are being replaced by flow chart
2. Are made up of boxes within boxes
3. often describe overlapping control structure
4. Both (A) and (B)

Question id : 85494 (Correct + 1.0 , Wrong – 0.33)

The longest method of conversion is
1. Direct
2. Parallel
3. Pilot
4. Phased

Question id : 85495 (Correct + 1.0 , Wrong – 0.33)

A channel of communication across a boundary between two or more sub-systems is knows as
1. Interface
2. Link
3. Channel
4. Data Path

Question id : 85496 (Correct + 1.0 , Wrong – 0.33)

Which of the following represents process activities, methods, and procedures in a data flow diagram.
1. Datagram
2. Actigram
3. Feedback
4. None of the above

Question id : 85497 (Correct + 1.0 , Wrong – 0.33)

In What manner coding and testing are done
1. Top-down
2. Bottom up
3. Cross Action
4. Adhoc

Question id : 85498 (Correct + 1.0 , Wrong – 0.33)

The primary tool used in structured design is a:
1. structure chart
2. data-flow diagram
3. program flowchart
4. None of the above

Question id : 85499 (Correct + 1.0 , Wrong – 0.33)

In prototyping
1. COBOL is used
2. 4GLs are used
3. system is documented
4. None of the above

Question id : 85500 (Correct + 1.0 , Wrong – 0.33)

A Ring, refers to a record chain, the last of which refers to the first record, in the chain, is called a/an
1. Location
2. Pointer
3. Loop
4. None of the above

Question id : 85501 (Correct + 1.0 , Wrong – 0.33)

A data dictionary has information about
1. Every data element in a data flow
2. Only key data element in a data flow
3. Only important data elements in a data flow
4. Only numeric data elements in a data flow

Question id : 85502 (Correct + 1.0 , Wrong – 0.33)

It is necessary to carefully design data input to a computer based system because
1. It is good to be careful
2. The volume of data handled is large
3. The volume of data handled is small
4. Data entry operators are not good

Question id : 85503 (Correct + 1.0 , Wrong – 0.33)

By the term “concise code” we understand that the code
1. Conveys information on item being coded
2. Is of small length
3. Can add new item easily
4. Includes all relevant characteristics of item being coded

Question id : 85504 (Correct + 1.0 , Wrong – 0.33)

A record total uses
1. Batch totals of selected fields
2. Count of numbers of records
3. Modulus-11 check digit sum of all fields
4. Total of selected fields of a record

Question id : 85505 (Correct + 1.0 , Wrong – 0.33)

Design of error detecting codes requires good
1. Knowledge of mathematics
2. Statistical mechanics
3. Statistics of errors normally committed during data entry
4. Boolean algebra

Question id : 85506 (Correct + 1.0 , Wrong – 0.33)

Batch control totals will detect
(i) Incorrect data entry of a field
(ii) Missing record
(iii) Data records out of order
(iv) Inconsistent data
1. i and ii
2. i, ii and iii
3. ii, iii and iv
4. iii and iv

Question id : 85507 (Correct + 1.0 , Wrong – 0.33)

In significant codes some or all parts of the code
1. Are meaningful
2. Are usable
3. Are significant
4. Represent values

Question id : 85508 (Correct + 1.0 , Wrong – 0.33)

By the term “meaningful code” we understand that the code
1. Conveys information on item being coded
2. Is of small length
3. Can add new item easily
4. Includes all relevant characteristics of item being code

Question id : 85509 (Correct + 1.0 , Wrong – 0.33)

In on-line data entry it is possible to
1. Give immediate feedback if incorrect data is entered
2. Eliminate all errors
3. Save data entry operators time
4. Eliminate forms

Question id : 85510 (Correct + 1.0 , Wrong – 0.33)

Errors occur more often when
1. Data is entered by users
2. Data is entered by operators
3. When data is handwritten by users and entered by an operator
4. The key board design is bad

Question id : 85511 (Correct + 1.0 , Wrong – 0.33)

Good system design prevents data entry errors by
(i) Designing good forms with plenty of space to write in block capitals
(ii) By giving clear instructions to a user on how to fill a form
(iii) Reducing keystrokes of an operator
(iv) Designing good keyboard
1. i, ii, iii
2. i, ii, iv
3. i, ii
4. iii and iv

Question id : 85512 (Correct + 1.0 , Wrong – 0.33)

The ____________ determines whether the project should go forward.
1. Program specification
2. Opportunity identification
3. System evaluation
4. Feasibility assessment

Question id : 85513 (Correct + 1.0 , Wrong – 0.33)

The starting point for development of an MIS is
1. Identification of business processes that are the essence of the business
2. A distributed database management
3. The system has a large number of PCs and a LAN
4. Purchase of a mini computers

Question id : 85514 (Correct + 1.0 , Wrong – 0.33)

Acceptance testing is
1. Running the system with line data by the actual user
2. Making sure that the new programs do in fact process certain transactions according to specifications
3. Is checking the logic of one or more programs in the candidate systems
4. Testing changes made in an existing or a new program

Question id : 85515 (Correct + 1.0 , Wrong – 0.33)

Which of the following appropriately explains the desirable characteristic of good system design
1. Modular approach
2. Proper documentation
3. Conversion
4. Long discussions

Question id : 85516 (Correct + 1.0 , Wrong – 0.33)

In the system concepts, term Integration
1. Implies structure and order
2. Refers to the manner in which each component functions with other components of the system
3. Means that parts of the computer system depend on one another
4. Refers to the holism of systems

Question id : 85517 (Correct + 1.0 , Wrong – 0.33)

A decision table facilitates conditions to be related to
1. Actions
2. Programs
3. Tables
4. Operation

Question id : 85518 (Correct + 1.0 , Wrong – 0.33)

A branch office, location or other data processing centers, where a newly developed system is used under normal operating conditions for several months, to test it, is called
1. Beta test data
2. Alpha test data
3. String test data
4. System test data

Question id : 85519 (Correct + 1.0 , Wrong – 0.33)

Decision tree uses
1. Pictorial depictation of alternate conditions
2. Nodes and branches
3. Consequences of various depicted alternates
4. All of the above

Question id : 85520 (Correct + 1.0 , Wrong – 0.33)

Top-down programming is
1. A group of related fields
2. A map of the programmer’s view of the data
3. An approach in which the top module is first tested then program modules are added from the highest level to the lowest level
4. A series of group of components that perform one or more operations of a more complex system

Question id : 85521 (Correct + 1.0 , Wrong – 0.33)

Methodologies adopted while performing maintenance testing:
1. Breadth Test and Depth Test
2. Retesting
3. Confirmation Testing
4. Sanity Testing

Question id : 85522 (Correct + 1.0 , Wrong – 0.33)

Which of the following is true about Formal Review or Inspection:-
i. Led by Trained Moderator (not the author)
ii. No Pre Meeting Preparations
iii. Formal Follow up process.
iv. Main Objective is to find defects
1. ii is true and i,iii,iv are false
2. i,iii,iv are true and ii is false
3. i,iii,iv are false and ii is true
4. iii is true and i,ii,iv are false

Question id : 85523 (Correct + 1.0 , Wrong – 0.33)

The Phases of formal review process is mentioned below arrange them in the correct order.
i. Planning
ii. Review Meeting
iii. Rework
iv. Individual Preparations
v. Kick Off
vi. Follow Up
1. i,ii,iii,iv,v,vi
2. vi,i,ii,iii,iv,v
3. i,v,iv,ii,iii,vi
4. i,ii,iii,v,iv,vi

Question id : 85524 (Correct + 1.0 , Wrong – 0.33)

White Box Techniques are also called as :-
1. Structural Testing
2. Design Based Testing
3. Error Guessing Technique
4. Experience Based Technique

Question id : 85525 (Correct + 1.0 , Wrong – 0.33)

What is an equivalence partition (also known as an equivalence class)?
1. A set of test cases for testing classes of objects
2. An input or output range of values such that only one value in the range becomes a test case
3. An input or output range of values such that each value in the range becomes a test case
4. An input or output range of values such that every tenth value in the range becomes a test case.

Question id : 85526 (Correct + 1.0 , Wrong – 0.33)

The Test Cases Derived from use cases
1. Are most useful in uncovering defects in the process flows during real world use of the system
2. Are most useful in uncovering defects in the process flows during the testing use of the system
3. Are most useful in covering the defects in the process flows during real world use of the system
4. Are most useful in covering the defects at the Integration Level

Question id : 85527 (Correct + 1.0 , Wrong – 0.33)

By metadata we mean
1. Very large data
2. Data about data
3. Data dictionary
4. Meaningful data

Question id : 85528 (Correct + 1.0 , Wrong – 0.33)

Incidents would not be raised against:
1. Requirements
2. Documentation
3. Test cases
4. Improvements suggested by users

Question id : 85529 (Correct + 1.0 , Wrong – 0.33)

If records are out-of-order then error may be detected by
1. batch control totals
2. radix check
3. sequence number check
4. range check

Question id : 85530 (Correct + 1.0 , Wrong – 0.33)

Errors in codes are detected by
1. Proper design of code
2. Introducing redundant digits/characters designed to detect errors
3. Making the code concise
4. Making the code precise

Question id : 85531 (Correct + 1.0 , Wrong – 0.33)

Data Definition Language (DDL)
1. Describes how data are structured in the data base
2. Specifies for the DBMS what is required; the techniques used to process data
3. Determine how data must be structured to produce the user’s view
4. All of the above

Question id : 85532 (Correct + 1.0 , Wrong – 0.33)

In phase 1 of the system development life cycle, which of the following aspects are usually analyzed
1. Outputs
2. Input (Transactions)
3. Controls
4. All of the above

Question id : 85533 (Correct + 1.0 , Wrong – 0.33)

You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective?
1. Public
2. Private
3. Protected
4. Transient

Question id : 85534 (Correct + 1.0 , Wrong – 0.33)

import java.awt.*;
class Ticker extends Component
{
public static void main (String [] args)
{
Ticker t = new Ticker();
/* Missing Statements ? */
}
}
Which two of the following statements, inserted independently, could legally be inserted into missing section of this code?
1. boolean test = (Component instanceof t);
2. boolean test = (t instanceof Ticker);
3. boolean test = t.instanceof(Ticker);
4. boolean test = (t instanceof Component);
1. 1 and 4
2. 2 and 3
3. 1 and 3
4. 2 and 4

Question id : 85535 (Correct + 1.0 , Wrong – 0.33)

Which is valid declaration of a float?
1. float f = 1F;
2. float f = 1.0;
3. float f = “1”;
4. float f = 1.0d;

Question id : 85536 (Correct + 1.0 , Wrong – 0.33)

Which three guarantee that a thread will leave the running state?
1. yield()
2. wait()
3. notify()
4. notifyAll()
5. sleep(1000)
6. aLiveThread.join()
7. Thread.killThread()
1. 1, 2 and 4
2. 2, 5 and 6
3. 3, 4 and 7
4. 4, 5 and 7

Question id : 85537 (Correct + 1.0 , Wrong – 0.33)

Which will contain the body of the thread?
1. run();
2. start();
3. stop();
4. main();

Question id : 85538 (Correct + 1.0 , Wrong – 0.33)

What will be the output of the program?
public class Test
{
public static void main(String[] args)
{
int x = 0;
assert (x > 0) ? “assertion failed” : “assertion passed” ;
System.out.println(“finished”);
}
}
1. finished
2. Compiliation fails
3. An AssertionError is thrown and finished is output
4. An assertionError is thrown with the message “assertion failed”

Question id : 85539 (Correct + 1.0 , Wrong – 0.33)

Which statement is true for the class java.util.ArrayList?
1. The elements in the collection are ordered
2. The collection is guaranteed to be immutable
3. The elements in the collection are guaranteed to be unique
4. The elements in the collection are accessed using a unique key

Question id : 85540 (Correct + 1.0 , Wrong – 0.33)

Which is true about a method-local inner class?
1. It must be marked final
2. It can be marked abstract
3. It can be marked public
4. It can be marked static

Question id : 85541 (Correct + 1.0 , Wrong – 0.33)

Which of the following class level (nonlocal) variable declarations will not compile?
1. protected int a;
2. transient int b = 3;
3. private synchronized int e;
4. volatile int d;

Question id : 85542 (Correct + 1.0 , Wrong – 0.33)

Which two statements, added independently at beginning of the program, allow the code to compile?
/* Missing statements ? */
public class NewTreeSet extends java.util.TreeSet
{
public static void main(String [] args)
{
java.util.TreeSet t = new java.util.TreeSet();
t.clear();
}
public void clear()
{
TreeMap m = new TreeMap();
m.clear();
}
}
1. No statement is required
2. import java.util.*;
3. import.java.util.Tree*;
4. import java.util.TreeSet;
5. import java.util.TreeMap;
1. 1 only
2. 2 and 5
3. 3 and 4
4. 2 and 4

Question id : 85543 (Correct + 1.0 , Wrong – 0.33)

Which statement is true?
1. A try statement must have at least one corresponding catch block
2. Multiple catch statements can catch the same class of exception more than once
3. An Error that might be thrown in a method must be declared as thrown by that method, or be handled within that method.
4. Except in case of VM shutdown, if a try block starts to execute, a corresponding finally block will always start to execute

Question id : 85544 (Correct + 1.0 , Wrong – 0.33)

What will be the output of the program?
public class SqrtExample
{
public static void main(String [] args)
{
double value = -9.0;
System.out.println( Math.sqrt(value));
}
}
1. 3
2. -3
3. NaN
4. Compilation fails

Question id : 85545 (Correct + 1.0 , Wrong – 0.33)

What is the prototype of the default constructor?
public class Test { }
1. Test()
2. Test(void)
3. public Test()
4. public Test(void)

Question id : 85546 (Correct + 1.0 , Wrong – 0.33)

Which two cause a compiler error?
1. float[ ] f = new float(3);
2. float f2[ ] = new float[ ];
3. float[ ]f1 = new float[3];
4. float f3[ ] = new float[3];
5. float f5[ ] = {1.0f, 2.0f, 2.0f};
1. 2,4
2. 3,5
3. 4,5
4. 1,2

Question id : 85547 (Correct + 1.0 , Wrong – 0.33)

Which class does not override the equals() and hashCode() methods, inheriting them directly from class Object?
1. java.lang.String
2. java.lang.Double
3. java.lang.StringBuffer
4. java.lang.Character

Question id : 85548 (Correct + 1.0 , Wrong – 0.33)

You need to store elements in a collection that guarantees that no duplicates are stored and all elements can be accessed in natural order. Which interface provides that capability?
1. java.util.Map
2. java.util.Set
3. java.util.List
4. java.util.Collection

Question id : 85549 (Correct + 1.0 , Wrong – 0.33)

At Point X on line 5, which code is necessary to make the code compile?
public class ExceptionTest
{
class TestException extends Exception {}
public void runTest() throws TestException {}
public void test() /* Point X */
{
runTest();
}
}
1. No code is necessary
2. throws Exception
3. catch ( Exception e )
4. throws RuntimeException

Question id : 85550 (Correct + 1.0 , Wrong – 0.33)

What is the most restrictive access modifier that will allow members of one class to have access to members of another class in the same package?
1. public
2. abstract
3. protected
4. default access

Question id : 85551 (Correct + 1.0 , Wrong – 0.33)

Which two are acceptable types for x?
switch(x)
{
default:
System.out.println(“Hello”);
}
1. byte 2. long 3. char 4. float 5. short
1. 1 and 3
2. 2 and 4
3. 3 and 5
4. 4 and 6

Question id : 85552 (Correct + 1.0 , Wrong – 0.33)

What will be the output of the program?
String x = “xyz”;
x.toUpperCase(); /* Line 2 */
String y = x.replace(‘Y’, ‘y’);
y = y + “abc”;
System.out.println(y);
1.
2.
3.
4.

Question id : 85553 (Correct + 1.0 , Wrong – 0.33)

What two statements are true about the result obtained from calling Math.random()?
1. The result is less than 0.0.
2. The result is greater than or equal to 0.0..
3. The result is less than 1.0.
4. The result is greater than 1.0.
5. The result is greater than or equal to 1.0.
1. 1 and 2
2. 2 and 3
3. 3 and 4
4. 4 and 5

Question id : 85554 (Correct + 1.0 , Wrong – 0.33)

Which two code fragments inserted at end of the program, will allow to compile?
interface DoMath
{
double getArea(int rad);
}
interface MathPlus
{
double getVol(int b, int h);
}
/* Missing Statements ? */
1. class AllMath extends DoMath { double getArea(int r); }
2. interface AllMath implements MathPlus { double getVol(int x, int y); }
3. interface AllMath extends DoMath { float getAvg(int h, int l); }
4. class AllMath implements MathPlus { double getArea(int rad); }
5. abstract class AllMath implements DoMath, MathPlus { public double getArea(int rad) { return rad * rad * 3.14; } }
1. 1 only
2. 2 only
3. 3 and 5
4. 1 and 4

Question id : 85555 (Correct + 1.0 , Wrong – 0.33)

Which three are valid method signatures in an interface?
1. private int getArea();
2. public float getVol(float x);
3. public void main(String [] args);
4. public static void main(String [] args);
5. boolean setFlag(Boolean [] test);
1. 1, 2 and 3
2. 2, 3 and 5
3. 3, 4 and 5
4. 2, 3 and 4

Question id : 85556 (Correct + 1.0 , Wrong – 0.33)

What will be the output of the program?
int i = l, j = -1;
switch (i)
{
case 0, 1: j = 1; /* Line 4 */
case 2: j = 2;
default: j = 0;
}
System.out.println(“j = ” + j);
1. j = -1
2. j = 0
3. j = 1
4. Compilation fails

Question id : 85557 (Correct + 1.0 , Wrong – 0.33)

What will be the output of the program?
class Exc0 extends Exception { }
class Exc1 extends Exc0 { } /* Line 2 */
public class Test
{
public static void main(String args[])
{
try
{
throw new Exc1(); /* Line 9 */
}
catch (Exc0 e0) /* Line 11 */
{
System.out.println(“Ex0 caught”);
}
catch (Exception e)
{
System.out.println(“exception caught”);
}
}
}
1. Ex0 caught
2. exception caught
3. Compilation fails because of an error at line2
4. Compilation fails because of an error at line 9

Question id : 85558 (Correct + 1.0 , Wrong – 0.33)

Which of the following statements about the hashcode() method are incorrect?
1. The value returned by hashcode() is used in some collection classes to help locate objects.
2. The hashcode() method is required to return a positive int value.
3. The hashcode() method in the String class is the one inherited from Object.
4. Two new empty String objects will produce identical hashcodes.
1. 1 and 2
2. 2 and 3
3. 3 and 4
4. 1 and 4

Question id : 85559 (Correct + 1.0 , Wrong – 0.33)

Which class or interface defines the wait(), notify(),and notifyAll() methods?
1. Object
2. Thread
3. Runnable
4. Class

Question id : 85560 (Correct + 1.0 , Wrong – 0.33)

Which JDBC driver Type(s) can you use in a three-tier architecture and if the Web server and the DBMS are running on the same machine?
1. Type 1 only
2. Type 2 only
3. Both Type 3 and Type 4
4. All of Type 1, Type 2, Type 3 and Type 4

Question id : 85561 (Correct + 1.0 , Wrong – 0.33)

What programming language(s) or scripting language(s) does Java Server Pages (JSP) support?
1. VBScript only
2. Jscript only
3. Java only
4. All of the above

Question id : 85562 (Correct + 1.0 , Wrong – 0.33)

Which method must be defined by a class implementing the java.lang.Runnable interface?
1. void run()
2. public void run()
3. public void start()
4. void run(int priotity)

Question id : 85563 (Correct + 1.0 , Wrong – 0.33)

What will be the output of the program?
int x = l, y = 6;
while (y–)
{
x++;
}
System.out.println(“x = ” + x +” y = ” + y);
1. x = 6 y = 0
2. x = 7 y =0
3. x = 6 y = -1
4. Compilation fails

Question id : 85564 (Correct + 1.0 , Wrong – 0.33)

Which interface does java.util.HashTable implement?
1. Java.util.Map
2. Java.util.List
3. Java.util.HashTable
4. Java.util.Collection

Question id : 85565 (Correct + 1.0 , Wrong – 0.33)

Name the implicit variable available to JSP pages that may be used to access all the other implicit objects.
1. Page
2. pageContext
3. context
4. object

Question id : 85566 (Correct + 1.0 , Wrong – 0.33)

Which of these is true about include directive. Select the one correct answer.
1. The included file must have jspf extension.
2.
3. The content of file included using include directive, cannot refer to variables local to the original page.
4. When using the include directive, the JSP container treats the file to be included as if it was part of the original file.

Question id : 85567 (Correct + 1.0 , Wrong – 0.33)
1. The program prints “Welcome Peter”
2.
3.
4.

Question id : 85568 (Correct + 1.0 , Wrong – 0.33)

Which of these are true. Select the two correct answers.
1. The default value of isThreadSafe attribute of page directive is true.
2. If isThreadSafe attribute of page directive is set to true, then JSP container dispatches request for the page sequentially.
3. When isThreadSafe attribute of page directive is set to true, a thread is created for each request for the page.
4. Setting isThreadSage attribute to true for JSP pages, can lead to poor performance.
1. 1 and 2
2. 3 and 4
3. 1 and 3
4. 2 and 4

Question id : 85569 (Correct + 1.0 , Wrong – 0.33)

What is boxing?
1. Encapsulating an object in a value type
2. Encapsulating a copy of an object in a value type
3. Encapsulating a copy of value type in an object
4. Encapsulating a value type in an object

Question id : 85570 (Correct + 1.0 , Wrong – 0.33)

A JSP page needs to generate an XML file. Which attribute of page directive may be used to specify that the JSP page is generating an XML file.
1. contentType
2. generateXML
3. type
4. outputXML

Question id : 85571 (Correct + 1.0 , Wrong – 0.33)

JSP pages have access to implicit objects that are exposed automatically. Name the implicit object that is of type HttpSession.
1.
2.
3.
4.

Question id : 85572 (Correct + 1.0 , Wrong – 0.33)

JSP pages have access to implicit objects that are exposed automatically. One such object that is available is request. The request object is an instance of which class?
1. HttpRequest
2. ServletRequest
3. Request
4. HttpServletRequest

Question id : 85573 (Correct + 1.0 , Wrong – 0.33)
1.
2.
3.
4. There is no XML equivalent of include directive.

Question id : 85574 (Correct + 1.0 , Wrong – 0.33)
1. 1 and 2
2. 2 and 4
3. 3 and 4
4. None of the above

Question id : 85575 (Correct + 1.0 , Wrong – 0.33)

What will be the output of the program?
TreeSet map = new TreeSet();
map.add(“one”);
map.add(“two”);
map.add(“three”);
map.add(“four”);
map.add(“one”);
Iterator it = map.iterator();
while (it.hasNext() )
{
System.out.print( it.next() + ” ” );
}
1. one two three four
2. four three two one
3. four one three two
4. one two three four one

Question id : 85576 (Correct + 1.0 , Wrong – 0.33)

Which of the following statements are correct about an ArrayList collection that implements the IEnumerable interface?
1. The ArrayList class contains an inner class that implements the IEnumerator interface.
2. An ArrayList Collection cannot be accessed simultaneously by different threads.
3. The inner class of ArrayList can access ArrayList class’s members.
4. To access members of ArrayList from the inner class, it is necessary to pass ArrayList class’s reference to it.
5. Enumerator’s of ArrayList Collection can manipulate the array.
1. 1 and 2 only
2. 1 and 3 and 4 only
3. 2 and 5 only
4. All of the above

Question id : 85577 (Correct + 1.0 , Wrong – 0.33)

Which of the following statements are correct about the Stack collection?
1. It can be used for evaluation of expressions.
2. All elements in the Stack collection can be accessed using an enumerator.
3. It is used to maintain a FIFO list.
4. All elements stored in a Stack collection must be of similar type.
5. Top-most element of the Stack collection can be accessed using the Peek() method.
1. 1 and 2 only
2. 3 and 4 only
3. 1,2 and 5 only
4. All of the above

Question id : 85578 (Correct + 1.0 , Wrong – 0.33)

Which of the following is NOT an interface declared in System.Collections namespace?
1. IComparer
2. Enumerable
3. IDictionaryComparer
4. IDictionaryEnumerator

Question id : 85579 (Correct + 1.0 , Wrong – 0.33)

Suppose value of the Capacity property of ArrayList Collection is set to 4. What will be the capacity of the Collection on adding fifth element to it?
1. 4
2. 8
3. 16
4. 32

Question id : 85580 (Correct + 1.0 , Wrong – 0.33)

Which of the following is an ordered collection class?
1. Map
2. Stack
3. Queue
4. BitArray
5. HashTable
1. 1 only
2. 2 and 3 only
3. 4 and 5 only
4. None of the above

Question id : 85581 (Correct + 1.0 , Wrong – 0.33)

Which of the following is the correct way to find out the number of elements currently present in an ArrayList Collection called arr?
1. arr.Count
2. arr.GrowSize
3. arr.MaxIndex
4. arr.Capacity

Question id : 85582 (Correct + 1.0 , Wrong – 0.33)

Which of the following statements are correct about the Collection Classes available in Framework Class Library?
1. Elements of a collection cannot be transmitted over a network
2. Elements stored in a collection can be retrieved but cannot be modified
3. Elements stored in a collection can be modified only if all elements are of similar types
4. They use efficient algorithms to manage the collection, thereby improving the performance of the program.

Click Here for Programmer Paper – I

Click Here for Programmer Paper – II

Search Results for RPSC Programmer 2011 Old Question Paper

programmer paper old, programmer 2011 paper, rpsc programmer 2011 paper, doitc programmer 2011 paper, programmer paper of rpsc, old year paper of programmer 2011, programmer vacancy 2011, rpsc programmer old paper 2011, programmer purane paper, previous year programmer paper