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