Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

Learning COBOL Programming with VSCode IBM Quiz Answers

Get Learning COBOL Programming with VSCode IBM Quiz Answers

Welcome to your introduction to COBOL!

This introductory COBOL course helps a novice learn the Structure of COBOL programs, Data types & Variable Handling, Intrinsic Functions, Branching logic and more. The goal of the course is to enable the participant to be able to write basic COBOL programs. This is a fantastic compliment to the IBM z/OS Practitioner path for the IBM Mainframe.

On successful completion of this course, learners are eligible to earn their ‘Learning COBOL Programming with VSCode’  badge.

Catch the COBOL Fridays webinar series replays – these webinars were curated for first-time programmers, life-long learners, and anyone interested in learning COBOL.

Get ready to dive into some actual COBOL!

Course duration- Approx 16 hours

Enroll on IBM

Quiz 1: Short Quiz: COBOL Introduction

Q1. The B in COBOL stands for:

  • Business
  • Binary
  • Brokerage
  • Banking

Q2. What implementation of COBOL typically runs on IBM Z Mainframe computers?

  • COBOL 3000
  • MegaCOBOL
  • COBOL for Workgroups
  • Enterprise COBOL

Quiz 2: Short Quiz: VSCode and Extensions

Q1. Vertical lines in your COBOL editor are called:

  • Lanes
  • Gutters
  • Margins
  • Rulers

Q2. The bar across the top of your editor that shows information about where in the code you are currently positioned is called the:

  • Pipeline Option
  • Branch Sifter
  • Breadcrumb View
  • Trapdoor Instance

Q3. VS Code gives us some nice features that will help in writing code. Which of the following is NOT one of those features?

  • Context Inversion
  • Code Completion
  • Hover Text
  • References and Diagnostics

Quiz 3: Short Quiz: Basic COBOL Syntax

Q1. Columns 8-11 make up what section of a COBOL line of code?

  • Descriptor Area
  • B Area
  • A Area
  • Creation Area

Q2. What division of a COBOL program would you put your name in, if you wanted other programmers to see who created it?

  • Procedure Division
  • Credit Division
  • Environment Division
  • Identification Division

Quiz 4: Short Quiz: COBOL Divisions

Q1. Which COBOL construct encapsulates the highest number of other constructs?

  • Albums
  • Divisions
  • Paragraphs
  • Statements

Q2. A period at the end of COBOL statements is a ___________ scope terminator

  • Explicit
  • Implied
  • Dependent
  • Implicit

Quiz 5: Short Quiz: COBOL Variables

Q1. Which of the following is NOT a valid Data Name?


Q2. What can we tell about a variable defined as a PIC 9(5)?

  • It  is numeric and a length of 5
  • It is numeric with a range of 5-9 digits
  • There are 4 other PIC 9’s in this data definition clause
  • It is numeric and a length of 9

Quiz 6: Short Quiz: Data Division

Q1. When you’re running COBOL on a mainframe, you run it by submitting the ________

  • JCL
  • EBCIDEC Character Set
  • Punch Card Emulation Deck
  • Procedure Division

Q2. MOVE and COMPUTE go into what division?

  • Procedure
  • Data
  • Intrinsic
  • Environment

Quiz 7: Short Quiz: File Handling

Q1. What clause is used to describe a data set source file?

  • Assign
  • Load
  • Pointer
  • Link

Q2. The SELECT and ASSIGN clauses go into which division?

  • Environment
  • Assignment
  • Data
  • Processing

Q3. In the JCL, what does the DD statement help define?

  • The actual data set on the disk
  • The FILE_RECORD limit has been reached
  • The Data Driver used to access our modules
  • The record we just loaded is equal to the previous record

Quiz 8: Short Quiz: Procedure Division

Q1. What construct do we use to perform an action one or multiple times in COBOL?

  • DO

Q2. What line of code is used to cease use of the ACCT-REC file after we’re done with it?


Q3. In the example, why would LASTREC = Y?

  • We processed the last record
  • The record we just loaded is equal to the previous record
  • The next read will hit the last record
  • The FILE_RECORD limit has been reached

Quiz 9: Short Quiz: Program Structure

Q1. A loop in program structure is sometimes referred to as a:

  • Campaign
  • Out-of-Line Perform
  • Policy Execution
  • Inline Perform

Q2. What style of programming creates objects, methods, and instances?

  • Top-to-Bottom Programming
  • Abstract Cellular Programming
  • Fully Recursive Programming
  • Object Oriented Programming

Quiz 10: Short Quiz: Paragraphs

Q1. In COBOL, which section of columns musta paragraph start in?

  • 8-11
  • 1-22
  • 0-5
  • 22-30

Q2. Where should a paragraph be written in order for it to be called?

  • In the Paragraphs Division
  • Anywhere in the Procedure Division
  • It must be written in full above where it gets called
  • Immediately after the line of code calling it

Q3. If we wanted to PERFORM a series of paragraphs, in order, and then return after performing a specific paragraph, we could use what?


Quiz 11: Short Quiz: Program Linkage

Q1. Variables that will get used by the program being called go into what section?


Q2. To specify those variables when we invoke the called program’s logic, we use what phrase?

  • WITH
  • INTO

Quiz 12: Short Quiz: Program Output and Reports

Q1. The File Descriptor (FD) goes within what paragraph of the Input-Output Section?


Q2. We can define how the fields of data are structured by defining the ________

  • Field Allocation Table
  • Data Name Layout
  • Sub-Field Structure
  • Data Capsule

Quiz 13: Short Quiz: Conditional Expressions

Q1. Which of the following is NOT a type of COBOL conditional expression?

  • General relation condition
  • Class conditions
  • Sign conditions
  • Sorting conditions

Q2. A Conditional Name needs to be declared with a _____-level number

  • 100
  • 88
  • 0
  • 50

Q3. What type of statement is best suited for handling more than two paths of code logic, like a menu with sub-menu items?


Quiz 14: Short Quiz: Arithmetic Expressions

Q1. What characters do we use to indicate an exponential operation?

  • **
  • /*
  • ^^
  • @@

Q2. What can an arithmetic expression NOT start with?

  • Operand
  • Unary Operator
  • Left Parenthesis
  • /

Q3. If we say COMPUTE X Y Z = 2 + 2 + 6, what will happen?

  • X will be 2, Y will be 2, Z will be 6
  • The operation will fail because X Y and Z are letters, and the arithmetic expression is numerical
  • X Y and Z will be set to 10
  • X Y and Z will merge into a new variable

Quiz 15: Short Quiz: Data Types

Q1. COMP-1and COMP-2 are both what type of numerical representation?

  • Hexadecimal
  • Branching Digit
  • Floating Point
  • Virtual Decimal

Q2. COMP-3 uses what type of numerical representation?

  • BDT: Bit Descriptor Technology
  • BCD: Branch Coded Digit
  • BCD: Binary Coded Decimal
  • BDD: Binary Digit Descriptor

Q3. When it comes to character representation, you can use ASCII or _______


Quiz 16: Short Quiz: Intrinsic Functions

Q1. The most recent version of COBOL (as of 2020) has how many Intrinsic Functions?

  • 250
  • 70
  • 500
  • 50

Q2. You can turn a YYYYMMDD-formatted date into a count of days since January 1st1601 using the _____________ Intrinsic Function.


I hope this Learning COBOL Programming with VSCode IBM Quiz Answers would be useful for you to learn something new from this problem. If it helped you then don’t forget to bookmark our site for more Coding Solutions.

This Problem is intended for audiences of all experiences who are interested in learning about Data Science in a business context; there are no prerequisites.

Keep Learning!

More Coding Solutions >>

LeetCode Solutions

Hacker Rank Solutions

CodeChef Solutions

Leave a Reply

Your email address will not be published. Required fields are marked *