Computer Knowledge

Computer File Systems

1,516 Questions

Computer file systems dictate how data is stored, organized, and retrieved on storage devices. Important concepts include file allocation tables, access mechanisms, and various formats like sequential and video files. Candidates preparing for banking and government exams should practice these fundamentals thoroughly.

File access mechanismsVideo and password filesFile extensionsFile allocation tableSystem metadata

Computer File Systems Questions

Multiple choice technology programming languages
  1. The process file name of init

  2. The proc file name of RAM

  3. Invalid file

  4. The core dump file

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

/proc/kcore is a file in the /proc filesystem that represents the system's physical RAM in core dump format. It provides a virtual view of the entire system memory, similar to how a core dump captures process memory. Options A and D are incorrect because /proc/kcore is not related to the init process or individual program core dumps.

Multiple choice technology programming languages
  1. Resolve by update PATH variable

  2. Resolve by setting SHELLPATH variable

  3. Resolve by updating LD_LIBRARY_PATH

  4. Resolve by setting LIBRARY_PATH variable

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The error indicates the dynamic linker cannot find a required shared library at runtime. The LD_LIBRARY_PATH environment variable tells the dynamic linker where to search for shared libraries beyond the default paths. Options A, B, and D are incorrect: PATH is for executables, SHELLPATH doesn't exist for this purpose, and LIBRARY_PATH is used at compile time, not runtime.

Multiple choice technology programming languages
  1. A core file is created when a program terminates unexpectedly, due to a bug,

  2. A core represents the RAM memory (core)

  3. core file contains the entire process information

  4. A text file

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A core file is generated when a program crashes abnormally due to signals like SIGSEGV, SIGABRT, or SIGBUS. It contains the process's memory image at the time of the crash for debugging purposes. Option B is incorrect because /proc/kcore represents RAM, not individual core files. Option C is too broad and option D is simply wrong.

Multiple choice technology databases
  1. trace file

  2. audit trail

  3. control file

  4. alert log file

  5. event viewer

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Oracle's alert log file records all critical database events and errors, including information about missing or corrupted redo log files. When the database encounters issues with redo logs, it writes detailed messages to the alert log. This makes the alert log the primary source for diagnosing redo log problems. The trace file contains process-specific dumps, audit trails track user activities, the control file stores database metadata, and event viewer is a Windows tool - none of these are the correct location for redo log issue information.

Multiple choice technology databases
  1. alert_Training.log

  2. alertlog_Training.log

  3. alert_log_Training.log

  4. Training_alert_log.log

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The alert log file follows the naming convention alert_.log, where SID is the instance name. For a database named 'Training', the alert log would be alert_Training.log. This file resides in the BACKGROUND_DUMP_DEST directory and contains critical diagnostic information, errors, and startup/shutdown messages.

Multiple choice technology programming languages
  1. File parameters

  2. Performance parameters

  3. Space Parameters

  4. Volume Parameters

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Performance parameters like BUFSP (buffer space), STRNO (number of strings), and CISZ (control interval size) are defined during VSAM cluster creation and cannot be overridden during access. These are fundamental to the dataset's physical structure and performance characteristics.

Multiple choice technology programming languages
  1. VSAM File

  2. Tape File

  3. none of above

  4. Both a and b

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

To answer this question, the user needs to know about the LIKE parameter in mainframe programming.

The LIKE parameter is used to create a new file that has the same record-layout as an existing file. This is useful when you want to create a new file with the same structure as an existing file, but with different data.

Now, let's go through each option and explain why it is right or wrong:

A. VSAM File: This option is correct. You can use the LIKE parameter to create a new VSAM file that has the same record-layout as an existing VSAM file.

B. Tape File: This option is incorrect. You cannot use the LIKE parameter to create a new tape file. Tape files are typically used for backup and archival purposes, and do not have a record-layout like VSAM files.

C. None of above: This option is incorrect. As explained above, option A is correct.

D. Both a and b: This option is incorrect. Although option A is correct, option B is not.

Therefore, The Answer is: A. VSAM File

Multiple choice technology programming languages
  1. INZUTILB

  2. IKJEFT1A

  3. ADRDSSU

  4. XUE10200

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

ADRDSSU is the IBM DFSMSdfp utility used for data backup and restore operations. It performs fast backup using DSS (Data Storage and Storage) dump functionality, significantly reducing backup time compared to traditional utilities. INZUTILB is incorrect, IKJEFT1A is TSO, and XUE10200 is not a standard backup utility.

Multiple choice technology programming languages
  1. LRECL

  2. RECFM

  3. None of the attributes can be changed

  4. All the attributes can be changed

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

When transmitting files to remote hosts (especially in mainframe contexts using FTP or similar protocols), file attributes like LRECL (logical record length) and RECFM (record format) can indeed be changed or translated during transfer. The transmission process can modify these characteristics to match the target system's requirements or data format conventions.

Multiple choice technology programming languages
  1. GET

  2. PUT

  3. EXIT

  4. BYE

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

To solve this question, the user needs to know what FTP is and what parameters it uses. FTP (File Transfer Protocol) is a standard network protocol used to transfer files from one host to another over the Internet.

Now, let's go through each option and explain why it is right or wrong:

A. GET: This option is a valid FTP parameter. It is used to retrieve a file from a remote server.

B. PUT: This option is a valid FTP parameter. It is used to upload a file to a remote server.

C. EXIT: This option is not a valid FTP parameter. It is a command to exit the FTP client.

D. BYE: This option is a valid FTP parameter. It is used to terminate an FTP session.

Therefore, the answer is:

The Answer is: C

Multiple choice technology programming languages
  1. (1) Use the SYNCHRONIZED clause for the file.

  2. (2) Use the EXTERNAL clause for the file.

  3. (3) Use GLOBAL clause for the file.

  4. (4) Use COMMON clause for the file.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The EXTERNAL clause in COBOL allows a file connector to be shared and accessed by multiple independent programs within the same run unit, making it a common file.

Multiple choice technology programming languages
  1. (1) FILE-CONTROL

  2. (2) FILE SECTION

  3. (3) WORKING-STORAGE SECTION

  4. (4) Procedure division

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In COBOL, the SELECT statement (and its variants like EFSELECT) is part of the FILE-CONTROL paragraph within the INPUT-OUTPUT SECTION of the ENVIRONMENT DIVISION. This is where files are assigned to external devices and file organizations are specified. Options B and C are DATA DIVISION sections, and option D is a different division entirely.