Application Programming Environment Overview Flashcards
Formally, IBM Z Assembler, is referred to as what?
High-Level Assembler (HLASM)
HLASM
High-Level Assembler (HLASM)
What is an assembler language?
Low-level languages that have a close relationship to the CPU or processor where they execute.
Assembler languages contain two types of instructions. What are they?
Machine instructions
Assembly Instructions
What is a machine instruction?
Instructions that you intend for the hardware
What is an assembler instruction?
Used to tell the assembler what to do or how to generate the machine instructions
What is the assembler?
The tool that converts source code written in assembly language to machine instructions.
When would assembly languages be used in API?
In underdeveloped APIs and interfaces where no suitable high-level language interface has been provded
What is the most widely used programming language in the IBM enterprise environment?
COBOLCO
Name that acronym
COBOL
Common business Oriented Language
Why is COBOL common?
It does not belong to any single computer manufacturer and is available on most computer architecture
Why is COBOL considered to be “business-oriented”?
it is designed to handle files and records related to business transactions and is not designed for complex mathematical computations.
Why can COBOL be self-documented?
COBOL’s use of English-like verbs and encouragement of descriptive variable names
True or False
COBOL is well suited for complex math and calculations?
False, it’s primary function is data records and handling
What is PL/I
Developed by IBM as an attempt to provide facilities found in COBOL, Fortran and ALGOL, and system control found in Assembly
True or False
PL/I is only supported on z/OS?
False
z/OS, AIX, and VSE
True of False
COBOL is best if your code needs both file handling, and mathematical operations,
False - PL/I is equally adept at both
The assembler tool performs which action on assembly language source code?
It converts the source code to machine instructions.
True or False
COBOL is ideal when there is a need for complex mathematical formulae and calculations.
False
COBOL is not suitable for complex mathematical formulae and calculations.
True or False
COBOL is a highly structured language with six defined program divisions.
False
COBOL consists of four program divisions.
True or False
COBOL is most suited to applications dealing with data records and data handling.
True
True or False
COBOL contains English-like language.
True
True or False
The C compiler can be executed as a command from a z/OS UNIX shell?
True
What is the IBM C Compiler called?
XL C/C++
What differentiated IBM XL C from other OSs?
It supports all the normal C features but also includes z/OS-specific functions and features
What are the two scripting languages available in IBM?
CLIST and REXX
Which is considered the more advanced: CLIST or REXX?
REXX is seen as the successor of CLIST
CLIST and REXX are run as interpreted or compiled?
Interpreted, however REXX does have a compiler
True or False
REXX can be used for CICS and in the bath environment?
True
What language was adopted by IBM that opened the mainframe up to mainstream Internet processing?
Java
What is a benefit of Java as a programming language
It is written the same way across all systems that run it.
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
What version of z/OS supports Python?
> =z/OS 2.3
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.
Through what software can Python developers develop for IBM?
IBM Open Enterprise SDK for Python
True or False
C and C++ are interpreted languages.
False - They are compiled
Is COBOL interpreted or compiled?
Compiled
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.
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.
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++
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.
Which two languages are fourth-generation languages?
SAS
FOCUS
Assembly
Java
COBOL
C++
FOCUS
SAS
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.
What does a compiler do?
Accepts a source program to check it for syntax, and produces an object module that contains machine-level code
What is it to “bind” the object module?
Bind it into an executable module, or a program object.
LE
Language Environment
Langauge Environment
A z/OS component that contains standard objects and interfaces for other languages to refer to.
How is the security of executables maintained?
Through security systems such as RACF
What is used to control updates and maintenance of the modules?
Software Configuration Manager (SCM)
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
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.
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.
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
After you have created an executable module, what controls the processes and users that can access or execute it?
RACF
What language is the following
REGCHK AMODE 31 TITLE 'CHECK REGION' **************************** SPACE DC C'1' DC C' DC F'60' DC F'0'
Assembly
What language is the following
RESPROG1: PROCEDURE; DCL RESPNT ENTRY EXTERNAL; FETCH RESPNT; CALL RESPNT; RELEASE RESPNT; END RESPROG1;
PL/I
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
Which two programming languages are object-oriented?
FOCUS
PL/I
C++
Java
COBOL
REXX
Java
C++
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)
Programs written in which two languages must be compiled before execution?
REXX
CLIST
C
COBOL
C
COBOL
Which two languages are interpreted languages?
Fortan
REXX
Assembly
COBOL
CLIST
PL/I
REXX
CLIST