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
What differentiated IBM XL C from other OSs?
It supports all the normal C features but also includes z/OS-specific functions and features
26
What are the two scripting languages available in IBM?
CLIST and REXX
27
Which is considered the more advanced: CLIST or REXX?
REXX is seen as the successor of CLIST
28
CLIST and REXX are run as interpreted or compiled?
Interpreted, however REXX does have a compiler
29
True or False REXX can be used for CICS and in the bath environment?
True
30
What language was adopted by IBM that opened the mainframe up to mainstream Internet processing?
Java
31
What is a benefit of Java as a programming language
It is written the same way across all systems that run it.
32
As part of IBMs adoption of Java, what aspects of z/OS can be accessed with Java?
z/OS data and services CICS services Db2 database content IMS database content
33
What version of z/OS supports Python?
>=z/OS 2.3
34
What is a core benefit of using Python?
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
Through what software can Python developers develop for IBM?
IBM Open Enterprise SDK for Python
36
True or False C and C++ are interpreted languages.
False - They are compiled
37
Is COBOL interpreted or compiled?
Compiled
38
True or False C and C++ programs can be compiled by using SDSF.
False C and C++ can be compiled by using the ISPF and JCL interfaces.
39
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.
True The C/C++ process to create a load module is similar to COBOL.
40
True or False C and C++ programs can be compiled from within the UNIX Systems Services shell.
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
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 ```
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
Which two languages are fourth-generation languages? SAS FOCUS Assembly Java COBOL C++
FOCUS SAS
43
What does a precompiler do?
They change the structure and language used by subsystems like CICS or Db2 into the source language's call syntax.
44
What does a compiler do?
Accepts a source program to check it for syntax, and produces an object module that contains machine-level code
45
What is it to "bind" the object module?
Bind it into an executable module, or a program object.
46
LE
Language Environment
47
Langauge Environment
A z/OS component that contains standard objects and interfaces for other languages to refer to.
48
How is the security of executables maintained?
Through security systems such as RACF
49
What is used to control updates and maintenance of the modules?
Software Configuration Manager (SCM)
50
What are stored procedures?
Executable code that can be called by other programs via a SQL call statement, where the definition resides in the database
51
When should you sue stored procedures?
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
What do you use a stored procedure for?
mostly used for processes that update or summarize data in the Db2 database, or functions commonly used with the Db2 database.
53
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?
Bind
54
After you have created an executable module, what controls the processes and users that can access or execute it?
RACF
55
What language is the following ``` REGCHK AMODE 31 TITLE 'CHECK REGION' **************************** SPACE DC C'1' DC C' DC F'60' DC F'0' ```
Assembly
56
What language is the following ``` RESPROG1: PROCEDURE; DCL RESPNT ENTRY EXTERNAL; FETCH RESPNT; CALL RESPNT; RELEASE RESPNT; END RESPROG1; ```
PL/I
57
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. ```
COBOL
58
Which two programming languages are object-oriented? FOCUS PL/I C++ Java COBOL REXX
Java C++
59
One of the benefits of using Java is that it can be used across different systems, but to be portable, what must be implemented?
Java Virtual Machine (JVM)
60
Programs written in which two languages must be compiled before execution? REXX CLIST C COBOL
C COBOL
61
Which two languages are interpreted languages? Fortan REXX Assembly COBOL CLIST PL/I
REXX CLIST