Computer Knowledge

Computer File Systems

1,249 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 operating systems
  1. rm filename

  2. less filename

  3. touch filename

  4. dl filename

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

The rm (remove) command is the standard command-line utility used to delete files and directories in Unix-like operating systems.

Multiple choice technology operating systems
  1. pico filename

  2. cat filename

  3. more filename

  4. touch filename

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

The touch command creates an empty file without opening it for editing. Pico is a text editor that opens files, cat displays file contents to stdout, and more is a pager for viewing files - all of these involve opening or reading the file.

Multiple choice technology web technology
  1. App Srv

  2. Batch Srv

  3. Web Srv

  4. File Srv

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

Report output files generated by PeopleSoft are stored on the Web Server (PSAPPSRV generates them, but they're served through the web). The Application Server processes requests, Batch Server runs background jobs, and File Server isn't a standard PeopleSoft server component in this context. Web Server handles report distribution and viewing.

Multiple choice technology operating systems
  1. mcells

  2. fragments

  3. inodes table

  4. cylinder group

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

Journaling file systems like JFS and ext3/ext4 maintain an inode table to track file metadata and locations. The journal itself is a circular log that records changes before they're committed to the main file system. Options like 'mcells' and 'fragments' are not standard file system structures, while 'cylinder group' is specific to BSD Unix File System (UFS), not journaling file systems.

Multiple choice technology security
  1. an ASCII file that contains an entry for each user

  2. File which is created and maintained by a server of activity performed by it.

  3. short python program that prints the list of all files inside the current directory

  4. File which is created and maintained by the operating system

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

A log file is a file created and maintained by a server (or application) to record the activities performed by it. Option A describes system-wide user logs, not application logs. Option C is a program, not a log file. Option D describes system-level logs, not server/application logs.

Multiple choice technology operating systems
  1. It is a file permission that allows the program's text part to stay in swap memory after its execution

  2. UNIX don’t have sticky bit

  3. It’s a Linux only feature

  4. None of above

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

Historically, the sticky bit on executable files instructed the operating system to retain the program's text segment in swap memory after execution to speed up subsequent loads.

Multiple choice technology security
  1. an ASCII file that contains an entry for each user

  2. File which is created and maintained by a server of activity performed by it

  3. short python program that prints the list of all files inside the current directory

  4. File which is created and maintained by the operating system

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

A log file is a file automatically created and maintained by a server or application that records events, transactions, and activities performed by it for auditing and troubleshooting.

Multiple choice technology programming languages
  1. a) Use filelock()

  2. b) use lockfile()

  3. c) Use lockfd()

  4. d) use fcntl()

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

fcntl() is the POSIX system call used for advisory and mandatory file locking in Unix/Linux systems. It operates on file descriptors and provides mechanisms like shared and exclusive locks through the F_SETLK and F_SETLKW commands. The other options (filelock(), lockfile(), lockfd()) are not standard POSIX system calls.

Multiple choice technology programming languages
  1. a) duplicate()

  2. b) dup()

  3. c) cp()

  4. d) mknod()

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

dup() is the POSIX system call used to duplicate file descriptors. It creates a new file descriptor that refers to the same open file description as the original, sharing the file offset and status flags. dup2() is a related call that allows specifying the descriptor number. cp() is for file copying, mknod() creates device nodes.

Multiple choice technology operating systems
  1. list the files

  2. check the process status

  3. substitute one word with another

  4. copy the contents of one file to another

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

sed (stream editor) is primarily used for text transformation and substitution. It can search for patterns and replace them with specified text using commands like s/old/new/ to substitute one word or phrase with another.

Multiple choice technology operating systems
  1. touch

  2. vi

  3. cat

  4. a&b

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

Both touch and vi can create files. touch creates an empty file immediately, while vi opens the text editor and creates the file when you save. Since both A and B are valid methods, D (a&b) is correct.