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. Lower case characters

  2. Spaces

  3. Numbers

  4. Semi Colon

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

Secure File Transfer (SFT) protocols and automated scripts typically restrict spaces in filenames. Spaces cause parsing errors, unexpected truncation, or command execution failures in script arguments. Lower case characters, numbers, and semicolons are generally allowed or handled more safely, making spaces the primary prohibited character here.

Multiple choice technology operating systems
  1. 666

  2. 777

  3. 755

  4. 766

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

Perl programs need execute permission to run directly. The common permission scheme is 755 (rwxr-xr-x): owner can read/write/execute, group/others can read/execute. 777 gives write permission to everyone which is a security risk. 666 is read/write for all with no execute permission - not executable. 766 is unusual and gives write to group/others.

Multiple choice technology
  1. xmlstore

  2. com

  3. sites

  4. config

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

In Genesys applications, the config folder conventionally contains configuration files including properties files that define system behavior, database connections, and environment settings. The xmlstore folder stores XML templates, com contains Java packages, and sites typically holds site-specific configurations.

Multiple choice technology operating systems
  1. This gives the file read/write by the owner and only read by everyone else

  2. This gives the file read/execute by the owner and only read by everyone else

  3. This gives the file read/write by the owner and only execute by everyone else

  4. This gives the file read/write/execute by the owner and only execute by everyone else

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

chmod 644 sets permissions as: owner gets read (4) + write (2) = 6, group gets read (4) = 4, others get read (4) = 4. This results in read/write for owner and read-only for everyone else. Execute permission would require adding 1 to the octal value.

Multiple choice technology operating systems
  1. Uncompress the file myfile.gz

  2. compress the file myfile.gz and if the uncompressed file(s) already exist force an overwrite

  3. Uncompress the file myfile.gz and if the uncompressed file(s) already exist force an overwrite

  4. compress the file myfile.gz

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

The gunzip command is used to decompress gzip files. Applying the -f or --force option forces decompression and overwrites any existing uncompressed files with the same name without prompting, whereas the other options incorrectly suggest that this command performs file compression.

Multiple choice technology web technology
  1. Get

  2. Post

  3. Both Get and Post

  4. There is no direct way for larger form. You need to store them in a file and retrieve

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

POST is designed for larger form submissions because it sends data in the request body without size limitations imposed by URLs. GET has length restrictions due to URL limits. Option A is wrong because GET isn't suitable for large data. Option C is incorrect because POST is specifically suitable. Option D is unnecessary - POST handles this directly.

Multiple choice technology web technology
  1. W

  2. W+

  3. A

  4. A+

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

The 'a' mode in fopen() opens a file for writing only, positions the pointer at the end, and creates the file if it doesn't exist. 'w' truncates the file, not append. 'w+' allows both read and write but truncates. 'a+' allows both reading and writing without truncating, starting at the end. Therefore 'a' matches the description exactly.

Multiple choice technology web technology
  1. allow_url_fopen

  2. allow_remote_files

  3. both of above

  4. none of above

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

allow_url_fopen is the php.ini directive that enables PHP to open remote files using functions like fopen() with URLs. allow_remote_files is not a valid PHP directive. Option A is the correct configuration setting. Option B doesn't exist. Option C is incorrect because 'allow_remote_files' is not a real setting.

Multiple choice technology web technology
  1. reading

  2. writing

  3. none of above

  4. both of above

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

The 'r+' mode opens a file for both reading AND writing. It doesn't truncate the file and places the pointer at the beginning. Option A is incomplete (reading only). Option B is incomplete (writing only). Option C is wrong because 'r+' does both. Option D correctly states it handles both operations.

Multiple choice technology web technology
  1. Uplaod is not successful, error occurred

  2. The file uploaded with success

  3. Uploaded file size is 0

  4. File upload progress is 0% completed

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

UPLOAD_ERR_OK is a PHP constant that equals 0, indicating the file was uploaded successfully without any errors. Option A incorrectly suggests 0 means an error occurred, when in fact 0 is the success code. Options C and D misinterpret the meaning of 0 as referring to file size or progress percentage.

Multiple choice technology performance
  1. Script

  2. Analysis

  3. Scenario

  4. Results

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

Explanation: To answer this question, you need to understand the different file types and their extensions used in data analysis or software testing.

Option A) Script - The file type for scripts is often .sh, .py, .js, or .pl depending on the programming language. .lrr is not a common file extension for scripts.

Option B) Analysis - The file type for analysis is often .csv, .xlsx, .json, or .txt depending on the type of data and analysis. .lrr is not a common file extension for analysis files.

Option C) Scenario - The file type for scenarios is often .xml, .json, or .txt depending on the tool or framework used. .lrr is not a common file extension for scenario files.

Option D) Results - The file type for results is often .html, .pdf, .docx, or .csv depending on the type of output. .lrr is a file extension for results generated by LoadRunner, a performance testing tool by Micro Focus.

The correct answer is D. This option is correct because .lrr is a file extension commonly used for results generated by LoadRunner.