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

Multiple choice technology mainframe
  1. VFMT

  2. FMT

  3. UNFMT

  4. All of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology mainframe
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology operating systems
  1. Source code Debugger

  2. Compiler

  3. Assembler

  4. Command-line interpreter

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology mainframe
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
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.