






































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The CertiPort Software Development Ultimate Exam is an advanced preparation program focused on software development principles, programming logic, application design, debugging, and coding best practices. This exam preparation resource helps candidates strengthen their understanding of programming languages, algorithms, object-oriented concepts, software testing, and development workflows. It includes practice questions, coding scenarios, and real-world problem-solving exercises to support success in software development certification exams.
Typology: Exams
1 / 46
This page cannot be seen from the preview
Don't miss anything!







































Question 1. Which memory area is used for static allocation of variables that exist for the lifetime of a program? A) Heap B) Stack C) Register D) Cache Answer: B Explanation: The stack stores static (fixed-size) allocations such as local variables whose lifetime is limited to the block in which they are declared. Question 2. In most programming languages, what is the size (in bytes) of a standard 32-bit integer? A) 2 B) 4 C) 8 D) 16 Answer: B Explanation: A 32-bit integer occupies 4 bytes (32 bits ÷ 8 bits per byte). Question 3. Which of the following statements correctly represents a switch (select case) construct in C# for handling integer values 1-3? A) if (x == 1) … else if (x == 2) … else if (x == 3) … B) switch (x) { case 1: … break; case 2: … break; case 3: … break; default: … } C) select (x) { when 1: … when 2: … when 3: … } D) choose (x) { option 1: … option 2: … option 3: … } Answer: B Explanation: C# uses the switch keyword with case labels and a break to exit each case. Question 4. Which Boolean expression is equivalent to the truth table where the result is true only when both inputs are true?
Answer: D Explanation: The logical AND (&& or AND) yields true only when both operands are true. Question 5. In a flowchart, which symbol typically represents a decision point? A) Oval B) Rectangle C) Diamond D) Parallelogram Answer: C Explanation: A diamond shape denotes a decision where the flow branches based on a condition. Question 6. Which loop guarantees that its body executes at least once before the condition is tested? A) for B) while C) do-while D) foreach Answer: C Explanation: A do-while loop evaluates its condition after the first execution of the loop body. Question 7. What is the base case in a recursive factorial function? A) n = 0 returns 0 B) n = 1 returns 1
Answer: A Explanation: The new operator allocates memory and calls the constructor to instantiate an object. Question 11. In object-oriented design, which relationship best describes “a Cat is a Animal”? A) Association B) Aggregation C) Composition D) Inheritance Answer: D Explanation: “Is-a” denotes inheritance; Cat derives from the base class Animal. Question 12. Which access modifier allows a member to be accessed only within its own class and derived classes in the same assembly? A) public B) private C) protected internal D) internal Answer: C Explanation: protected internal permits access from derived classes and any code in the same assembly. Question 13. What is method overloading? A) Redefining a method in a subclass with a different implementation. B) Declaring multiple methods with the same name but different parameter lists. C) Hiding a base class method with the new keyword. D) Executing a method asynchronously. Answer: B
Explanation: Overloading provides several signatures for the same method name, distinguished by parameters. Question 14. Which of the following best defines an interface in OOP? A) A class that cannot be instantiated. B) A contract that specifies method signatures without implementation. C) A data structure for storing key-value pairs. D) A special type of constructor. Answer: B Explanation: An interface declares members that implementing classes must define, without providing code. Question 15. In the Software Development Lifecycle, which phase follows “Design”? A) Planning B) Development C) Testing D) Maintenance Answer: B Explanation: After design, developers write code during the Development phase. Question 16. Which methodology emphasizes delivering working software in short, time-boxed iterations? A) Waterfall B) V-Model C) Agile Scrum D) Spiral Answer: C Explanation: Agile Scrum uses sprints (iterations) to produce incremental, functional software.
Question 20. Which sorting algorithm has an average-case time complexity of O(n log n) and uses a divide-and-conquer approach? A) Bubble Sort B) Insertion Sort C) Quick Sort D) Selection Sort Answer: C Explanation: Quick Sort partitions the array recursively, achieving O(n log n) on average. Question 21. In Git, which command records changes to the repository after they have been staged? A) git add B) git commit C) git push D) git merge Answer: B Explanation: git commit creates a new commit from the staged snapshot. Question 22. Which HTML element is used to create a drop-down list of options? A) B) C) `
A) margin B) padding C) border-spacing D) gap Answer: B Explanation: padding adds space inside the element’s border. Question 24. In JavaScript, which keyword declares a block-scoped variable that cannot be reassigned? A) var B) let C) const D) static Answer: C Explanation: const creates a read-only reference; the variable cannot be reassigned after initialization. Question 25. What HTTP method is traditionally used to retrieve data without causing side effects? A) POST B) PUT C) DELETE D) GET Answer: D Explanation: GET requests are safe and idempotent, used for reading resources. Question 26. Which of the following best describes a session in web development? A) A small file stored on the client’s hard drive.
D) DockPanel Answer: C Explanation: StackPanel stacks children either vertically or horizontally. Question 30. In a console application, which method reads a line of text entered by the user? A) Console.WriteLine() B) Console.Read() C) Console.ReadLine() D) Console.Input() Answer: C Explanation: Console.ReadLine() captures the entire line until the Enter key. Question 31. Which type of Windows Service starts automatically when the operating system boots? A) Manual B) Disabled C) Automatic D) On-Demand Answer: C Explanation: An Automatic startup type launches the service during boot. Question 32. In relational databases, what does a foreign key enforce? A) Uniqueness of a column within its own table. B) Automatic generation of sequential numbers. C) Referential integrity between two tables. D) Encryption of data at rest. Answer: C Explanation: A foreign key ensures that values correspond to primary key values in a related table.
Question 33. Which normal form eliminates repeating groups and ensures that each column contains atomic values? A) First Normal Form (1NF) B) Second Normal Form (2NF) C) Third Normal Form (3NF) D) Boyce-Codd Normal Form (BCNF) Answer: A Explanation: 1NF requires atomic (indivisible) values and no repeating groups. Question 34. Which SQL command is used to change the structure of an existing table by adding a new column? A) INSERT B) ALTER TABLE … ADD COLUMN C) UPDATE D) CREATE COLUMN Answer: B Explanation: ALTER TABLE table_name ADD COLUMN column_definition; modifies the table schema. Question 35. Which clause in a SELECT statement filters rows after grouping has been performed? A) WHERE B) HAVING C) ORDER BY D) GROUP BY Answer: B Explanation: HAVING works with aggregate functions and applies conditions to grouped rows.
Question 39. In C#, which keyword allows a derived class to provide a new implementation of a method that is not declared virtual in the base class? A) override B) virtual C) new D) abstract Answer: C Explanation: The new keyword hides the base class member, creating a separate implementation. Question 40. Which design principle states that a class should have only one reason to change? A) Open/Closed Principle B) Liskov Substitution Principle C) Single Responsibility Principle D) Interface Segregation Principle Answer: C Explanation: The Single Responsibility Principle (SRP) limits a class to a single responsibility. Question 41. Which Agile artifact represents a prioritized list of work items for a sprint? A) Product backlog B) Sprint backlog C) Burndown chart D) Definition of Done Answer: B Explanation: The sprint backlog contains tasks selected for the current iteration. Question 42. In a RESTful API, which HTTP status code indicates that a request was successful and a new resource was created?
B) 201 Created C) 202 Accepted D) 204 No Content Answer: B Explanation: 201 Created signals that the server has fulfilled the request and a new resource exists. Question 43. Which JSON data type can represent a list of values? A) Object B) Array C) String D) Number Answer: B Explanation: JSON arrays are ordered collections of values. Question 44. Which Java keyword is used to prevent a class from being subclassed? A) final B) static C) sealed D) abstract Answer: A Explanation: Declaring a class as final stops inheritance. Question 45. In Python, what is the result of the expression bool([])? A) True B) False C) Raises TypeError
Explanation: Interfaces allow unrelated classes to share a common contract, enabling polymorphic behavior. Question 49. In Git, what does the command git rebase primarily do? A) Merge two branches preserving both histories. B) Apply commits from one branch onto another, rewriting history. C) Create a new branch from the current HEAD. D) Delete the current branch. Answer: B Explanation: git rebase moves a series of commits to a new base commit, creating a linear history. Question 50. Which HTML attribute specifies the URL of the resource to link to? A) src B) href C) action D) data-url Answer: B Explanation: The href attribute of the `` tag defines the destination URL. Question 51. Which CSS selector matches any element with the class “error”? A) #error B) .error C) error D) error Answer: B Explanation: A period (.) precedes a class name in CSS selectors. Question 52. In JavaScript, which method converts a JSON string into a native object?
A) JSON.stringify() B) JSON.parse() C) JSON.toObject() D) JSON.decode() Answer: B Explanation: JSON.parse() parses a JSON-formatted string into an object. Question 53. Which HTTP header is used by browsers to send cookies to the server? A) Set-Cookie B) Cookie C) Authorization D) Cache-Control Answer: B Explanation: The Cookie request header carries stored cookies back to the server. Question 54. Which type of testing is performed by end users to verify that the system meets business requirements? A) Unit testing B) Integration testing C) System testing D) User Acceptance Testing (UAT) Answer: D Explanation: UAT validates the system from the user’s perspective against agreed requirements. Question 55. Which algorithmic technique repeatedly divides a problem into two halves, solves each half, and then merges the results? A) Dynamic programming B) Greedy algorithm
Explanation: ORDER BY arranges rows based on one or more columns. Question 59. In a client-server model, which component typically handles business logic? A) Browser B) Database server C) Application server D) Load balancer Answer: C Explanation: The application server processes business rules and coordinates data access. Question 60. Which of the following is a non-functional requirement? A) The system must allow users to reset passwords. B) The system shall respond to any request within 2 seconds. C) The system must generate monthly invoices. D) The system shall store user profiles in a relational database. Answer: B Explanation: Response time is a performance (non-functional) requirement. Question 61. Which of the following is a characteristic of a “queue” data structure? A) Elements are accessed in LIFO order. B) Insertion occurs at the rear, removal at the front. C) Random access is O(1). D) It is implemented using a binary tree. Answer: B Explanation: Queues follow FIFO (First-In-First-Out) semantics. Question 62. Which of the following sorting algorithms is stable by default?
A) Quick Sort B) Heap Sort C) Merge Sort D) Selection Sort Answer: C Explanation: Merge Sort preserves the relative order of equal elements, making it stable. Question 63. In C#, which construct ensures that a block of code executes whether or not an exception occurs, and also allows handling of the exception? A) try … catch … finally B) catch … finally C) try … finally D) using … finally Answer: A Explanation: try encloses risky code, catch handles exceptions, and finally runs regardless. Question 64. Which of the following best describes “tight coupling” between two classes? A) They communicate only through interfaces. B. One class directly accesses the private members of the other. C) They are loosely dependent on each other’s implementations. D) They share a common base class. Answer: B Explanation: Tight coupling means a class depends heavily on another’s internal details, reducing modularity. Question 65. Which of the following is a benefit of using continuous integration (CI) in software projects? A) Eliminates the need for unit tests.