PPSC Competitive Exam For The Post of Programmer: Question Paper Along With Answer Key
PPSC Competitive Exam For The Post of Programmer: Question Paper Along With Answer Key
Programmer
Options:
A) a subtype entity
B) an instance entity
C) itself
D) an archetype entity
Options:
A) { }
B) ( )
C) >
D) <>
Options:
A) domain
B) cardinality
C) range
D) ceiling
Options:
A) Archetype entity
B) Subtype entity
C) Instance entity
D) Supertype entity
Options:
A) Select
B) Project
C) Union
D) Rename
Options:
A) Bill Gates
B) Charles Babbage
C) Herman Hollerith
D) E.F. Codd
Options:
A) Tuple
B) Domain
C) Relation
D) Schema
Options:
A) Difference
B) Join
C) Project
D) Select
Options:
A) Assertion
B) Trigger
C) Procedure
D) Generalization
Options:
A) Embedded
B) QBE
C) QUEL
D) Common SQL
Options:
A) Entity integrity
B) Domain Integrity
C) Check Integrity
D) Referential Integrity
Options:
A) 3.5
B) 3
C) 4
D) 3.7
Options:
A) a 1:1 relationship
B) a 1:N relationship
C) a N:1 relationship
D) a N:M relationship
Options:
A) i, ii
B) i, ii, iii
C) i, ii, iii, iv
D) i, ii, iv
Options:
A) Loss less, dependency – preserving decomposition into BCNF is always possible
B) BCNF is stricter than 3 NF
C) Any relation with two attributes is BCNF
D) Lossless, dependency -preserving decomposition into 3 NF is always possible
Options:
A) 2NF
B) 3NF
C) 4NF
D) 5NF
Options:
A) Eliminate all hidden dependencies
B) Have all non key fields depend on the whole primary key
C) Eliminate the possibility of a insertion anomalies
D) Have a composite key
Options:
A) mm/dd/yy
B) yyyy/mm/dd
C) dd/mm/yy
D) yy/dd/mm
Options:
A) Clob
B) Binary
C) Image
D) Blob
Options:
A) Cast
B) Drop type
C) Alter type
D) Convert
Options:
A) Set of Extents
B) Set of Segments
C) Smallest Database storage unit
D) None of the options
Options:
A) Once for the entire database
B) Every time a user is created
C) Every time a tables space is created
D) None of the options
Options:
A) Dynamic Language Library
B) Dynamic Link Library
C) Dynamic Load Library
D) None of the options
Options:
A) Limits the column data that are returned.
B) Limits the row data that are returned.
C) Limits both the column data and row data that are returned.
D) Neither Limits the column data NOR the row data that are returned
Options:
A) braces -- {...}.
B) CAPITAL LETTERS
C) parenthesis -- (...) .
D) brackets -- [...].
Options:
A) EXEC SQL ;
B) EXEC SQL END-EXEC
C) EXEC SQL
D) EXEC SQL END EXEC;
Options:
A) ORDER BY
B) GROUP
C) GROUP BY
D) GROUP IN
Options:
A) SELECT ALL FROM empinfo WHERE ename like '[d-p]%';
B) SELECT * FROM empinfo WHERE ename is '[d-p]%';
C) SELECT * FROM empinfo WHERE ename like '[p-d]%';
D) SELECT * FROM empinfo WHERE ename like '[d-p]%';
Options:
A) report
B) form
C) File
D) Table
Options:
A) ONLY
B) UNIQUE
C) DISTINCT
D) SINGLE
Options:
A) IN
B) OUT
C) INOUT
D) There is no default type
Options:
A) delete database database_name
B) Delete database_name
C) drop database database_name
D) drop database_name
Options:
A) Views
B) Join
C) Pivot
D) Trigger
Options:
A) It can be logged in the error log
B) It can print a message to the application
C) It can assign an error number, state and severity
D) All of the options
Options:
A) Dirty reads
B) Phantom reads
C) Lost updates
D) Unrepeatable reads
Options:
A) TINYINT
B) SMALLINT
C) INT
D) DECIMAL(1)
Options:
A) Not null
B) Positive
C) Unique
D) Check ‘predicate’
Options:
A) Assertion
B) Foreign key
C) Referential constraint
D) Primary key
Options:
A) Primary
B) Foreign
C) Candidate
D) Multiple
Options:
A) Atomicity
B) Isolation
C) Durability
D) Concurrency
Options:
A) Total participation.
B) Multiple participation.
C) Cardinality N.
D) None of the options
Options:
A) DML compiler
B) DML pre-processor
C) DDL interpreter
D) Query interpreter
Options:
A) building indices
B) pipelining
C) join ordering
D) none of the options
Options:
A) one less
B) one more
C) Same
D) Half
Options:
A) System multi-processing
B) Server multi-processing
C) Symmetric multi-processing
D) Securing multi-processing
Options:
A) Semantic query optimization
B) Global query optimization
C) Both Semantic query optimization & Global query optimization
D) None of the options
Options:
A) Interesting ordering
B) Index intersection
C) Index joins
D) Parallel queries
Options:
A) 1
B) 2
C) 3
D) 4
Options:
A) Clustered
B) Column store
C) Non clustered
D) Row store
Options:
A) Accessed by only one user
B) Modified by users with the correct password
C) Is use to hide sensitive information
D) Both Modified by users with the correct password & Is use to hide sensitive information
Options:
A) Updating
B) Upgrading
C) Restricting
D) Renewing
Options:
A) Constraint
B) Trigger
C) Curser
D) Recursive function
Options:
A) Hash indices
B) Primary indices
C) Sparse indices.
D) Ordered indices
Options:
A) M
B) M+1
C) m-1
D) m/2
Options:
A) Non-key and ordering
B) Non-key and non-ordering
C) Key and ordering
D) Key and non-ordering
Options:
A) NULL
B) NOT NULL
C) Both NULL and NOT NULL
D) Neither NULL nor NOT NULL
Options:
A) One-to-one relationship
B) One-to-many relationship
C) many-to-one relationship
D) many-to-many relationship
Options:
A) Conceptual level data hiding
B) Physical level data hiding
C) External level data hiding
D) None of the options
Options:
A) It will result in a deadlock situation
B) It will immediately be granted
C) It will immediately be rejected
D) It will be granted as soon as it is released by A
Options:
A) Lost update
B) Uncommitted dependency
C) Inconsistent data
D) All of the options
Options:
A) Object based logical modal
B) Relational model
C) Physical data model
D) None of the options
Options:
A) First normal form
B) Second normal form
C) Third normal form
D) Fourth normal form
Options:
A) Object oriented model
B) E-R model
C) Network model
D) None of the options
Options:
A) The data type of all fields in all files
B) The name of all fields in all files
C) The width of all fields in all files
D) All of the options
Options:
A) Top-down approach
B) Bottom-up approach
C) Left-right approach
D) None of the options
Options:
A) Where data is located
B) The size of the disk storage device
C) Who owns or is responsible for the data
D) How the data is used
Options:
A) 1
B) 2
C) 3
D) 4
Options:
A) subclass
B) abstarct class
C) metaclass
D) object class
Options:
A) Encapsulation
B) Polymorphism
C) Inheritance
D) Overloading
Options:
A) functions that return values
B) Library of predefined functions
C) Inheritance
D) All of the options
Options:
A) An object is what classes instantiated are from
B) An object is an instance of a class
C) An object is a variable
D) An object is not an instance of a class.
Options:
A) Encapsulation
B) Polymorphism
C) Abstraction
D) Inheritance
Options:
A) The use of consistent coding conventions
B) The organization of components interacting to achieve a coherent, common behavior
C) The use of inheritance to achieve polymorphic behavior
D) The use of data hiding to achieve polymorphic behavior.
Options:
A) -32768 to 32767
B) 0 to 32767
C) -128 to 128
D) 0 to 128
Options:
A) ==
B) >
C) %
D) !=
Options:
A) Make use of the parent class's capabilities
B) Over-ride or add the minimum to accomplish the derived class' purpose
C) Over-ride all the methods of its parent class
D) Make sure the result “contains” its base class.
Options:
A) "is a kind of" relationship
B) "has a" relationship
C) "want to be" relationship
D) “contains” of relationship.
Options:
A) Student (student s) { }
B) Student student ( ) { }
C) Private final student ( ) { }
D) Void student ( ) { }
Options:
A) Class
B) object
C) loop
D) data type
Options:
A) abstract
B) derived
C) subclass
D) both derived & subclass
Options:
A) Implicitly points to an object.
B) Can be explicitly used in a class.
C) Can be used to return an object.
D) All of the options
Options:
A) cannot be assigned a value
B) can only be used in static functions
C) cannot be defined in a Union
D) can be accessed outside the class
Options:
A) Hello, \nworld!
B) Hello,
World!
C) "Hello, \nworld!"
D) None of the options
Options:
A) Jhelp
B) javah
C) javap
D) jdb
Options:
A) Abstract
B) Extends
C) Package
D) All of the options
Options:
A) int num=new int[5]
B) int num=new num[5]
C) int[] num=new int[5]
D) None of the options
Options:
A) friendly
B) private
C) protected
D) public
Options:
A) Abstract
B) public
C) static
D) final
Options:
A) A subclass is a sub set of a superclass.
B) Class ClassTwo extends ClassOne means ClassOne is subclass.
C) Class ClassTwo extends ClassOne means ClassTwo is super class.
D) The class Class is the super class of all other classes in Java.
Options:
A) The equals method does NOT properly override the Object.equals method
B) Compilation fails because the private attribute p.name cannot be accessed in line 5
C) To work correctly with hash-based data structures, this class must also implement the
hashCode method
D) When adding Person objects to a java.util.Set collection, the equals method in line 4 will
prevent duplicates
Options:
A) subclass_reference = subclass_object
B) subclass_reference = superclass_object
C) superclass_reference = subclass_object
D) superclass_reference = superclass_object
Options:
A) Run-time
B) Exception
C) Logical
D) Compile-time
Options:
A) Objectcopy()
B) copy()
C) Object clone()
D) clone()
Options:
A) 3 3
B) 2 3
C) Runtime Error
D) Compilation Error
Options:
A) 2 3
B) 3 3
C) Runtime Error
D) Compilation Error
Options:
A) Cohesion is the OO principle most closely associated with hiding implementation details
B) Cohesion is the OO principle most closely associated with making sure that classes know about
other classes only through their APIs
C) Cohesion is the OO principle most closely associated with making sure that a class is designed
with a single, well-focused purpose
D) Cohesion is the OO principle most closely associated with allowing a single object to be seen as
having many types
Options:
A) 38
B) 39
C) 40
D) 41