Computer Knowledge
Programming Languages and Compilers
2,284 Questions
Programming languages and compilers involve the rules, syntax, and semantics used to write and execute software programs. Key areas include scripting languages, object oriented concepts, and parsing algorithms like top down parsers. Practice these computer science questions to build proficiency for technical and computer knowledge exams.
Object oriented languagesScripting languagesCompilers and parsersProgramming syntax
Programming Languages and Compilers Questions
-
VFMT
-
FMT
-
UNFMT
-
All of the above
D
Correct answer
Explanation
File-Aid supports multiple file access formats: VFMT (Variable Format - files with variable-length records), FMT (Fixed Format - files with fixed-length records), and UNFMT (Unformatted - raw binary files). All three formats are valid access methods in File-Aid.
A
Correct answer
Explanation
File-AID is a widely used mainframe tool that facilitates the creation, browsing, and editing of various file types, including Virtual Storage Access Method (VSAM) files.
A
Correct answer
Explanation
File-AID provides features to define, manage, and create alternate indexes for VSAM KSDS files, assisting developers in mainframe data management.
A
Correct answer
Explanation
File-Aid provides robust file comparison capabilities through its Compare utility (Option 6). It can compare two files at record, field, or layout levels, showing differences in detail.
B
Correct answer
Explanation
File-Aid does not provide data masking capabilities for PDS members or dataset records. Masking requires specialized data privacy tools or custom utilities. File-Aid can view, edit, and compare data but not mask sensitive fields.
-
TALLY
-
COUNT
-
TOTAL
-
AVERAGE
A
Correct answer
Explanation
File-Aid uses the TALLY command to count records that match specified criteria. TALLY provides record counts and statistics, unlike generic SQL aggregate functions like COUNT which are not File-Aid commands.
B
Correct answer
Explanation
GDG (Generation Data Group) creation and management is performed through IDCAMS utility or JCL, not File-Aid. File-Aid can browse and manipulate GDG datasets but cannot create the GDG base structure itself.
-
Source code Debugger
-
Compiler
-
Assembler
-
Command-line interpreter
D
Correct answer
Explanation
A shell is a command-line interpreter that provides a user interface for access to an operating system's services, executing commands entered by the user.
-
Test
-
Syntax error
-
Value error
-
Attribute error
D
Correct answer
Explanation
In Python, names starting with double underscore are name-mangled. foo becomes _Afoo internally. Attempting to call a.__foo() from outside the class raises an AttributeError because the method name doesn't exist as written.
B
Correct answer
Explanation
The java.io.File class represents file and directory paths abstractly but does NOT provide methods to read or write file content. For reading/writing content, you need separate classes like FileReader, FileWriter, BufferedReader, BufferedWriter, FileInputStream, FileOutputStream, etc. File class only handles file metadata operations like exists(), createNewFile(), delete(), etc.
-
write_to_log
-
write_log
-
formated_log
-
formated_text
B,C
Correct answer
Explanation
When an Ab Initio graph executes at runtime, it creates both .rec files (which contain execution records and runtime metadata) and .job files (which track job execution details). These files are essential for monitoring and debugging graph execution.
-
FileAid
-
FileHelp
-
FileFormat
-
FileEdit
A
Correct answer
Explanation
File-AID is a widely used Compuware utility in mainframe environments (MVS/TSO) designed for editing, copying, comparing, and managing data files. The other options like FileHelp, FileFormat, and FileEdit are not standard mainframe utility tools for these tasks.
A
Correct answer
Explanation
In COBOL, you can read and write the same file by opening it in I-O mode (Input-Output mode). This allows both READ and WRITE operations on the same file within the same program. You must ensure proper file positioning and record handling to avoid conflicts. This is commonly used for updating files in place.