Search test library by skills or roles
⌘ K

Adaface Sample COBOL Questions

Here are some sample COBOL questions from our premium questions library (10273 non-googleable questions).

Skills

🧐 Question

Medium

Decision Control
Arithmetic Operations
Decision Structures
Data Types
Solve
Consider the following COBOL program:
 image
What will the program display when it is executed?

Medium

Multi Dimensional Arrays
Arrays
Data Processing
Subroutines
Solve
Consider the following pseudocode snippet in COBOL:
 image
After executing this program, what will be the final state of StrArr?

Medium

VSAM File Processing in COBOL
VSAM
File Handling
Solve
Consider the following COBOL code snippet. The program aims to read from a VSAM Key-Sequenced Data Set (KSDS) named 'CUSTOMER-FILE' which contains customer records. The program reads the file in ascending order by 'CUSTOMER-ID', performs some processing (not shown here), and then displays the 'CUSTOMER-NAME' of the last record read.
 image
Assuming there are no syntax errors and the 'CUSTOMER-FILE' is present and accessible, what will the program display as the last customer's name after executing this COBOL program?
A: The program will display the name of the customer with the highest 'CUSTOMER-ID'.
            B: The program will display the name of the customer with the lowest 'CUSTOMER-ID'.
            C: The program will not display any customer name.
            D: The program will display the name of the first customer in the 'CUSTOMER-FILE'.
            E: The program will display an uninitialized or random 'LAST-NAME'.
🧐 Question🔧 Skill

Medium

Decision Control
Arithmetic Operations
Decision Structures
Data Types

2 mins

COBOL
Solve

Medium

Multi Dimensional Arrays
Arrays
Data Processing
Subroutines

2 mins

COBOL
Solve

Medium

VSAM File Processing in COBOL
VSAM
File Handling

2 mins

COBOL
Solve
🧐 Question🔧 Skill💪 Difficulty⌛ Time
Decision Control
Arithmetic Operations
Decision Structures
Data Types
COBOL
Medium2 mins
Solve
Multi Dimensional Arrays
Arrays
Data Processing
Subroutines
COBOL
Medium2 mins
Solve
VSAM File Processing in COBOL
VSAM
File Handling
COBOL
Medium2 mins
Solve

Trusted by recruitment teams in enterprises globally

Amazon Morgan Stanley Vodafone United Nations HCL PayPal Bosch WeWork Optimum Solutions Deloitte Microsoft NCS Doubtnut Sokrati J&T Express Capegemini

We evaluated several of their competitors and found Adaface to be the most compelling. Great library of questions that are designed to test for fit rather than memorization of algorithms.


Swayam Narain, CTO, Affable

hashtag image heart icon Swayam
customers across world
Join 1500+ companies in 80+ countries.
Try the most candidate friendly skills assessment tool today.
g2 badges
Ready to streamline your recruitment efforts with Adaface?
Ready to streamline your recruitment efforts with Adaface?
logo
40 min tests.
No trick questions.
Accurate shortlisting.
ada
Ada
● Online
Previous
Score: NA
Next
✖️