Home Tests Campus Placement Computer Knowledge

Campus Placement
Computer Knowledge

Campus placement MCQ questions — Aptitude, Verbal, Reasoning, Technical.

94 Q 4 Subjects Any Graduate
Take Mock Test
Difficulty: All Easy Medium Hard 1–10 of 94
Advertisement
Q.1 Easy Computer Knowledge Database/SQL
Which of the following represents a vulnerability in SQL query construction that can be exploited through malicious user input, and can be prevented using parameterized queries?
A Buffer overflow attacks
B Cross-site scripting (XSS)
C SQL injection attacks
D Distributed denial of service (DDoS)
Correct Answer:  C. SQL injection attacks
EXPLANATION

SQL injection occurs when untrusted input is concatenated into SQL queries. Parameterized queries/prepared statements separate code from data, preventing attackers from modifying query logic.

Take Test
Q.2 Easy Computer Knowledge Database/SQL
Which of the following is a characteristic of NoSQL databases that makes them suitable for handling big data in cloud environments?
A Strict ACID compliance across all nodes
B Horizontal scalability and schema-less design
C Requirement for predefined schemas before insertion
D Complex JOIN operations for data retrieval
Correct Answer:  B. Horizontal scalability and schema-less design
EXPLANATION

NoSQL databases like MongoDB and Cassandra are designed for horizontal scaling and flexible schemas, making them ideal for cloud-based big data applications with varying data structures.

Take Test
Q.3 Easy Computer Knowledge Database/SQL
In a relational database, which normal form eliminates partial dependencies and is considered essential for most practical database designs?
A Second Normal Form (2NF)
B Third Normal Form (3NF)
C Boyce-Codd Normal Form (BCNF)
D Fourth Normal Form (4NF)
Correct Answer:  B. Third Normal Form (3NF)
EXPLANATION

3NF eliminates partial and transitive dependencies, making it the standard for practical database design. BCNF is stricter but 3NF is the most commonly implemented normalization form.

Take Test
Q.4 Easy Computer Knowledge Database/SQL
In SQL, what does the GROUP BY clause do?
A Joins multiple tables
B Aggregates rows into groups based on specified columns
C Deletes duplicate records
D Orders results alphabetically
Correct Answer:  B. Aggregates rows into groups based on specified columns
EXPLANATION

GROUP BY groups rows with identical values in specified columns, used with aggregate functions like COUNT(), SUM().

Take Test
Q.5 Easy Computer Knowledge Database/SQL
What is the main advantage of cloud computing's elasticity?
A Lower initial hardware cost
B Automatic resource scaling based on demand
C Guaranteed 100% uptime
D Elimination of all security risks
Correct Answer:  B. Automatic resource scaling based on demand
EXPLANATION

Elasticity allows automatic resource provisioning and de-provisioning based on real-time demand, reducing costs.

Take Test
Advertisement
Q.6 Easy Computer Knowledge Database/SQL
Which data structure is best for implementing a priority queue in heapsort algorithm?
A Stack
B Queue
C Heap
D Array
Correct Answer:  C. Heap
EXPLANATION

A heap (min-heap or max-heap) efficiently supports priority queue operations with O(log n) insertion and deletion.

Take Test
Q.7 Easy Computer Knowledge Database/SQL
In database indexing, which structure provides O(log n) search complexity?
A Linear search
B B-Tree
C Hash table with collision
D Linked list
Correct Answer:  B. B-Tree
EXPLANATION

B-Tree maintains balanced structure ensuring O(log n) search, insert, and delete operations, commonly used in databases.

Take Test
Q.8 Easy Computer Knowledge Database/SQL
Which SQL JOIN returns only matching records from both tables?
A INNER JOIN
B LEFT JOIN
C RIGHT JOIN
D FULL OUTER JOIN
Correct Answer:  A. INNER JOIN
EXPLANATION

INNER JOIN returns only the records that have matching values in both tables, filtering out non-matching rows.

Take Test
Q.9 Easy Computer Knowledge Database/SQL
Which cryptographic algorithm is currently recommended by NIST for symmetric encryption?
A DES (Data Encryption Standard)
B AES (Advanced Encryption Standard)
C MD5
D SHA-1
Correct Answer:  B. AES (Advanced Encryption Standard)
EXPLANATION

AES is the current NIST standard for symmetric encryption with key sizes of 128, 192, or 256 bits. DES is deprecated due to weak key size.

Take Test
Q.10 Easy Computer Knowledge Database/SQL
What is the purpose of the COMMIT statement in SQL transactions?
A To undo all pending changes
B To save all changes made during a transaction permanently to the database
C To create a new transaction
D To delete committed records
Correct Answer:  B. To save all changes made during a transaction permanently to the database
EXPLANATION

COMMIT saves all changes made during the current transaction to the database permanently. Until COMMIT, changes can be rolled back using ROLLBACK.

Take Test
IGET
iget AI
Online · Ask anything about exams
Hi! 👋 I'm your iget AI assistant.

Ask me anything about exam prep, MCQ solutions, study tips, or strategies! 🎯
UPSC strategy SSC CGL syllabus Improve aptitude NEET Biology tips