AM Software Test 5 Leave a Comment / By fawadtwopointo@gmail.com / August 22, 2025 Welcome to your AM Software Test 5 Which architectural style is best suited for large-scale, distributed systems with independent modules? Layered Microservices Client-Server Microservices None In Domain-Driven Design (DDD), what does “bounded context” mean? A set of unrelated domains A software requirement A clearly defined boundary within which a model applies A class within a domain None Which process model is risk-driven? V-Model Agile Waterfall Spiral None Which software metric measures interdependence among modules? Lines of Code (LOC) Cohesion Coupling Cyclomatic complexity None What is the advantage of Continuous Integration (CI)? Eliminates testing Detects bugs earlier Delays deployment Slows down team communication None In distributed databases, which transparency ensures the system looks like a single DB? Replication transparency Fragmentation transparency Distribution transparency Transaction transparency None CAP theorem states that a distributed system can only guarantee at most two of: Cache, Access, Portability Consistency, Availability, Partition Tolerance Complexity, Availability, Performance None of these None Which concurrency control method uses timestamps? Timestamp ordering Optimistic concurrency Deadlock detection Two-phase locking None Which type of NoSQL DB is best for graph data? Document store Graph DB Column store Key-value store None In MapReduce, which phase comes first? Shuffle Join Map Reduce None Which scheduling algorithm is used in real-time systems? FCFS Priority (non-preemptive) Earliest Deadline First (EDF) Round Robin None Which page replacement algorithm uses “age bits”? NRU LRU FIFO Aging algorithm None In compilers, which phase checks type consistency?Lexical analysisLexical analysis Syntax analysis Lexical analysis Code generation Semantic analysis None Which parser is commonly used for programming languages? Top-down recursive LR(1) Greedy parser LL(1) None Just-In-Time (JIT) compilation belongs to: Static compilation Interpretation Cross compilation Hybrid compilation None Which protocol is used in DNS? UDP only ICMP Both TCP and UDP TCP only None In IPv6, how many bits are used for addressing? 2561 128 64 32 None What is the function of a firewall? Encrypt data Allocate memory Compress data Block unauthorized access None Which algorithm is used in public-key cryptography? SHA-256 RSA DES AES None Which attack involves injecting malicious SQL queries? Cross-Site Scripting (XSS) Spoofing SQL Injection Phishing None Which algorithm is used for shortest path in weighted graphs? BFS DFS Dijkstra Bellman-Ford None What is the time complexity of Merge Sort? O(n log n) O(n²) O(log n) O(n) None Which machine learning type uses labeled data? Unsupervised learning Supervised learning einforcement learning Deep learning only None In k-means clustering, what does ‘k’ represent? Number of features Number of samples Number of clusters Number of iterations None Which activation function is used in deep neural networks to avoid vanishing gradient? Sigmoid Tanh Step function ReLU None The first computer virus was named? Trojan ILOVEYOU Melissa Creeper None Pakistan’s national poet is: Ahmed Faraz Mirza Ghalib Faiz Ahmad Faiz Allama Iqbal None Antonym of “Scarce”? Small Abundant Limited Rare None Synonym of “Vigorous”? Energetic Weak Slow Calm None Who proposed the theory of relativity? Isaac Newton Nikola Tesla Albert Einstein Galileo None Time's upTime is Up!