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