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
  1. type not_empty

  2. cat not_empty

  3. more not_empty

  4. vi not_empty

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

To solve this question, the user needs to know the basic command-line interface (CLI) commands and their functionalities in Linux/Unix.

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

A. type not_empty: This command is used to display the type of a command, but it does not show the content of a file. Therefore, this option is incorrect.

B. cat not_empty: This command is used to display the contents of a file on the terminal. Hence, this option is correct.

C. more not_empty: This command is also used to display the contents of a file, but it displays one screen of text at a time, and the user has to press the spacebar to see the next screen. Therefore, this option is correct but less efficient than the cat command.

D. vi not_empty: This command is used to open a file in the vi editor, which allows the user to edit the file content. Therefore, this option is incorrect as it does not display the content of the file on the terminal.

Therefore, the correct answer is:

The Answer is: B. cat not_empty

Multiple choice technology
  1. print 15 .txt

  2. cat *.txt -length=15

  3. head -15 *.txt

  4. type 15 .txt

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

The head command displays the first N lines of files. 'head -15 *.txt' shows the first 15 lines of all files ending in .txt (the *.txt pattern matches all such filenames). Options B, C, and D use incorrect commands or syntax.

Multiple choice technology testing
  1. A. .INI

  2. B. .TXT

  3. C. .QFL

  4. D. .VBS

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

In QTP, procedures created in the Function Library editor are saved with the .QFL extension (QuickTest Function Library). This is QTP's standard file format for storing reusable functions and procedures that can be associated with multiple tests. .INI files are configuration files, .TXT are plain text, and .VBS are standalone VBScript files - none of these are used for Function Library procedures in QTP.

Multiple choice technology testing
  1. A. Local Data Sheet, Global Data Sheet, Folder

  2. B. Local Object Repository, Local Data Sheet, Folder

  3. C. Global Data Sheet, Local Object Repository, Folder

  4. D. Local Data Sheet, Global Data Sheet, Local Object Repository

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

In QTP/UFT, creating a new action automatically generates a dedicated subdirectory containing a Local Object Repository (.or file) and a Local Data Sheet (action-specific sheet). Global sheets exist at the test level rather than action level, making options containing the Global Data Sheet incorrect.

Multiple choice technology operating systems
  1. filter

  2. kernel

  3. inode

  4. Shell

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

An inode (index node) is the fundamental data structure in UNIX filesystems that stores file metadata like permissions, ownership, size, location data, and timestamps. Each file has a unique inode number. The kernel and shell are not data structures, and filter is a different concept entirely.

Multiple choice technology
  1. tar lot_of_thing.tar.Z | decomp

  2. zcat lot_of_thing.tar.Z | tar xvf -

  3. tar xvf lot_of_thing.tar.Z

  4. tar lot_of_thing

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

The command 'zcat lot_of_thing.tar.Z | tar xvf -' correctly uncompresses the .Z file using zcat and pipes the output to tar for extraction. The hyphen (-) tells tar to read from stdin. Option A pipes in wrong direction, C doesn't handle compression, and D is incomplete.

Multiple choice technology
  1. cat file1.txt file2.txt > new.txt

  2. make new.txt=file1.txt+file2.txt

  3. tail file1.txt | head file2.txt > new.txt

  4. cat file1.txt file2.txt

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

The command 'cat file1.txt file2.txt > new.txt' concatenates both files and redirects output to create new.txt. The > operator creates a new file (or overwrites existing). Option B uses invalid syntax, C misuses tail/head, and D only displays to screen without creating file.

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 with value 0 indicates the file was uploaded successfully. This constant is part of PHP's file upload error reporting system where non-zero values indicate specific error conditions like file size exceeds upload_max_filesize or partial upload.

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 in fopen() opens a file for both reading AND writing operations. The file pointer is placed at the beginning of the file, allowing you to read existing content and write new content. Options A (reading only) and B (writing only) are incomplete since r+ supports both operations.

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

The allow_url_fopen PHP ini directive enables URL-aware fopen wrappers that allow accessing remote files via HTTP/FTP. Option B (allow_remote_files) is not a valid PHP directive. This setting is essential for functions like fopen(), file_get_contents(), and include() to work with remote URLs.

Multiple choice technology web technology
  1. A

  2. W

  3. W+

  4. A+

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

The 'a' (append) mode opens a file for writing only, places the pointer at the end, and creates the file if it doesn't exist. Option C (W+) would open for reading AND writing but would truncate the file. Options B (W) and D (A+) are incorrect for 'writing only' requirement.