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 security
  1. Print the logs to a paper

  2. Create a copy of data in your laptop/desktop

  3. Copy the files to CD-R's

  4. None of the above

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

CD-Rs (Compact Disc Recordable) provide a secure, write-once medium for backup that prevents tampering or modification of log files after they're written. Unlike paper or desktop copies, CD-Rs create permanent, unalterable records that can be stored offline and protected from unauthorized changes.

Multiple choice technology architecture
  1. All files irrespective of whether they were changed or not

  2. All files that were changed or added since the last full backup

  3. All files that were not saved during the previous incremental backup

  4. All files that were added since the last differential backup

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

A differential backup saves all files that have been changed or added since the last FULL backup (not since the last differential backup). This is different from an incremental backup, which only saves files changed since the last backup of any type. Option A describes a full backup, option C is nonsensical, and option D incorrectly suggests differential backups only reference the last differential backup.

Multiple choice technology programming languages
  1. f == EOF

  2. feof( f )

  3. eof( f )

  4. f == NULL

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

To determine if the end of a file has been reached, we need to check the return value of the read operation. In the given code, the file is opened using fopen and then readData is called to read from the file. After that, we need to check if the end of the file has been reached.

Option A) f == EOF - This option is correct because it checks if the file pointer f is equal to the constant EOF (End of File). If the end of the file has been reached, the read operation will return EOF, and this condition will evaluate to true.

Option B) feof(f) - This option is incorrect. The feof function is used to check if the end-of-file indicator is set for the given file stream. It does not directly indicate if the end of the file has been reached after a read operation.

Option C) eof(f) - This option is incorrect. The eof function is not a standard function in C. It is not used to check if the end of a file has been reached.

Option D) f == NULL - This option is incorrect. The f pointer is obtained from fopen and is checked for NULL to ensure that the file was successfully opened. It does not indicate if the end of the file has been reached.

The correct answer is Option A) f == EOF. This option correctly checks if the end of the file has been reached after a read operation.

Therefore, the correct answer is Option A.

Multiple choice technology programming languages
  1. string s="c:\abc.txt";

  2. string s="c:/abc.txt";

  3. string s=@"c:\abc.txt";

  4. All are correct

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

C# supports multiple path declaration formats. Double backslash escapes the backslash character (c:\abc.txt becomes c:\abc.txt at runtime). Forward slashes work in Windows paths (c:/abc.txt). Verbatim string literals using @ prefix treat backslashes literally (@"c:\abc.txt"). All three syntaxes are valid C# string declarations for file paths.

Multiple choice technology security
  1. Should be placed securely in a folder called “temp” in the web root

  2. Can be placed anywhere in the web root as long as there are no links to them

  3. Should be completely removed from the server

  4. Can be placed anywhere after changing the extension

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

Temporary files should be securely deleted after use. Placing them anywhere in the web root creates risk of unauthorized access if the location is discovered. Security requires complete removal, not just obfuscation.

Multiple choice technology security
  1. Print the logs to a paper

  2. Create a copy of data in your laptop/desktop

  3. Copy the files to CD-R's

  4. None of the above

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

The question reflects an outdated era where CD-R was considered secure write-once media. Modern best practice would be secure off-site storage with encryption. Within the given options, CD-R represents the most reliable backup choice.

Multiple choice technology operating systems
  1. Bak

  2. Bas

  3. Com

  4. Txt

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

The .BAK extension is the standard convention for backup files across many software applications. When programs create backup copies, they typically use .BAK to indicate it's a duplicate of the original file. .BAS is for BASIC source code, .COM is a command executable format, and .TXT indicates plain text files. Only .BAK specifically denotes a backup.

Multiple choice technology mainframe
  1. a) Only X is TRUE

  2. b) Only X and Y are TRUE

  3. c) Only X, Y and Z are TRUE

  4. d) Only Y is TRUE

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

IDCAMS is the Access Method Services utility for VSAM. It can define VSAM clusters using DEFINE command (X), load data into VSAM files using REPRO command (Y), and print/display VSAM file contents using PRINT or REPRO (Z). All three functions are supported by IDCAMS.

Multiple choice technology mainframe
  1. a) Copy one flat file to another

  2. b) Copy one PDS to another

  3. c) Copy one VSAM to another

  4. d) All of the above

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

IEBCOPY is a standard IBM mainframe utility program used specifically to copy, compress, or merge Partitioned Datasets (PDS or PDSE). It cannot copy VSAM files or sequential (flat) files, which are handled by other utilities like IDCAMS or IEBGENER.

Multiple choice technology mainframe
  1. a) Desirable for sensitive data

  2. b) Removes catalog entries

  3. c) All the above

  4. d) None

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

NOERASE specifies that data is not physically overwritten with binary zeros when the VSAM dataset is deleted, leaving raw data on disk. Heat-sensitive or confidential data requires the ERASE parameter to ensure complete destruction. Thus, NOERASE is not desirable for sensitive data, which makes statement a not true.

Multiple choice technology databases
  1. Certificate,Keys, ini file

  2. Name, Profile, bookmark

  3. Mails, Password

  4. Owner Name, Password, Certificates, Public Key

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

A Lotus Notes ID file is a security file containing the user's name, password, certificates, and public/private key pairs for authentication and encryption. The ID file serves as the user's digital identity within the Notes domain, enabling secure access to databases and encrypted communications. It does not contain INI files (which are configuration), bookmarks, or mail data.

Multiple choice technology databases
  1. Notes Template File/ Facility

  2. Notes Temporary File

  3. New Template file

  4. Network Transport Facility

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

NTF stands for 'Notes Template Facility' - it's the file extension for Lotus Notes template databases. These are database templates that can be used to create new NSF (Notes Storage Facility) databases. The standard naming convention in Lotus Notes is that NTF files are templates, NSF files are active databases.