Computer Knowledge · General Awareness

Information Security

4,143 Questions

Information security involves protecting computer systems and data from unauthorized access, cyber threats, and damage. It is a core part of the computer knowledge section in various banking and government exams. Practicing these concepts helps in understanding digital signatures, network security, and access control effectively.

Cybersecurity threatsAccess controlCryptography basicsSecurity risk managementDatabase protection

Information Security Questions

Multiple choice technology programming languages
  1. In Page directive set EnableViewStateMac="true"

  2. In Register directive set EnableViewStateMac="true"

  3. In web config set Protectviewstate="true"

  4. In IIS set Viewstate protection.

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

View state can be tampered with when passed over unencrypted channels. Setting EnableViewStateMac="true" in the Page directive enables message authentication codes (MAC) that detect tampering. Option A is correct. Option B references a non-existent directive, Option C has incorrect syntax (should be EnableViewStateMac), and Option D is not a standard configuration.

Multiple choice technology programming languages
  1. In Page directive set EnableViewStateMac="true"

  2. In Register directive set EnableViewStateMac="true"

  3. In web config set Protectviewstate="true"

  4. In IIS set Viewstate protection.

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

ViewStateMAC (Message Authentication Code) adds a cryptographic hash to view state data, detecting tampering when the data往返s over unencrypted channels. Setting EnableViewStateMac="true" in the Page directive enables this protection. The Register directive is for user controls (not page-level settings), web.config uses different attributes, and IIS doesn't have ViewState-specific protection.

Multiple choice technology architecture
  1. Modifer Pattern

  2. Facade pattern

  3. Specialization pattern

  4. Intercepting Filter

  5. None of the above

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

The Intercepting Filter pattern can intercept and modify authentication data in requests before they reach the authentication mechanism. Filters can transform, encode, or process credentials without the user's awareness, which is exactly what this scenario requires. Facade simplifies interfaces, Specialization isn't relevant, and Modifer isn't a standard pattern.

Multiple choice technology web technology
  1. doGet

  2. doPost

  3. Both

  4. None of the above

  5. All of the above

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

doPost should be used when sending confidential data because POST requests place parameters in the request body rather than the URL. This prevents sensitive information from appearing in browser history, server logs, or URL bookmarks. GET requests expose data in the URL query string, which is less secure for confidential information.

Multiple choice technology web technology
  1. secret credential

  2. active credential

  3. passive credential

  4. silent credential

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

An active credential performs a login on behalf of a client without exposing the secret to the client's code or application. This pattern enhances security by keeping credentials server-side while still allowing authentication. The term 'active' refers to the credential actively performing the login action transparently.

Multiple choice technology web 2.0
  1. System.Web.Security

  2. System.Net.Security

  3. System.Data

  4. System.IO

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

The FormsAuthentication class, which manages forms-authentication services for Web applications, resides in the System.Web.Security namespace. Namespaces like System.Net.Security, System.Data, and System.IO serve network, data access, and input/output purposes respectively.

Multiple choice technology mainframe
  1. Data Hiding

  2. Reentrancy

  3. Encapsulation

  4. None of the above

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

In TPF (Transaction Processing Facility), data isolation is achieved through reentrancy - the ability for code to be interrupted and re-entered safely without affecting data integrity. Reentrant routines don't modify their own code, allowing multiple executions without interference. Data hiding and encapsulation are broader programming concepts not specific to TPF's isolation mechanism.

Multiple choice technology web technology
  1. Cookies

  2. URL- rewriting

  3. sessions

  4. SSL sessions

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

Common session tracking mechanisms in web applications include Cookies (storing session IDs), URL rewriting (appending session IDs to URLs), and SSL sessions (using SSL session IDs). The option 'sessions' is not a mechanism but rather the concept being tracked.

Multiple choice technology databases
  1. It is the auditing of the use of normal system privileges with regard to specifically named objects

  2. It is the auditing of the use of powerful system privileges without regard to specifically named objects

  3. It is the auditing of the use of powerful system privileges with regard to specifically named objects

  4. None of these

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

Privilege auditing is the tracking of powerful system privileges (such as CREATE TABLE or SELECT ANY TABLE) when used by users, without being restricted to specific schema objects. Object auditing tracks actions on named schema objects, while auditing privileges with respect to specific objects is not privilege auditing.

Multiple choice technology architecture
  1. They are not related to each other in any way

  2. High Security generally results in high performance

  3. High performance is a pre-requisite for secure systems

  4. Security and Performance are inversely proportional

  5. Low performance systems cannot be secure

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

Security measures (encryption, SSL, authentication) add computational overhead, causing encryption/decryption delays, additional network round-trips for handshakes, and CPU resources for cryptographic operations. This creates an inverse relationship - increasing security generally decreases performance. High security doesn't improve performance, performance isn't a prerequisite for security, and low-performance systems can still be secure (just slower).

Multiple choice technology security
  1. Execute OS commands

  2. Steal user sessions

  3. Execute scripts on the webserver

  4. Manipulate the data in the database

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

XSS vulnerabilities enable attackers to inject malicious scripts into web pages viewed by other users. The primary impact is session hijacking - by stealing cookies or session tokens through injected JavaScript, attackers can impersonate legitimate users and gain unauthorized access to their accounts.

Multiple choice technology security
  1. /transfer.asp?fromacct=”account1”&toaccount=”account2”&amount=200.45&trnsactToken=”121431ersw”

  2. /email.jsp&to=”[email protected]”&subject=”hi”

  3. Use https for all secured pages

  4. Use encryption for session cookies

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

CSRF attacks are prevented by validating unique, unpredictable, and user-specific tokens (like trnsactToken) associated with the current session. HTTPS only encrypts communication to prevent eavesdropping, and encrypting session cookies does not prevent the browser from automatically sending them in CSRF scenarios.

Multiple choice technology security
  1. Display “Welcome, user!” on the home page

  2. Display only “Welcome” on the home page

  3. Invalidate and destroy the session when user logs out

  4. Use persistent cookies for session management

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

Secure session management requires completely invalidating and destroying sessions on logout, not just displaying generic messages. This prevents session fixation attacks where an attacker could reuse a valid session identifier after logout. Persistent cookies create additional security risks by extending the attack window.

Multiple choice technology security
  1. Send 403 return code

  2. Send 302 return code and redirect the user to the home page

  3. Send 404 return code

  4. Send 200 return code

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

Returning a 404 Not Found response instead of 403 Forbidden prevents information disclosure about directory existence. Attackers probing for sensitive folders learn nothing from 404 responses, whereas 403 responses confirm that something exists but is restricted, providing valuable reconnaissance information.