Free Logical Problems MCQs with Answers
520 Logical Problems MCQs from Analytical and Logical Reasoning, each with the correct answer and a written explanation of why it is correct. Free and unlimited, with no account needed.
Logical problems present several conditions about people, objects, events or choices and require their possible arrangements to be tested. They cover constraint-based reasoning, rankings, matching, grouping, scheduling and elimination, with attention to the difference between a complete solution and a possibility that merely satisfies one condition.
Last updated
Read the Logical Problems notesFree MDCAT chapter notes with key terms520 questions · page 22 of 26
- A. Only I
- B. Only ll and III
- C. Only I and II
- D. None of these
Explanation: The explanation for this question will be given later.
Correct answer: Only I- A. Only II and IV
- B. None of these
- C. Only II
- D. Only I and III
Explanation: The explanation for this question will be given later.
Correct answer: None of these- A. Library
- B. Custom made
- C. user defined
- D. customized
Explanation: he answer is (C) user defined.Built-in functions (incorrect) are the correct terminology. They are pre-written functions that come with the C library and can be used without writing any additional code. Examples include common mathematical functions like sqrt and printf for formatted output
Correct answer: user defined- A. Signature
- B. Function call
- C. Function definition
- D. Function routine
Explanation: The signature of a function specifies the function's name, the number, and data types of its parameters (if any), and the data type of the value it returns (if any). It essentially describes what the function does and what it expects as input and output.
Correct answer: Signature- A. Entity
- B. Report
- C. Query
- D. Screen
Explanation: A database report is the formatted result of database queries and contains useful data for decision making and analysis.
Correct answer: Report- A. Report Write
- B. Reporter
- C. Report Builder
- D. Report Generator
Explanation: A report generator is used to generate reports. It retrieves data from database and displays in different formats.
Correct answer: Report Generator- A. Indexes
- B. Integrity constraint
- C. File organization
- D. Data distribution strategy
- E. Cottoning
Explanation: Integrity constraints are database rules that enforce data accuracy and consistency. They ensure that the data in a database adheres to specific business rules and remains reliable. There are various types of integrity constraints, including primary key constraints, foreign key constraints, and check constraints.
Correct answer: Integrity constraint- A. Fail
- B. Pass
- C. Fail pass
- D. Syntax error
Explanation: Now, let's analyze the code logic:If/else statement)The value of grade is 'c'.The condition grade == 'a' || grade == 'b' && grade == 'A' will evaluate to false because grade is not 'a' or 'b'.Therefore, the else block will execute, printing "Pass".So, the correct output is:(b) Pass
Correct answer: Pass- A. 3NF
- B. 2NF
- C. Both (a) and (b)
- D. BCNF
Explanation: First Normal Form (1NF): A relation is in 1NF if all its underlying domains contain atomic values (indivisible units of data) and there are no repeating groups within a table.Second Normal Form (2NF): A relation is in 2NF if it fulfills the conditions of 1NF and also eliminates partial dependencies. A partial dependency exists when a non-key attribute relies on only a part of the composite primary key.Why a single-attribute key guarantees 2NF:When a relation has a single attribute as its primary key, there's no possibility of partial dependencies. By definition, a partial dependency involves a non-key attribute depending on a subset of the primary key. With a single-key attribute, there are no subsets to be dependent on. Therefore, the relation inherently satisfies the requirement for 2NF
Correct answer: 2NF- A. a
- B. not a
- C. a not a
- D. Compile the error Here's what happens:The variable ch is initialized with the character 'a'.The switch statement checks the value of ch.Since ch is 'a', it matches the case 'a' and executes printf("a");.However, there is no break statement after the first case, so the control falls through to the default case.As a result, it also executes printf("not a");.So, the correct output is:(c) a not a
Explanation: Compile the error Here's what happens:The variable ch is initialized with the character 'a'.The switch statement checks the value of ch.Since ch is 'a', it matches the case 'a' and executes printf("a");.However, there is no break statement after the first case, so the control falls through to the default case.As a result, it also executes printf("not a");.So, the correct output is:(c) a not a
Correct answer: a not a- A. Command line
- B. System interface
- C. Design interface
- D. All of the above
Explanation: Design interface is not a user interface but rather a design field focused on the creation of user interfaces. User interfaces are how users interact with a system, while design interfaces refer to the process of designing those interfaces
Correct answer: Design interface- A. Control who is allowed access to the data
- B. Ensure that duplicate records are not entered into the table
- C. Prevent users from changing the values stored in the table
- D. Improve the quality of data entered for a specific property (i.e., table column)
Explanation: The correct answer is (d) Improve the quality of data entered for a specific property (i.e., table column). Data integrity constraints are rules that enforce specific conditions on the data in a database table. These constraints help to ensure that the data is accurate, consistent, and reliable. In conclusion, data integrity constraints are primarily used to improve the quality of data entered into a database table.
Correct answer: Improve the quality of data entered for a specific property (i.e., table column)- A. Splitting
- B. Partitioning
- C. Replication
- D. Dividing
Explanation: Replication is a method of database distribution where a complete copy or a subset of data from one database is maintained in another database. This can be useful for a number of reasons, such as:Improving performance: By replicating data to a geographically distributed location, users can access the data from a closer server, which can improve performance.Increasing availability: If one database server fails, users can still access the data from another replica.Load balancing: Replication can be used to distribute the load of reading and writing data across multiple servers.
Correct answer: Replication- A. 1
- B. 3
- C. 2
- D. 4
Explanation: void main (void) // Error 1: It's preferable to use 'int main(void)' instead of 'void main(void)'.{ int x= 10;if (x > 5 && < 15) // Error 2: Incomplete expression after '&&', missing the variable to compare with 15. printf ("x is valid"); // Error 3: Missing semicolon at the end of the statement.elseprintf ("invalid"); // Error 4: Missing semicolon at the end of the statement.}//////int main(void) { int x = 10; if (x > 5 && x < 15) { printf("x is valid"); } else { printf("invalid"); } return 0; // Added return statement
Correct answer: 4- A. \t
- B. \v
- C. \n
- D. \f
Explanation: \f (form feed): This escape code was originally intended to move the printer paper to the next form. In modern contexts, it is not widely supported and its behavior is not well-defined. While technically all the listed options are escape sequences, \f is not commonly used and its behavior may vary depending on the system.
Correct answer: \f- A. Signature
- B. Function call
- C. Function definition
- D. Function routine
Explanation: The function signature specifies the function's name, the number and data types of its parameters (arguments), and the data type of the value it returns (or void if it doesn't return a value). It essentially acts as a blueprint for how to call the function and what to expect from it.
Correct answer: Signature- A. Name properties of the file
- B. status properties of the file
- C. current position of the file pointer
- D. All of these
Explanation: A file pointer is a variable that stores the memory address of the first byte of data in a file. It allows you to access and manipulate the contents of the file.File pointers can be used to:In summary, a file pointer in C can be used to access all of the above properties: name, status, and current position.Note: The specific ways to access these properties will depend on the particular programming language and file I/O library being used
Correct answer: All of these- A. Ahmad
- B. John
- C. Drake
- D. Cannot elicit from given information
Explanation: Ahmad is the one who saw Drake, as Drake was wearing brown shoes.
Correct answer: Ahmad- A. One month and that is February
- B. February, every 4 years
- C. All months have 28 days
- D. None
Explanation: This question requires logical deduction. While some months have 31 days, and February typically has 28 or 29 days, the question asks how many months have at least 28 days. The correct answer is all 12 months, as every month has at least 28 days.
Correct answer: All months have 28 days- A. South
- B. West
- C. North
- D. East
Explanation: A right turn from north points directly east. The distance walked does not change the direction he faces after turning.
Correct answer: East