Read each question, consider the options, then reveal the correct answer and explanation.
100 MCQs10 per page6 of 10
MCQ 51Web Technologies
What is the purpose of the PHP 'named arguments' feature (introduced in PHP 8.0)?
To permanently disable positional arguments
A synonym for variadic arguments
To allow function or method arguments to be passed by explicitly specifying the parameter name, rather than relying solely on their positional order, improving readability and allowing optional parameters to be skipped
A feature used only for constructors
Correct answerC — To allow function or method arguments to be passed by explicitly specifying the parameter name, rather than relying solely on their positional order, improving readability and allowing optional parameters to be skipped
Explanation
Named arguments allow a function call to explicitly specify which parameter each value corresponds to by name, rather than relying strictly on positional order, improving readability and making it easier to skip earlier optional parameters when calling functions with several defaults.
MCQ 52Computer Networks
What is the purpose of 'network path MTU black hole' detection?
To permanently block all traffic on a path
A synonym for standard packet loss
A technique used only for wireless networks
To identify situations where oversized packets are silently dropped along a path (because ICMP 'fragmentation needed' messages are blocked), rather than triggering the expected Path MTU Discovery feedback
Correct answerD — To identify situations where oversized packets are silently dropped along a path (because ICMP 'fragmentation needed' messages are blocked), rather than triggering the expected Path MTU Discovery feedback
Explanation
A 'black hole' occurs when a firewall or router blocks the ICMP messages that Path MTU Discovery relies on, causing oversized packets to be silently dropped without the sender ever being informed to reduce packet size, resulting in mysterious connectivity failures for certain traffic.
MCQ 53Oop & Uml
Which of the following best describes the purpose of the 'Specification Pattern' combined with the 'Repository' pattern for building flexible, reusable database queries?
To restrict a repository to returning only a single hardcoded query
To physically merge the repository and database into one class
To encapsulate query criteria as composable Specification objects that a Repository can accept, allowing complex, reusable query logic to be built and combined without the repository needing a separate method for every possible query variation
A pattern used only for validating user input forms
Correct answerC — To encapsulate query criteria as composable Specification objects that a Repository can accept, allowing complex, reusable query logic to be built and combined without the repository needing a separate method for every possible query variation
Explanation
Combining the Specification pattern with a Repository allows query criteria to be encapsulated as composable, reusable Specification objects passed into repository methods, avoiding the need for a proliferation of highly specific repository methods for every possible query variation.
MCQ 54System Analysis And Design
Which of the following best describes the purpose of a 'maturity model', such as CMMI, in software process improvement?
To provide a structured framework describing progressively more mature and optimized organizational processes, helping organizations assess and improve their practices
To measure the age of a software product
A synonym for a project charter
A model used only for hardware certification
Correct answerA — To provide a structured framework describing progressively more mature and optimized organizational processes, helping organizations assess and improve their practices
Explanation
A maturity model, such as CMMI (Capability Maturity Model Integration), provides a structured framework of progressively more advanced process levels, helping organizations assess their current practices and identify areas for improvement toward greater consistency and effectiveness.
MCQ 55Oop & Uml
What is the purpose of 'polymorphic collections' in object-oriented programming, such as a list of a base type holding various subclass instances?
To allow a single collection to store and uniformly process objects of different subclasses that share a common base type or interface
To restrict a collection to holding only one exact type
A synonym for a static array
A concept used only for primitive data types
Correct answerA — To allow a single collection to store and uniformly process objects of different subclasses that share a common base type or interface
Explanation
Polymorphic collections allow objects of various subclasses (sharing a common base type or interface) to be stored together in a single collection and processed uniformly, with the correct subclass-specific behavior invoked automatically through polymorphism when methods are called.
MCQ 56Database Pl/sql
What is the purpose of a 'transaction log' (or write-ahead log) backup, as distinct from a full database backup?
To permanently discard all transaction history
A synonym for a full database backup with no distinction
To back up only the record of changes made since the last backup, allowing point-in-time recovery when combined with a full backup, while requiring less storage and time than repeated full backups
A technique used only for read replicas
Correct answerC — To back up only the record of changes made since the last backup, allowing point-in-time recovery when combined with a full backup, while requiring less storage and time than repeated full backups
Explanation
A transaction log backup captures only the changes recorded in the log since the previous backup, allowing for more frequent, space-efficient backups and enabling point-in-time recovery when combined with a base full backup, without needing to repeatedly back up the entire database.
MCQ 57Database Pl/sql
What is the purpose of 'database connection pooling' minimum and maximum pool size settings?
To control the range of concurrent database connections maintained by the pool, balancing resource usage against the ability to handle concurrent request load
To permanently fix the number of database tables
A synonym for a query timeout setting
A technique used only for encrypting connections
Correct answerA — To control the range of concurrent database connections maintained by the pool, balancing resource usage against the ability to handle concurrent request load
Explanation
Minimum and maximum pool size settings control how many database connections a connection pool maintains, balancing the overhead of keeping idle connections open against the pool's ability to quickly serve concurrent request load without needing to constantly create new connections.
MCQ 58Computer Networks
Which of the following best describes the purpose of 'network jitter buffer sizing' trade-offs in real-time communication?
A larger buffer always eliminates all latency
Buffer size has no effect on call quality
A larger jitter buffer better smooths out variable packet arrival delay but adds more overall latency; a smaller buffer reduces latency but risks audio/video glitches from insufficient smoothing
A technique used only for file transfer protocols
Correct answerC — A larger jitter buffer better smooths out variable packet arrival delay but adds more overall latency; a smaller buffer reduces latency but risks audio/video glitches from insufficient smoothing
Explanation
Jitter buffer sizing involves a trade-off: a larger buffer better absorbs variability in packet arrival timing (reducing glitches) but adds overall latency to the call, while a smaller buffer reduces latency but risks audible glitches if packets arrive too late to be smoothed out.
MCQ 59Oop & Uml
Which of the following best describes an 'inversion of control' (IoC) container?
A physical hardware device
A synonym for a database connection pool
A framework or library that manages the creation and lifecycle of objects and their dependencies, automatically wiring them together based on configuration
A tool used only for compiling source code
Correct answerC — A framework or library that manages the creation and lifecycle of objects and their dependencies, automatically wiring them together based on configuration
Explanation
An IoC container is a framework that manages object creation and dependency wiring automatically, based on configuration or annotations, implementing the broader Inversion of Control principle where the framework controls object lifecycle rather than the application code directly.
MCQ 60Database Pl/sql
Which of the following best describes the purpose of a 'database schema-per-tenant' approach in multi-tenant application architecture?
All tenants share a single set of tables with no separation
Each tenant is given its own separate database schema, providing stronger data isolation between tenants at the cost of increased management overhead compared to a shared-schema approach
A synonym for database sharding by geographic region
A technique used only for single-tenant applications
Correct answerB — Each tenant is given its own separate database schema, providing stronger data isolation between tenants at the cost of increased management overhead compared to a shared-schema approach
Explanation
In a schema-per-tenant approach, each tenant of a multi-tenant application gets its own dedicated database schema, providing stronger data isolation and easier per-tenant customization, at the cost of higher management overhead compared to a shared-schema-with-tenant-ID approach.