TCS Database Questions
TCS Database Questions
10. What is the difference between "NULL in C" and "NULL in Oracle?"
11. What is Pro*C? What is OCI?
12. Give some examples of Analytical functions.
13. What is the difference between "translate" and "replace"?
14. What is DYNAMIC SQL method 4?
15. How to remove duplicate records from a table?
16. What is the use of Analyzing the tables?
17. How to run SQL script from a Unix Shell?
18. What is a "transaction"? Why are they necessary?
19. Explain Normalization and Denormalization with examples.
20. When do you get constraint violation? What are the types of constraints?
21. How to convert RAW datatype into TEXT?
22. What is the difference between Primary Key and Aggregate Key
23. How functional dependency is related to database table design?
24. What is a "trigger"?
25. Why can a "group by" or "order by" clause be expensive to process?
26. What are "HINTS"? What is "index covering" of a query?
27. What is a VIEW? How to get script for a view?
28. What are the Large object types supported by Oracle?
29. What is SQL*Loader?
30. Difference between "VARCHAR" and "VARCHAR2" datatypes.
31. What is the difference among "dropping a table", "truncating a table" and "deleting all
records" from a table.
32. Difference between "ORACLE" and "MICROSOFT ACCESS" databases
.
33. How to create a database link ?
-
1.
a. Synonym,
2.
b. Table space,
Ans : D
a. Db_Block_Buffers,
b. Processes,
c. Shared_Pool_Size,
Ans : B
4.
b. LOG_BUFFER, c. DB__BLOCK_SIZE..
Ans : A
5.
a Database files, b Control files, c Redolog files, d All the above. Ans : C
6.
SET TRANSACTION USE ROLLBACK SEGMENT is used to create user objects in a particular
Tablespace
a True,
7.
b False
Ans : False
a Redolog file,
b Data file,
c Control file,
Ans : C
8.
These following parameters are optional in init.ora parameter file DB_BLOCK_SIZE, PROCESSES
Ans : False
It is very difficult to grant and manage common privileges needed by different groups of database
A messagebox can be used only by the system and cannot be used in user application while
an alert can be used in user application also.
b.
A alert can be used only by the system and cannot be use din user application while an
messagebox can be used in user application also.
c.
An alert requires an response from the userwhile a messagebox just flashes a message
and only requires an acknowledment from the user
d.
An message box requires an response from the userwhile a alert just flashes a message an
only
requires an acknowledment from the user Ans : C
13.
Which of the following is not an reason for the fact that most of the processing is done at the server
?
a To reduce network traffic. b For application sharing, c To implement business rules centrally,
d None of the above
Ans : D
14.
a Yes,
15.
a. Intuitive and easy to use., b. GUI's can display multiple applications in multiple windows
c. GUI's provide more user interface objects for a developer d. None of the above
Ans :D
16.
17.
In a CLIENT/SERVER environment , which of the following would not be done at the client ?
a User interface part, b Data validation at entry line, c Responding to user events,
d None of the above Ans : D
18.
Why is it better to use an INTEGRITY CONSTRAINT to validate data in a table than to use a STORED
PROCEDURE ?
a Because an integrity constraint is automatically checked while data is inserted into or updated in a
table while a stored procedure has to be specifically invoked
b Because the stored procedure occupies more space in the database than a integrity constraint definition
c Because a stored procedure creates more network traffic than a integrity constraint definition
Ans : A
19.
a. A client/server model allows centralised control of data and centralised implementation of business rules.
b A client/server model increases developer;s productivity
c A client/server model is suitable for all applications
POST-BLOCK trigger is a
a Navigational trigger
b Key trigger
c Transactional trigger
d None of the above
Ans : A
22.
The system variable that records the select statement that SQL * FORMS most recently used
to populate a block is
a SYSTEM.LAST_RECORD
b SYSTEM.CURSOR_RECORD
c SYSTEM.CURSOR_FIELD
d SYSTEM.LAST_QUERY
Ans: D
23.
a ENFORCE KEY field characterstic indicates the source of the value that SQL*FORMS uses to populate the
field
b A field with the ENFORCE KEY characterstic should have the INPUT ALLOWED charaterstic turned off
a Only 1 is TRUE
b Only 2 is TRUE
c Both 1 and 2 are TRUE
d Both 1 and 2 are FALSE
Ans : A
24.
d Only blocks.
Ans : C
26.
The packaged procedure that makes data in form permanent in the Database is
a Post
b Post form
c Commit form
d None of the above
Ans : C
28.
a CALL_INPUT, b CLEAR_BLOCK,
c EXECUTE_QUERY,
d USER_EXIT
Ans : D
30.
a USER_EXIT,
Ans : D
31.
What is SQL*FORMS
a SQL*FORMS is a 4GL tool for developing & executing Oracle based interactive applications.
b SQL*FORMS is a 3GL tool for connecting to the Database.
c SQL*FORMS is a reporting tool
d None of the above.
Ans : A
32.
Name the two files that are created when you generate a form using Forms 3.0
a FMB & FMX, b FMR & FDX, c INP & FRM, d None of the above
Ans : C
33.
What is a trigger
c Both A & B
d None of the above
Ans : C
34.
1 ERASE removes an indicated Global variable & releases the memory associated with it
2 ERASE is used to remove a field from a page
1 Only 1 is TRUE
2 Only 2 is TRUE
3 Both 1 & 2 are TRUE
4 Both 1 & 2 are FALSE
Ans : 1
35.
All datafiles related to a Tablespace are removed when the Tablespace is dropped
a TRUE
b FALSE
Ans : B
36.
a TRUE
b FALSE
Ans : B
38.
a TRUE
b FALSE
Ans : B
40.
What is a DATABLOCK
a Set of Extents
b Set of Segments
c Smallest Database storage unit
Can an Integrity Constraint be enforced on a table if some existing table data does not satisfy the
constraint
a Yes
b No
Ans : B
42.
a TRUE
b FALSE
Ans : B
43.
A Transaction ends
a In compiled form
b As source code
c Both A & B
d Not stored
Ans : C
45.
A database trigger doesnot apply to data loaded before the definition of the trigger
a TRUE
b FALSE
Ans : A
46.
Which of the following does not affect the size of the SGA
a Database buffer
b Redolog buffer
c Stored procedure
d Shared pool
Ans : C
48.
a Bool boolean;
b NUM1, NUM2 number;
c deptname dept.dname%type;
d date1 date := sysdate
Ans : B
51.
Declare
53.
a Must be declared
b Must be raised explicitly
c
Ans : C
54.
A Stored Procedure is a
a Any procedure can raise an error and return an user message and error number
b Error number ranging from 20000 to 20999 are reserved for user defined messages
c Oracle checks Uniqueness of User defined errors
d Raise_Application_error is used for raising an user defined error.
Ans : C
56.
a Yes
b No
Ans : A
57.
a Yes
b No
Ans : B
58.
a Yes
b No
Ans : A
59.
a Scalar datatype
b Composite datatype
c All of the above
d None of the above
Ans C
60.
a VARCHAR2
b RECORD
c BOOLEAN
d RAW
Ans : B
61.
a OPEN
b CLOSE
c INSERT
d FETCH
Ans C
63.
a Error
b VIK RAM
c VIKRAM
d NULL
Ans : C
66.
Declare
a 50
b NULL
c5
d None of the above
Ans : C
67.
Does the Database trigger will fire when the table is TRUNCATED ?
a Yes
b No
Ans : B
68.
a ALWAY
b S ALWA
c ALWAYS
Ans : C
69.
a 333234
b 333333
c 234333
d None of the above
Ans : A
71.
b No
Ans B
73.
Ans : B
74.
a CREATE
b ALTER
c ALTER SESSION
Ans : C
75.
a INSERT
b UPDATE
c SELECT
d All of the above
Ans : D
76.
If an UNIQUE KEY constraint on DATE column is created, will it accept the rows that are inserted
with
SYSDATE ?
a Will
b Won't
Ans : B
78.
a Define, Create
b Drop, Comment
a Zoom_out
b Zoom_in'
c Image_zoom
d Zoom_image
Ans : C
80.
a Yes
b No
Ans : A
81.
a Boolean
b Number
c Character
d None of the above
Ans : B
82.
a $$dbtime$$
b $$time$$
c $$datetime$$
d None of the above
Ans : A
83.
SYSTEM.EFFECTIVE.DATE varaible is
a Read only
b Read & Write
c Write only
d None of the above
Ans : C
84.
a Run_Report built_in
b Call_Report built_in
c Run_Product built_in
d Call_Product built_in
Ans : C
85.
GET_BLOCK property is a
a Restricted procedure
b Unrestricted procedure
c Library function
d None of the above
Ans : D
88.
a TRUE
b FALSE
Ans : B
89.
a Single column
b Multi column
c Single or Multi column
d None of the above
Ans : C
91.
b No
Ans : B
93.
a Yes
b No
Ans : B
94.
What type of file is used for porting Forms 4.5 applications to various platforms ?
a . FMB file
b . FMX file
c . FMT file
d . EXE file
Ans : C
95.
a READ_IMAGE_FILE
b GET_IMAGE_FILE
c READ_FILE
d GET_FILE
Ans A
96.
When a form is invoked with CALL_FORM does Oracle forms issues SAVEPOINT ?
a Yes
b No
Ans : A
97.
a Yes
b No
Ans : A
98.
a LOV
b Parameters
c Local variables
d None of the above
Ans : B
99.
a Yes
b No
Ans : B
100. Can MULTIPLE DOCUMENT INTERFACE (MDI) be used in Forms 4.5 ?
a Yes
b No
Ans : A
100.
a Yes
b No
Ans : A
101.
a Generating form
b Executing form
c Save form
d Run form
Ans : C
102.
a Library
b Stored procedure & Function
c Collection of Subprograms
d None of the above
Ans : D
103.
a Mutually exclusive
b Select more than one column
c Above all TRUE
d Above all FALSE
Ans : A
104.
a Poplist
b Tlist
c List of values
d Combo box
Ans : C
105.
What is an ALERT ?
a Modeless window
b Modal window
c Both are TRUE
d None of the above
Ans : B
106.
a Yes
b No
Ans : A
107.
a Yes
b No
Ans : B
108.
a 10
b 20
c 50
d None of the above
Ans D
109.
a Oracle FORMS
b Oracle REPORTS
c Oracle LIBRARY
d None of the above
Ans : D
110.
a Asterisk(*) in column ?
b ANSI SQL style statements(...)
c C-Style comments (/*......*/)
d All the above
Ans : D
111.
What is TERM ?
a TERM is the terminal definition file that describes the terminal from which you are using R20RUN
( Reports run time )
b TERM is the terminal definition file that describes the terminal from which you are using R20DES
( Reports designer )
c There is no Parameter called TERM in Reports 2.0
d None of the above
Ans : A
112.
If the maximum records retrieved property of a query is set to 10, then a summary value will
be calculated
a Only for 10 records
b For all the records retrieved
c For all therecords in the referenced table
d None of the above
Ans : A
113.
Sum
Standard deviation
Variance
% of Total function
Ans : D
114.
For a field in a repeating frame, can the source come from a column which does not exist in
What are the different file extensions that are created by Oracle Reports ?
a Yes
b No
Ans : A
117.
What are the SQL clauses supported in the link property sheet ?
If two groups are not linked in the data model editor, what is the hierarchy between them?
a Yes
b No
Ans : B
122.
a TRUE
b FALSE
Ans : B
124.
a TRUE
b FALSE
Ans : B
126.
a TRUE
b FALSE
Ans : A
127.
The following parameters are optional in init.ora parameter file DB_BLOCK_SIZE, PROCESS
a TRUE
b FALSE
Ans : B
128.
a TRUE
b FALSE
Ans : B
129.
a TRUE
b FALSE
Ans : B
130.
a DBA_SEGMENTS
b DBA_ROLES
c DBA_FREE_SPACES
d DBA_ROLLBACK_SEG
Ans : D
132.
a TRUE
b FALSE
Ans : A
133.
a ODBC.INI
b ODBC.DLL
c ODBCDRV.INI
d None of the above
Ans : A
1.Written test
50 questions and 50 minutes.this test is pretty simple and time management is very important.It
had questions regarding probability,speed and time etc...it also included data interpretation
questions and also vocabulary.
2.Technical written test.
20 questions and 25 minutes..very basic questions of c,c++ and java.Some 2 to 3 electronic
questions were also asked.
3.group discussion
Thiis is the main elimination round.No one will comprimise here.u need to have good
communication and fluency.u need to speak for atleast 2 or 3 times,if u dont put any effort then u
will be out of it....jst have confidence in urself...speak abt 3 or 4 sentences ...and that will do...my
group had abt 12 ppl...and only 4 got thru...i cud make it....
4.Technical interview.
well...if u brush up ur basics that will do a world of good for u.
some of the questions.
what is an absract class??
what is function overloading??
what is a trigger?
what is the difference between data ware house and data mining?
tell me about ur project..
what is the front end and back end of ur project??
5.HR interview.
if u get thru technical interview then this is just a formality.They will ask about ur family back
ground and all the other details..
Well...i can tell u one thing thru my experince..there is no substitute for hardwork..just keep
working hard and u will come out in flying colors some day...and forgot to tell all of u....i got
thru all the rounds and got selected for infotech enterprises...ALL THE BEST FOLKS!!!