PRIMERS-1 Past Paper PDF
Document Details
Uploaded by BeauteousEarth
Tags
Summary
This document contains programming questions, testing, and design questions for a computer science curriculum, potentially for an undergraduate level course.
Full Transcript
Predict the output for the given pseudo code snippet SET count = 1 WHILE count less than or equal to 5 print "Hello, world" count = count+1 END WHILE Prints “Hello, world” 5 times At which level of testing the non functional requirements are tested? System Testing Consider a scenario: You have wri...
Predict the output for the given pseudo code snippet SET count = 1 WHILE count less than or equal to 5 print "Hello, world" count = count+1 END WHILE Prints “Hello, world” 5 times At which level of testing the non functional requirements are tested? System Testing Consider a scenario: You have written a code to display a menu on the screen and some operations are performed based on the given user input. Which control structure would you use, so that the menu is guaranteed to show display at least once on the screen, before performing the operation. Do-While Which two phases of Feature Driven Development are repeated until no more features exixst? a. Develop an overall Model b. Plan By Feature c. Design By Feature d. Build a Features List e. Build By Feature What does public Boolean lookingAt() method do? Attempts to match the pattern partially or fully in the matcher A primary key can have NULL values. State True or False. False Name the type of join used to include rows that do not have matching values. Outer Join Meta data is described as ______ in SQL? Data Information ____ is a conceptual teamwork where software is developed in iterations Agile Many ____ are delivered in an agile process Builds Expand DSDM Dynamic System Development Method Which of the following are features of BitBucket? Code Review, Pipelines, Build Integrations, Jira Software Integrations, Trello Boards, Different Views, Projects, IDE Integration Trello Boards, Different Views In Code Phase, requirements and feedback are gathered from customers and stakeholders False Which plugins are the appropriate functionally plugins used in multibranch pipelines for validating the pull or charge requests a. Github Branch Source b. Github Main Source c. BitBucket Branch Source d. BitBucket Main Source Predict the output What will be the output for the given code snippet startprogram public class Main{ public static void main(String] args){ int a = 10; for (int i=3; i>=0;i--) try{ System.out.println(a/i); System.out.printing ("End of try") ; } catch (ArithmeticException e) { System.out.println(e); } } } endprogram 3 End of try 5 End of try 10 End of try java.lang.Arithmetic Exception: / by zero Predict the output What will be the output for the given code snippet startprogram public class Main{ public static void main(String[] args){ int[] m = new int; System.out.println("m is “ +m); } } endprogram Ans: 0 Predict the output What will be the output for the given code snippet startprogram public class Main{ public static void main(String args[]) { int arr[][] = new int[]; arr = new int; arr= new int; arr= new int; int sum = 0; for(int i=0; i