NSCT 5 YEARS PAST PAPERS
5 Years Past Papers
You can get here the previous 5 years' papers
of NSCT jobs for test preparations.
چار آپشن میں سے کسی ایک پر کلک کرنے سے جواب سرخ ہو جائے گا۔
- Match between system and real world
- User control and freedom
- Consistency and standards
- Aesthetic and minimalist design
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
User control and freedom allows users to undo or redo actions.
It helps users recover from mistakes without severe consequences.
- Easier to implement
- Violates interface segregation principle
- Improves performance
- No effect
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
The Interface Segregation Principle (ISP) states that clients should not be forced to depend on methods they do not use.
If an interface has too many unrelated methods, it becomes difficult to implement and maintain.
Clients may be forced to implement methods that are irrelevant to them.
- Ignores negative edges
- Finds shortest paths even with negative edges
- Converts negative edges to zero
- Throws an error
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
The Floyd–Warshall algorithm computes shortest paths between all pairs of vertices.
It supports negative edge weights, as long as there are no negative cycles.
Negative cycles make the shortest path undefined, which Floyd–Warshall can detect.
- Under budget and ahead of schedule
- Over budget and behind schedule
- On budget and on schedule
- Cannot determine
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Actual Cost (AC) measures money spent so far.
Earned Value (EV) measures the value of work actually completed.
If AC > EV, the project is spending more than the value earned → over budget.
If EV is low, less work is completed than planned → behind schedule.
- Optimization
- Reduce memory loss
- Code reusability (generic programming)
- Memory allocation
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Templates in C++ allow writing generic functions or classes.
They enable the same code to work with different data types without rewriting it.
This improves code reusability and maintainability.
Templates are not directly about memory optimization or allocation.
Example: template <typename T> T add(T a, T b) works for int, float, or double.
- A
- B
- C
- E
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
The traveler starts at city A and follows the path: A → B → C → D → E → A.
The journey ends back at city A to complete the circuit.
All other cities (B, C, D, E) are visited only once.
Returning to the starting point is typical in circular routes or tours.
Therefore, city A is visited twice.
- HTML
- CSS
- Python
- JavaScript
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Server-side rendering (SSR) generates HTML on the server before sending it to the client.
Python (with frameworks like Django or Flask) can render templates on the server.
JavaScript can also do SSR (e.g., with Node.js), but in this option, Python is the server-side language.
HTML and CSS are used for structure and styling, not server-side logic.
SSR improves initial page load speed and SEO.
- $1000
- $1500
- $2000
- $2500
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Profit = Revenue − Cost
Revenue = $5000, Cost = $3500
Profit = 5000 − 3500 = 1500
- To store variables
- To group identifiers and avoid name conflicts
- To create new functions
- To allocate memory
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
- A namespace in C++ is used to organize code into logical groups.
- It helps avoid name conflicts when different parts of code use the same names.
- For example, two libraries can have functions with the same name but in different namespaces.
- The std namespace (e.g., std::cout) is a common example.
- Namespaces improve code clarity and maintainability.
- DELETE
- DROP
- TRUNCATE
- REMOVE
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
TRUNCATE removes all rows from a table but keeps the table structure intact.
It is faster than DELETE because it does not log individual row deletions.
DELETE can remove specific rows and can be rolled back.
DROP deletes the entire table structure and data.
REMOVE is not a valid SQL command.