Freshers Registration

COBOL MCQs and Answers With Explanation | COBOL Quiz

COBOL MCQs and Answers With Explanation: Aspirants, are you ready to practice COBOL Quiz? This is a great opportunity for all the candidates to practice COBOL online test for free. Contenders can gain knowledge about the COBOL Multiple Choice Questions by referring to this post. Also, through this COBOL MCQ Online Test, candidates can learn the type of questions asked in the online test and also the way of asking the question. We also provide the explanations for each COBOL MCQ on the page itself. Hence, we suggest all the candidates make use of this article to score more marks in the COBOL Quiz and to crack the online tests and exams.

Details About COBOL Quiz

Quiz Name COBOL Quiz
Category Technical Quiz
Time No Time Limit
Exam Type MCQ (Multiple Choice Questions)

 

Join Telegram Join Telegram
Join Whatsapp Groups Join Whatsapp

Here we entitled all the primary details before going to attempt the COBOL MCQ Online Test. Also, the table shares the details like the Name of the quiz, Number of Questions. Also, the test given below to this page is of the Multiple choice type Questions.

Instructions Of COBOL Quiz

Everyone while taking this COBOL test, follow the instructions must and should so that you can complete your session at the right time. Moreover, the time is too short for every question so contenders should be bold enough to take part in the test. So, try to make this article useful. Scroll down for the analysis. And also, don’t forget to click on submit button after your attempt. Moreover, don’t refresh the page too.

COBOL Online Test

1. Which of the following is a reserved word in COBOL?

a) ADD
b) DO
c) MOVE
d) DISPLAY

Answer: b) DO

Explanation: DO is a reserved word in COBOL, used for defining iterative structures like loops.

2. Which division in COBOL contains the data description section?

a) Environment division
b) Identification division
c) Data division
d) Procedure division

Answer: c) Data division

Explanation: The data description section is defined in the Data division of a COBOL program.

3. Which of the following is not a valid data type in COBOL?

a) INTEGER
b) CHAR
c) DECIMAL
d) FLOAT

Answer: d) FLOAT

Explanation: COBOL does not have a FLOAT data type. The other data types mentioned are valid in COBOL.

4. Which clause is used to terminate a PERFORM loop in COBOL?

a) END-LOOP
b) EXIT
c) BREAK
d) TERMINATE

Answer: b) EXIT

Explanation: The EXIT clause is used to terminate a PERFORM loop in COBOL.

5. Which of the following is not a valid COBOL division?

a) Identification division
b) Procedure division
c) Program division
d) Operation division

Answer: d) Operation division

Explanation: COBOL does not have an Operation division. The other divisions mentioned are valid in COBOL.

6. Which clause is used to check if a condition is true before executing a PERFORM loop in COBOL?

a) TEST
b) IF
c) EVALUATE
d) CHECK

Answer: a) TEST

Explanation: The TEST clause is used to check if a condition is true before executing a PERFORM loop in COBOL.

7. Which of the following is a valid COBOL paragraph name?

a) 1ST_PARAGRAPH
b) MAIN-PARAGRAPH
c) PARAGRAPH-1
d) PARAGRAPH1

Answer: b) MAIN-PARAGRAPH

Explanation: COBOL paragraph names can only contain alphabetic characters, numbers, and hyphens. They must start with an alphabetic character and cannot be longer than 30 characters.

8. Which COBOL clause is used to move data from one variable to another?

a) MOVE
b) COMPUTE
c) ADD
d) SET

Answer: a) MOVE

Explanation: The MOVE clause is used to move data from one variable to another in COBOL.

9. Which COBOL statement is used to conditionally execute a block of code?

a) IF
b) PERFORM
c) EVALUATE
d) DISPLAY

Answer: a) IF

Explanation: The IF statement is used to conditionally execute a block of code in COBOL.

10. Which COBOL keyword is used to declare a variable with a decimal point?

a) FLOAT
b) DECIMAL
c) DOUBLE
d) REAL

Answer: b) DECIMAL

Explanation: The DECIMAL keyword is used to declare a variable with a decimal point in COBOL.

11. Which of the following is a valid COBOL condition name?

a) CONDITION-A
b) 1ST_CONDITION
c) CONDITION_1
d) CONDITION.1

Answer: a) CONDITION-A

Explanation: COBOL condition names can only contain alphabetic characters, numbers, and hyphens. They must start with an alphabetic character and cannot be longer than 30 characters.

12. Which of the following is not a valid COBOL data structure?

a) Table
b) Array
c) Queue
d) Stack

Answer: c) Queue

Explanation: COBOL does not have a built-in data structure for a queue. The other data structures mentioned are valid in COBOL.

13. Which COBOL keyword is used to define a constant value?

a) CONSTANT
b) VALUE
c) DEFINE
d) STATIC

Answer: b) VALUE

Explanation: The VALUE keyword is used to define a constant value in COBOL.

14. Which COBOL clause is used to concatenate two strings?

a) CONCATENATE
b) MERGE
c) JOIN
d) ADD

Answer: a) CONCATENATE

Explanation: The CONCATENATE clause is used to concatenate two strings in COBOL.

15. Which COBOL statement is used to write output to a file?

a) READ
b) WRITE
c) DISPLAY
d) PERFORM

Answer: b) WRITE

Explanation: The WRITE statement is used to write output to a file in COBOL.

Explanation: The AND clause is used to perform logical operations in COBOL.

16. Which COBOL clause is used to perform comparisons?

a) COMPARE
b) TEST
c) EVALUATE
d) CHECK

Answer: a) COMPARE

Explanation: The COMPARE clause is used to perform comparisons in COBOL.

17. Which of the following is not a valid COBOL statement?

a) READ INPUT INTO WS-RECORD
b) PERFORM UNTIL WS-COUNT = 10
c) ADD WS-NUMBER TO WS-TOTAL
d) DISPLAY WS-RECORD

Answer: b) PERFORM UNTIL WS-COUNT = 10

Explanation: The correct syntax for a PERFORM loop in COBOL is “PERFORM UNTIL” or “PERFORM VARYING”. The statement “PERFORM UNTIL WS-COUNT = 10” is missing the name of the loop counter variable.

18. Which COBOL clause is used to specify the end of a program?

a) STOP RUN
b) END PROGRAM
c) TERMINATE
d) HALT

Answer: a) STOP RUN

Explanation: The STOP RUN clause is used to specify the end of a COBOL program.

19. Which COBOL statement is used to read input from a file?

a) READ
b) WRITE
c) DISPLAY
d) PERFORM

Answer: a) READ

Explanation: The READ statement is used to read input from a file in COBOL.

20. Which COBOL clause is used to perform string manipulation?

a) STRING
b) CONCATENATE
c) MERGE
d) JOIN

Answer: a) STRING

Explanation: The STRING clause is used to perform string manipulation in COBOL.

21. Which COBOL clause is used to perform rounding of a number?

a) ROUND
b) TRUNCATE
c) CEILING
d) FLOOR

Answer: a) ROUND

Explanation: The ROUND clause is used to perform rounding of a number in COBOL.

22. Which COBOL statement is used to initialize a variable?

a) MOVE
b) SET
c) COMPUTE
d) ADD

Answer: b) SET

Explanation: The SET statement is used to initialize a variable in COBOL.

23. Which COBOL clause is used to perform type conversion?

a) CONVERT
b) MOVE
c) CAST
d) EVALUATE

Answer: b) MOVE

Explanation: The MOVE clause is used to perform type conversion in COBOL.

24. Which COBOL statement is used to exit a loop?

a) EXIT
b) BREAK
c) RETURN
d) STOP

Answer: a) EXIT

Explanation: The EXIT statement is used to exit a loop in COBOL.

25. Which COBOL clause is used to perform a conditional execution?

a) IF
b) SWITCH
c) CASE
d) CONDITION

Answer: a) IF

Explanation: The IF clause is used to perform a conditional execution in COBOL.

26. Which COBOL statement is used to perform a repetitive execution?

a) IF
b) PERFORM
c) EVALUATE
d) COMPUTE

Answer: b) PERFORM

Explanation: The PERFORM statement is used to perform a repetitive execution in COBOL.

27. Which COBOL clause is used to specify the number of times to execute a loop?

a) PERFORM VARYING
b) PERFORM UNTIL
c) PERFORM TIMES
d) PERFORM COUNT

Answer: a) PERFORM VARYING

Explanation: The PERFORM VARYING clause is used to specify the number of times to execute a loop in COBOL.

28. Which COBOL clause is used to specify the length of a string?

a) LENGTH
b) SIZE
c) DIMENSION
d) INDEX

Answer: b) SIZE

Explanation: The SIZE clause is used to specify the length of a string in COBOL.

29. Which COBOL clause is used to sort data?

a) SORT
b) MERGE
c) REARRANGE
d) ARRANGE

Answer: a) SORT

Explanation: The SORT clause is used to sort data in COBOL.

30. Which COBOL statement is used to add two numbers?

a) ADD
b) SUBTRACT
c) MULTIPLY
d) DIVIDE

Answer: a) ADD

Explanation: The ADD statement is used to add two numbers in COBOL.

31. Which COBOL clause is used to specify the scope of a variable?

a) GLOBAL
b) LOCAL
c) STATIC
d) DYNAMIC

Answer: b) LOCAL

Explanation: The LOCAL clause is used to specify the scope of a variable in COBOL.

32. Which COBOL clause is used to specify the position of a record in a file?

a) KEY
b) INDEX
c) POINTER
d) OFFSET

Answer: a) KEY

Explanation: The KEY clause is used to specify the position of a record in a file in COBOL.

33. Which COBOL statement is used to subtract two numbers?

a) ADD
b) SUBTRACT
c) MULTIPLY
d) DIVIDE

Answer: b) SUBTRACT

Explanation: The SUBTRACT statement is used to subtract two numbers in COBOL.

34. Which COBOL clause is used to specify the size of a record in a file?

a) RECORD
b) LENGTH
c) SIZE
d) DIMENSION

Answer: a) RECORD

Explanation: The RECORD clause is used to specify the size of a record in a file in COBOL.

35. Which COBOL statement is used to multiply two numbers?

a) ADD
b) SUBTRACT
c) MULTIPLY
d) DIVIDE

Answer: c) MULTIPLY

Explanation: The MULTIPLY statement is used to multiply two numbers in COBOL.

36. Which COBOL clause is used to specify the order of data in a file?

a) SEQUENCE
b) ORDER
c) SORTED
d) ARRANGED

Answer: a) SEQUENCE

Explanation: The SEQUENCE clause is used to specify the order of data in a file in COBOL.

37. Which COBOL statement is used to divide two numbers?

a) ADD
b) SUBTRACT
c) MULTIPLY
d) DIVIDE

Answer: d) DIVIDE

Explanation: The DIVIDE statement is used to divide two numbers in COBOL.

38. Which COBOL clause is used to specify the size of an array?

a) LENGTH
b) SIZE
c) DIMENSION
d) OCCURS

Answer: d) OCCURS

Explanation: The OCCURS clause is used to specify the size of an array in COBOL.

39. Which COBOL statement is used to perform a loop?

a) READ
b) WRITE
c) PERFORM
d) ACCEPT

Answer: c) PERFORM

Explanation: The PERFORM statement is used to perform a loop in COBOL.

40. Which COBOL clause is used to specify the level of a variable?

a) LEVEL
b) HIERARCHY
c) PARENT
d) CHILD

Answer: a) LEVEL

Explanation: The LEVEL clause is used to specify the level of a variable in COBOL.

41. Which COBOL clause is used to specify the starting position of a record in a file?

a) START
b) BEGIN
c) FIRST
d) INITIAL

Answer: a) START

Explanation: The START clause is used to specify the starting position of a record in a file in COBOL.

42. Which COBOL clause is used to specify the condition for a loop?

a) UNTIL
b) WHILE
c) END-LOOP
d) BEGIN-LOOP

Answer: a) UNTIL

Explanation: The UNTIL clause is used to specify the condition for a loop in COBOL.

43. Which COBOL statement is used to compare two values?

a) COMPARE
b) EVALUATE
c) IF
d) PERFORM

Answer: a) COMPARE

Explanation: The COMPARE statement is used to compare two values in COBOL.

44. Which COBOL clause is used to specify the level number of a record?

a) RECORD
b) LEVEL
c) DATA
d) FILE

Answer: b) LEVEL

Explanation: The LEVEL clause is used to specify the level number of a record in COBOL.

45. Which COBOL statement is used to test a condition?

a) IF
b) EVALUATE
c) PERFORM
d) COMPUTE

Answer: a) IF

Explanation: The IF statement is used to test a condition in COBOL.

46. Which COBOL clause is used to define a constant?

a) CONSTANT
b) VALUE
c) DEFINE
d) NUMERIC

Answer: b) VALUE

Explanation: The VALUE clause is used to define a constant in COBOL.

47. Which COBOL clause is used to specify the data type of a variable?

a) DATA-TYPE
b) TYPE
c) PIC
d) VAR-TYPE

Answer: c) PIC

Explanation: The PIC (picture) clause is used to specify the data type of a variable in COBOL.

48. Which COBOL statement is used to add two values?

a) ADD
b) SUBTRACT
c) MULTIPLY
d) DIVIDE

Answer: a) ADD

Explanation: The ADD statement is used to add two values in COBOL.

49. Which COBOL clause is used to define the size of a variable?

a) LENGTH
b) SIZE
c) DIMENSION
d) OCCURS

Answer: a) LENGTH

Explanation: The LENGTH clause is used to define the size of a variable in COBOL.

50. Which COBOL statement is used to perform arithmetic operations?

a) PERFORM
b) ADD
c) IF
d) DISPLAY

Answer: b) ADD

Explanation: The ADD statement is used to perform arithmetic operations in COBOL.

51. Which COBOL clause is used to define the scope of a variable?

a) SCOPE
b) AREA
c) SECTION
d) REGION

Answer: c) SECTION

Explanation: The SECTION clause is used to define the scope of a variable in COBOL.

52. Which COBOL statement is used to divide two values?

a) ADD
b) SUBTRACT
c) MULTIPLY
d) DIVIDE

Answer: d) DIVIDE

Explanation: The DIVIDE statement is used to divide two values in COBOL.

53. Which COBOL clause is used to define the condition for a loop?

a) UNTIL
b) WHILE
c) END-LOOP
d) BEGIN-LOOP

Answer: b) WHILE

Explanation: The WHILE clause is used to define the condition for a loop in COBOL.

54. Which COBOL statement is used to perform a case statement?

a) IF
b) EVALUATE
c) PERFORM
d) COMPUTE

Answer: b) EVALUATE

Explanation: The EVALUATE statement is used to perform a case statement in COBOL.

55. Which COBOL clause is used to define the number of times a loop should be executed?

a) TIMES
b) OCCURS
c) REPEAT
d) COUNT

Answer: b) OCCURS

Explanation: The OCCURS clause is used to define the number of times a loop should be executed in COBOL.

56. Which COBOL statement is used to perform subtraction?

a) ADD
b) SUBTRACT
c) MULTIPLY
d) DIVIDE

Answer: b) SUBTRACT

Explanation: The SUBTRACT statement is used to perform subtraction in COBOL.

57. Which COBOL clause is used to define the starting value of a loop?

a) START
b) INITIAL
c) BEGIN
d) OPEN

Answer: b) INITIAL

Explanation: The INITIAL clause is used to define the starting value of a loop in COBOL.

58. Which COBOL statement is used to perform a logical AND operation?

a) OR
b) XOR
c) AND
d) NOT

Answer: c) AND

Explanation: The AND statement is used to perform a logical AND operation in COBOL.

59. Which COBOL clause is used to define the maximum size of a group item?

a) MAXIMUM
b) SIZE
c) OCCURS
d) DEPENDING

Answer: b) SIZE

Explanation: The SIZE clause is used to define the maximum size of a group item in COBOL.

60. Which COBOL statement is used to perform a logical OR operation?

a) OR
b) XOR
c) AND
d) NOT

Answer: a) OR

Explanation: The OR statement is used to perform a logical OR operation in COBOL.

61. Which COBOL clause is used to define the number of occurrences of an item in a group?

a) COUNT
b) OCCURS
c) TIMES
d) REPEATS

Answer: b) OCCURS

Explanation: The OCCURS clause is used to define the number of occurrences of an item in a group in COBOL.

62. Which COBOL statement is used to perform a logical NOT operation?

a) OR
b) XOR
c) AND
d) NOT

Answer: d) NOT

Explanation: The NOT statement is used to perform a logical NOT operation in COBOL.

63. Which COBOL clause is used to define the dependency of an item on another item?

a) DEPENDS-ON
b) DEPENDING
c) DEPENDENT-ON
d) DEPENDENCY

Answer: b) DEPENDING

Explanation: The DEPENDING clause is used to define the dependency of an item on another item in COBOL.

64. Which COBOL statement is used to check if a value is in a range?

a) IF
b) EVALUATE
c) SEARCH
d) INSPECT

Answer: c) SEARCH

Explanation: The SEARCH statement is used to check if a value is in a range in COBOL.

65. Which COBOL clause is used to perform logical operations?

a) AND
b) OR
c) NOT
d) XOR

Answer: a) AND

About COBOL

COBOL stands for Common Business Oriented Language. Usually, most of the candidates are weak in the COBOL concept and don’t know how to answer for the COBOL Quiz. Most of the candidates are facing problems in the COBOL Interview Questions can have improvement after seeing this article. Candidates should know that a quiz is usually a short test and often doesn’t have a huge impact on your grades as the test has.

Before proceeding with the COBOL MCQ part, people should have a basic understanding of the computer programming terminologies. Learn necessary information regarding the COBOL language. Moreover, this language is developed for the business data processing needs which known as COBOL. The language COBOL is used for writing the application programs, and we cannot use it to write for the system software.

Benefits Of Practicing The COBOL Quiz

  • Mostly, by taking this quiz, it will help you in clearing the COBOL Interview Questions.
  • Candidates can know the shortcuts even to solve the tricky questions.
  • Moreover, a basic understanding of any of the programming languages helps you in understanding the concepts of COBOL programming language and move fast on the learning track of it.
  • Also, the Quiz will give the contenders a reflection on their past knowledge.

How To Check COBOL Programming Online Test Results

So contenders don’t step out before submitting the COBOL MCQ Online Test. If the contenders do so, then they can not find their result for the COBOL Quiz. So, we advise to stay back to the page and know your level of performance. And after the click on submit button, everyone gets the results for their answers. So, by the appropriate explanation for the questions you can rectify the mistakes next time. So take the test seriously and then practice.

Furthermore for such COBOL Quiz and exciting questions even keep visiting our Freshers Now website.

Freshersnow.com is one of the best job sites in India. On this website you can find list of jobs such as IT jobs, government jobs, bank jobs, railway jobs, work from home jobs, part time jobs, online jobs, pharmacist jobs, software jobs etc. Along with employment updates, we also provide online classes for various courses through our android app. Freshersnow.com also offers recruitment board to employers to post their job advertisements for free.