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 mainframe
  1. JOB AND SORT

  2. JOB AND DEFINE

  3. SORT AND DEFINE

  4. FILE AND JOB

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

In CA Easytrieve, the ACTIVITY section contains JOB and SORT statements which define the processing activities of the program. Other terms like DEFINE or FILE are used in the library section, not the activity section. Thus, JOB AND SORT is the correct option.

Multiple choice technology mainframe
  1. FILE INFILE FB(80 800)

  2. FILE INFILE VS

  3. FILE INFILE VB(100 504)

  4. NONE OF THE ABOVE

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

To solve this question, the user needs to have knowledge of VSAM files and how they are defined in JCL.

Option A: FILE INFILE FB(80 800) This option represents a flat file. The FB indicates that the file is fixed blocked, and the numbers in the parentheses specify the record length (80) and the block size (800). This is not a VSAM file.

Option B: FILE INFILE VS This option represents a VSAM file. The "VS" indicates that it is a VSAM file. However, this option is incomplete since it does not specify the file organization (KSDS, ESDS, or RRDS) and the access method (ESDS or RRDS).

Option C: FILE INFILE VB(100 504) This option represents a variable blocked file. The VB indicates that the file is variable blocked, and the numbers in the parentheses specify the maximum record length (100) and the block size (504). This is not a VSAM file.

Therefore, the correct answer is:

The Answer is: B

Multiple choice technology mainframe
  1. FILE IS A FIXED BLOCK FILE WITH RECORD LENGTH 150 AND BLOCK SIZE 0

  2. FILE IS A FIXED BLOCK FILE WITH RECORD LENGTH 0 AND BLOCK SIZE 150

  3. FILE IS A VSAM FILE WITH RECORD LENGTH 150 AND BLOCK SIZE 0

  4. FILE IS A VARIABLE BLOCK FILE WITH RECORD LENGTH 150 AND BLOCK SIZE 0

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

In EasyTrieve file declaration, FB(150 0) represents a Fixed Block (FB) file with record length 150 and block size 0. Fixed block means records are of fixed length, 150 specifies the record size in bytes, and 0 indicates system-determined block size. The syntax is FB(record-length block-size).

Multiple choice technology operating systems
  1. All the above

  2. cat meminfo

  3. file <filename>

  4. stat <filename>

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

The 'stat' command displays detailed file status information including permissions, size, ownership, timestamps, and inode details. 'cat meminfo' would display memory info, not file status. 'file ' shows file type, not comprehensive status. 'All the above' is incorrect since only one option is correct.

Multiple choice technology
  1. .MVE

  2. .MP3

  3. .AVI

  4. .VDO

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

.AVI (Audio Video Interleave) is a well-known PC video file format introduced by Microsoft in 1992. .MP3 is an audio format (not video). .MVE is a less common video format used in some games, but .VDO is not a standard PC video extension. Among these, .AVI is the most established PC video file extension.

Multiple choice technology operating systems
  1. True

  2. False

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

The default permission for a regular file in Unix/Linux is 644 (rw-r--r--), not 655. The 644 setting means owner has read/write, group and others have read-only. The umask typically defaults to 022, which subtracts from 666 to yield 644.

Multiple choice technology databases
  1. parameter file

  2. data files

  3. redo log files

  4. alert.log file

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

In Oracle databases, redo log files can be multiplexed - meaning multiple copies of the same redo log group can be maintained simultaneously on different disks to protect against disk failure. The parameter file (spfile or pfile) is a single configuration file. Data files cannot be multiplexed - they are the actual storage for database data. The alert.log is a single text file that records database events and cannot be multiplexed.

Multiple choice technology
  1. C:\WINDOWS\system32\LogFiles\W3SVC1

  2. C:\wwwroot\inetpub

  3. C:\WINDOWS\system32\LogFiles\W3SVC

  4. C:\WINDOWS\system32\Logs

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

In Windows Server 2003, the default IIS log location is C:\WINDOWS\system32\LogFiles\W3SVC1, where W3SVC1 represents the default website's instance ID. Each website has its own W3SVC# subdirectory. The path structure is consistent across IIS 6.0 installations.

Multiple choice technology databases
  1. ITS A DUMMY RULE

  2. TO BALANCE THE EXTRACTION AND LOADING PROCESS

  3. EASY TO MAINTAIN

  4. TO RESOLVE THE PERFORMANCE ISSUES

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

Flat files are used in ETL processes to balance the extraction and loading operations (staging area concept) and to resolve performance issues by providing an intermediate storage format that can be processed efficiently. They are not a dummy rule, and ease of maintenance is not their primary technical purpose.

Multiple choice technology
  1. C:\WINDOWS\system32\LogFiles\W3SVC1

  2. C:\WINDOWS\LogFiles\W3SVC1

  3. C:\inetpub\LogFiles\W3SVC1

  4. C:\inetpub\wwwroot\LogFiles\W3SVC1

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

IIS log files are stored by default in the system directory under LogFiles. For IIS 7 and later versions, the path C:\WINDOWS\system32\LogFiles\W3SVC1 is correct, where W3SVC1 represents the website identifier.

Multiple choice technology programming languages
  1. None

  2. file <exefile>

  3. ./a.out

  4. strings <exefile>

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

The strings command extracts and displays printable ASCII/Unicode strings from binary files, making it ideal for examining compiled executables to see embedded text, error messages, and configuration paths without executing code. file command only shows file type, ./a.out executes the binary, and None is meaningless.

Multiple choice technology embedded technologies
  1. getSharedPreferences()

  2. getPreferences()

  3. openFileOutput()

  4. putBoolean()

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

In Android, openFileOutput() is the standard Context method used to open and write a private file associated with the application's internal storage. getSharedPreferences() and getPreferences() access preference files, while putBoolean() writes boolean preferences.