Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Which of the following is true in COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
abnikant

New User


Joined: 12 Jan 2007
Posts: 9
Location: Noida

PostPosted: Thu Oct 08, 2009 1:06 pm    Post subject: Which of the following is true in COBOL
Reply with quote

Question 4. Which of the following is true in COBOL: -

A. While performing arithmetic, it is better to use unsigned numeric fields than signed fields.
B. Using indexes to address table is less efficient than using subscripts.
C. S9(6 ) COMP occupies less number of bytes than S9(7)V9(2) COMP-3.
D. For the Sorted table SEARCH ALL is much efficient than SEARCH in performance
Answer 4. * A, B and D
C, D
A, C
A, D
None of the above

Question 5. Which of the following is true about COBOL compilation and bind process:
A. INCLUDE statement is expanded in Compile stage.
B. If the SQL syntax is incorrect, the program will fail in Pre-Compile stage.
C. If a table field used in a program does not exist in DCLGEN, program will Pre-Compile but will fail in Compile.
D. If a table field used in a program does exist in DCLGEN but not in table, the program will Compile but will fail in bind.

Answer 5. * A, C
A, B and D
B, C
B, D
None of the Above

Question 6. A held cursor can be closed when:

A. You issue a CLOSE cursor, ROLLBACK, or CONNECT statement
B.You issue a CAF CLOSE function call or an RRSAF TERMINATE THREAD function call
C. The application program terminates.

Answer 6. * A, B
A, B and C
A, C
B, C
None of the above

Question 7. Which statement(s) are true with regards to a primary key in a DB2 table?

A. Primary key is mandatory for a Db2 table
B. They key can include upto 64 columns
C. The length attributes of a primary key can be upto 2000
D. If a primary key is defined, an index must be created on the same set of columns, in the same order as those columns.

ANS
A, B, C and D
B, C and D
A, C and D
A, B and C
None of the above
Back to top
View user's profile Send private message

Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Oct 08, 2009 2:35 pm    Post subject:
Reply with quote

1. Is this a COBOL thread, as subject line says so; then why to post in DB2 part of the forum?
2. Are these interview questions?
3. You started from "Question 4", where are first 3?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts COBOL Programming Sandpit? jodrisco COBOL Programming 6 Wed Apr 12, 2017 3:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us