Question: Newgen Software | Recent Online Assessment(OA) questions and answers 2026 | Core CS & Programming Questions | the Newgen oa Round | CS Fundamentals from Dec 6th
0
Entering edit mode

Question 1: Shortest Path Algorithms

Which of the below given techniques is/are used to calculate the shortest path?

I) Dijkstra's algorithm

II) Floyd warshall algorithm

III) Bellman ford algorithm

  • Only (I)

  • Only (I) and (II)

  • All (I), (II) and (III)

  • Only (II) and (III)

Question 2: Recursive Function Output

Consider the following function definition:

int sum(int n) {
    if (n == 0)
        return 0;
    else
        return n + sum(n-1);
}

What is the output if the function were called with the statement a = sum(-1)?

  • Program Crashes

  • 1

  • 0

  • None of the above

Question 3:What is one advantage of using the concurrent development model for the software teams?

  • Focus only on communication activities, and use a linear development methodology

  • None of the provided options

  • Allows representation of concurrent elements in any process models, facilitating parallel development activities

  • Eliminate the need for iterative development

Question 4:  What is the main objective of Object-Oriented Hypermedia Design Method's conceptual design phase for developing a web application?

  • Putting the web application into action

  • Avoiding frequent server restarts

  • Class diagrams and aggregation creation

  • Recognizing navigational landmarks

Question 5:What is the purpose of setting the execution policy in PowerShell?

  • To allow or restrict the execution of PowerShell scripts. 

  • To specify the output format for PowerShell commands.

  • To define the default parameters for executing PowerShell commands.

  • To restrict access to certain PowerShell cmdlets and features.

Question 6:The number of cross-points needed for 10 lines in a cross-point switch which is full duplex in nature and there are no self connection is:

  • 100

  • 90 

  • 45

  • 50

ADD COMMENTlink 8 days ago Sarthak • 10
0
Entering edit mode

Answer 1: Shortest Path Algorithms

  • Correct Answer: All (I), (II) and (III)
  • Explanation: All three are standard algorithms for finding shortest paths in a graph. Dijkstra's and Bellman-Ford calculate single-source shortest paths, while Floyd-Warshall calculates all-pairs shortest paths.

Answer 2: Recursive Function Output

  • Correct Answer: Program Crashes
  • Explanation: The base case for the recursive function is exactly n == 0. If you pass -1, the function bypasses the base case and calls sum(-2), which calls sum(-3), and so on indefinitely. This infinite recursion will eventually cause a stack overflow and crash the program.

Answer 3: Concurrent Development Model

  • Correct Answer: Allows representation of concurrent elements in any process models, facilitating parallel development activities
  • Explanation: The concurrent development model (often called concurrent engineering) is designed to allow different phases of software development to happen simultaneously, rather than strictly sequentially, which speeds up the development process.

Answer 4: Object-Oriented Hypermedia Design Method (OOHDM)

  • Correct Answer: Class diagrams and aggregation creation
  • Explanation: The first phase of OOHDM is Conceptual Design, which focuses on building a structural model of the application domain using standard object-oriented principles, such as defining classes, relationships, and aggregations.

Answer 5: PowerShell Execution Policy

  • Correct Answer: To allow or restrict the execution of PowerShell scripts.
  • Explanation: The execution policy is a safety feature in PowerShell that controls the conditions under which configuration files are loaded and scripts are run, helping to prevent the execution of malicious code.

Answer 6: Cross-point switch

  • Correct Answer: 45
  • Explanation: In a full-duplex system where any two lines can communicate in both directions using a single connection, and there are no self-connections, the number of unique pairs (cross-points) for N lines is calculated using the formula Answer-: N(N-1)/2 
  • Answer. For 10 lines, this is Answer-: {10*9}/2 = 45

 

ADD COMMENTlink 8 hours ago admin 1.9k

Login before adding your answer.

Similar Posts
Loading Similar Posts