Application Programming Environment Overview Flashcards

1
Q

Formally, IBM Z Assembler, is referred to as what?

A

High-Level Assembler (HLASM)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

HLASM

A

High-Level Assembler (HLASM)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an assembler language?

A

Low-level languages that have a close relationship to the CPU or processor where they execute.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Assembler languages contain two types of instructions. What are they?

A

Machine instructions
Assembly Instructions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a machine instruction?

A

Instructions that you intend for the hardware

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is an assembler instruction?

A

Used to tell the assembler what to do or how to generate the machine instructions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the assembler?

A

The tool that converts source code written in assembly language to machine instructions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When would assembly languages be used in API?

A

In underdeveloped APIs and interfaces where no suitable high-level language interface has been provded

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the most widely used programming language in the IBM enterprise environment?

A

COBOLCO

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Name that acronym

COBOL

A

Common business Oriented Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Why is COBOL common?

A

It does not belong to any single computer manufacturer and is available on most computer architecture

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Why is COBOL considered to be “business-oriented”?

A

it is designed to handle files and records related to business transactions and is not designed for complex mathematical computations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Why can COBOL be self-documented?

A

COBOL’s use of English-like verbs and encouragement of descriptive variable names

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

True or False

COBOL is well suited for complex math and calculations?

A

False, it’s primary function is data records and handling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is PL/I

A

Developed by IBM as an attempt to provide facilities found in COBOL, Fortran and ALGOL, and system control found in Assembly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

True or False

PL/I is only supported on z/OS?

A

False

z/OS, AIX, and VSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

True of False

COBOL is best if your code needs both file handling, and mathematical operations,

A

False - PL/I is equally adept at both

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

The assembler tool performs which action on assembly language source code?

A

It converts the source code to machine instructions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

True or False

COBOL is ideal when there is a need for complex mathematical formulae and calculations.

A

False

COBOL is not suitable for complex mathematical formulae and calculations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

True or False

COBOL is a highly structured language with six defined program divisions.

A

False

COBOL consists of four program divisions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

True or False

COBOL is most suited to applications dealing with data records and data handling.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

True or False

COBOL contains English-like language.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

True or False

The C compiler can be executed as a command from a z/OS UNIX shell?

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What is the IBM C Compiler called?

A

XL C/C++

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

What differentiated IBM XL C from other OSs?

A

It supports all the normal C features but also includes z/OS-specific functions and features

26
Q

What are the two scripting languages available in IBM?

A

CLIST and REXX

27
Q

Which is considered the more advanced: CLIST or REXX?

A

REXX is seen as the successor of CLIST

28
Q

CLIST and REXX are run as interpreted or compiled?

A

Interpreted, however REXX does have a compiler

29
Q

True or False

REXX can be used for CICS and in the bath environment?

A

True

30
Q

What language was adopted by IBM that opened the mainframe up to mainstream Internet processing?

A

Java

31
Q

What is a benefit of Java as a programming language

A

It is written the same way across all systems that run it.

32
Q

As part of IBMs adoption of Java, what aspects of z/OS can be accessed with Java?

A

z/OS data and services
CICS services
Db2 database content
IMS database content

33
Q

What version of z/OS supports Python?

A

> =z/OS 2.3

34
Q

What is a core benefit of using Python?

A

Like Java, the code is written the same no matter where it’s hosted.
Second, it’s a popular language, so there’s plenty of talent available.

35
Q

Through what software can Python developers develop for IBM?

A

IBM Open Enterprise SDK for Python

36
Q

True or False

C and C++ are interpreted languages.

A

False - They are compiled

37
Q

Is COBOL interpreted or compiled?

A

Compiled

38
Q

True or False

C and C++ programs can be compiled by using SDSF.

A

False

C and C++ can be compiled by using the ISPF and JCL interfaces.

39
Q

True or False

The process of compiling a C-source program and then link editing the object deck into a load module is basically the same as it is for COBOL.

A

True

The C/C++ process to create a load module is similar to COBOL.

40
Q

True or False

C and C++ programs can be compiled from within the UNIX Systems Services shell.

A

True

C and C++ programs can be compiled from within the z/OS UNIX System Services shell by using the UNIX shell commands:

c89
cc
c++

41
Q

Which programming language does the code displayed here belong to?

ALLOC FILE(PERSTAX) DA(BVE55.PERSON.TAXDATA) SHR
OPENFILE PERSTAX UPDATE
GETFILE PERSTAX
DO WHILE &SUBSTR(6:8,&PERSTAX)=NO
GETFILE PERSTAX
A

CLIST

Both CLIST and REXX languages consist of text statements that have very similar syntax and structure, but all REXX programs begin with a comment with the word REXX in it.

42
Q

Which two languages are fourth-generation languages?

SAS
FOCUS
Assembly
Java
COBOL
C++

A

FOCUS
SAS

43
Q

What does a precompiler do?

A

They change the structure and language used by subsystems like CICS or Db2 into the source language’s call syntax.

44
Q

What does a compiler do?

A

Accepts a source program to check it for syntax, and produces an object module that contains machine-level code

45
Q

What is it to “bind” the object module?

A

Bind it into an executable module, or a program object.

46
Q

LE

A

Language Environment

47
Q

Langauge Environment

A

A z/OS component that contains standard objects and interfaces for other languages to refer to.

48
Q

How is the security of executables maintained?

A

Through security systems such as RACF

49
Q

What is used to control updates and maintenance of the modules?

A

Software Configuration Manager (SCM)

50
Q

What are stored procedures?

A

Executable code that can be called by other programs via a SQL call statement, where the definition resides in the database

51
Q

When should you sue stored procedures?

A

Use stored procedures for code that is used repeatedly, to reduce network traffic, return result sets to an application, or allow access to data without granting privileges to the applications.

52
Q

What do you use a stored procedure for?

A

mostly used for processes that update or summarize data in the Db2 database, or functions commonly used with the Db2 database.

53
Q

As part of the process required to create an executable module, an object deck has to be run through a process to resolve the addresses where instructions and data will be located. What is this process known as?

A

Bind

54
Q

After you have created an executable module, what controls the processes and users that can access or execute it?

A

RACF

55
Q

What language is the following

REGCHK AMODE 31
               TITLE    'CHECK REGION'
****************************
                SPACE
                DC                C'1'
                DC                C'
                DC                F'60'
                DC                F'0'
A

Assembly

56
Q

What language is the following

RESPROG1: PROCEDURE;
    DCL RESPNT ENTRY EXTERNAL;
    FETCH RESPNT;
    CALL RESPNT;
    RELEASE RESPNT;
END RESPROG1;
A

PL/I

57
Q

What language is the following?

IDENTIFICATION DIVSION.
PROGRAM-ID. MYPROG.
AUTHOR. PETER TEMPLETON.

ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
    SELECT OUTFILE ASSIGN TO OTFILE.
A

COBOL

58
Q

Which two programming languages are object-oriented?

FOCUS
PL/I
C++
Java
COBOL
REXX

A

Java
C++

59
Q

One of the benefits of using Java is that it can be used across different systems, but to be portable, what must be implemented?

A

Java Virtual Machine (JVM)

60
Q

Programs written in which two languages must be compiled before execution?

REXX
CLIST
C
COBOL

A

C
COBOL

61
Q

Which two languages are interpreted languages?

Fortan
REXX
Assembly
COBOL
CLIST
PL/I

A

REXX
CLIST