Pattern Recognition & Generalization MCQs

Topic-wise practice questions for Problem Solving & Analytical Skills. Test your knowledge, check solutions on demand, and pace your preparation.

Zero-leak answer engine • Rate-limited explanations
Practice in Timed Mode
Q11hard
(Code Output / Logic) Trace the pattern in this sequence of numbers: 1, 1, 2, 3, 5, 8, 13.... What is the generalized rule to find the next number N?
Q12medium
An antivirus software recognizes a new virus because its binary code contains a sequence of instructions very similar to an older, known piece of malware. This detection method is primarily based on:
Q13hard
(Code Output / Regex) A system uses a Regular Expression (Regex) to recognize a specific pattern in user-submitted filenames. The pattern is: ^[a-zA-Z]+[0-9]{2}$. Which of the following strings will be recognized (matched) by this pattern?
Q14medium
A programmer observes that every time they use a "Bubble Sort" on a nearly sorted array, it runs very quickly. They conclude: "Bubble Sort is efficient for nearly sorted data." This type of logical reasoning is:
Q15medium
You are analyzing 1,000 log files to find "Unauthorized Login" attempts. You notice that all such attempts originate from an IP range 192.168.1.x and occur between 2 AM and 4 AM. Creating a firewall rule based on this is:
Q16hard
A developer creates a "Universal Database Connector" that handles SQL, NoSQL, and CSV files all in one massive function. Later, they find that changing one SQL parameter breaks the CSV logic. This is a classic example of:
Q17easy
When we say a problem-solving strategy is "Deductive," we mean:
Q18hard
A developer notices that the code for "Validate User Phone Number," "Validate User Zip Code," and "Validate User ID" all involve checking if a string consists only of digits of a specific length. The developer decides to write one function isValidNumeric(input, length). This is an example of: