Primer (1) - PRIMERS - Merged
Primer (1) - PRIMERS - Merged
1. If you are asked to do a modular software design, which combination of coupling and cohesions
should you use for designing the software?
2. Statement: For a logically cohesive module, there are some activities to be implemented. These
activities are preferred from inside the module itself. Is the above given statement true? If not,
choose the correct option to make it true.
3. What kind of controlled structure is used when we don’t know the exact number of times a
code needs to be executed?
a. switch
b. while
c. for
d. if-else
a. XP narrows down towards a single project developed and numbered by a single team.
b. XP will not work in environment where the manager insists on complete documentation before
the team begins to code
a. Alpha
b. beta
c. system
d. gamma
6. Which two phases of feature driven development are repeated until no more feature exist?
startprogram
try {
System.out.println(4/0);
try{
Int[] a={1,2,3};
System.out.println(a[3]);
} catch(ArrayIndexOutOfBoundsException e) {
System.out.println(“Out of bounds”);
}catch(ArthmeticException e){
endprogram
a. out of bounds ArithmaticException : divide by 0
b. runtime error
c. out of bounds
d. ArithmaticException: divide by 0
9. Arrow symbols in the flowchart is used to show the sequence of steps and the relationship
among them. State true and false
a. True
b. False
a. Inheritance
b. Encapsulation
c. Typing
d. Hierarchy
a. spaces
b. special characters
c. numerics
d. variables
a. Source
b. Operate
c. Monitor
d. Deploy
13.__________is a conceptual framework where software is developed is iterations
a. Agile
b. prototyping
c. extreme programming
d. DSDM
14. Predict the output of the following statement. Select substr(“Yellow is A colour”,1,5) from
dual;
a. Yellow
b. Yel
c. Yello
d. elow
a. domain
b. attribute
c. table
d. tuples
a. Unit testing
b. system testing
c. Integration testing
d. Acceptance testing
17. Agile methodology does not accepts change of requirements at any stage
a. True
b. False
a. primary key
b. foreign key
c. secondary key
d. compose key
19. Which of the given options are true with respect to arrays?
20. Name the type of join used to include rows that do not have matching values
a. Cartesian product
b. inner join
c. non equi-join
d. outer join
22. A primary key can have null values. State True and False.
a. True
b. False
a. Data Dictionary
b. Meta Dictionary
c. Meta Information
d. Data Information
b. Development team sends continuous code merging requests even when the testing process is
running
a. Continuous Integration
b. Continuous Development
c. Infrastructure-as-Code
d. Configuration Management
a. Spirals
b. Tracks
c. Lanes
d. Sprints
27. Raghav has developed an application to automate the billing process of the Aarvee
Departmental Store. When the product is in operation, the client found that the place of the phone
number, it prints the Customer ID. So he approaches Raghav to fix the issue. What type of
Maintenance does the above scenario depict?
a. Corrective
b. Adaptive
c. Predictive
d. Preventive
28. Consider the scenario: You have written a code to display a menu on the screen and some
operation are preformed 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.
a. for loop
b. While loop
c. Do-While loop
d. Case
29. Predict the output for the given pseudo code snippet. SET count = 1
Count = count + 1
END WHILE
30. Pinky and Raju are working on an insurance project. They are not aware of SVN. So they created
a common project on the server. Both retrieved the project from the server. They made relevant
changes to the life. First Raju saved the changes to the server. Next Pinky saved her project identify
which of the given statements are true.
b. Pinky’s changes alone are stored and when Raju tries the upload, the server notifies the
differences.
31. Statement: For a logically cohesive module, there are some activities to be implemented. These
activities are preferred from inside the module itself.
Is the above given Statement true? If not, choose the correct option to make it true.
32. does the special group or group 0 is included while coupling groups using the groupCount in
java.
a. True
b. False
33. Many_________________ are delivered in an agile process.
a. Builds
b. Software
c. Programs
d. Tests
startprogram
class Product
String productName;
String mobileName;
void display()
System.out.println(mobileName +” “ + productName);
}
class Main
obj.productName=”1”;
obj.mobileName=”2”;
obj.display();
endprogram
a. 2 2Brand New !
b. 1 2Brand New !
c. 1 1Brand New !
d. Brand New !
import java.util.Scanner;
WeightLimitExceeded(int x) {
else
for(int i=0;i<2;i++) {
try {
ob.validWeight(in.nextInt());
catch(WeightLimitExceeded e)
System.out.println(e);
}
}
a. 5kg : WeightLimitExceeded
b. NumberFormatException
c. 5kg :
Startprogram
try {
System.out.println(4 / 0);
try {
int[] a = {1,2,3};
System.out.println(a[3]);
} catch(ArrayIndexOutOfBoundsException e){
System.out.println(“Out of bounds”);
} catch (AritjmeticException e) {
endprogram
b. Runtime error
c. Out of bounds
d. AritjmeticException : divide by 0
37. Predict the output
startprogram
int a =10;
for(int i=3;1>=0;1++)
try{
System.out.println(a / i);
System.out.println(“End of try”);
catch(ArithmaticException e) {
System.out.println(e);
endprogram
a. 3
5
10
Java.lang.ArithmeticException: / by zero
b. 3
End of try
5
End of try
10
End of try
Java.lang.ArithmeticException: / by zero
c. Compiletimeerror
d.runtimeerror
Startprogram
Import java.util.regex;
String s=”ABC”;
Pattern p=Pattern.compile(s);
String r=”ABCABCABCABC”;
Matcher m=p.matcher(r);
System.out.println(m.lookingAt());
endprogram
a. true
b. false
c. ABC
d. 0
startprogram
Import java.util.regex;
Pattern p=Pattern.compile(“\\d”);
String test=”India123”;
Matcher m=p.matcher(test);
If(m!null)
System.out.println(m.find());
System.out.println(m.matches());
endprogram
a. true
true
b. false
true
c. true
false
d. false
false
startprogram
int n=6;
n = arr[arr[n] / 2];
System.out.println(arr[n] / 2);
endprogram
a. 2
b. 1
c. 6
d. 0
}
}
(d.) None
import java.util.regex.*;
String s="REGULAREXPRESSION";
String r="";
s=s.replaceAll(r,",");
System.out.println(s);
(a.) ,R,E,G,U,L,A,R,E,X,P,R,E,S,S,I,O,N,
(b.) REGULAREXPRESSION
(c.) None
(d.) All
import java.util.Scanner;
System.out.println(10/a);
int[] arr={1,2,3};
System.out.println(arr[b]);
{
Scanner in=new Scanner(System.in);
for(int i=0;i<3;i++)
try{
func(in.nextInt(),in.nextInt());
catch(ArithmeticException e){
catch(ArrayIndexOutOfBoundsException e)
System.out.println("Out of bounds");
a) 5
out of bounds
b) 5
out of bounds
c) Compile TimeError
d) Results in recursion
44. Which plugin are the appropriate functionality plugins used in multibranch pipelines for
validating the pull or change requests. (Select any two)
45. In code phase, requirements and feedback are gathered from customers and stakeholders.
a) True
b) False
46. Agile is useful when the client requirements are not clear or requirement frequently changes.
a) True
b) False
a) Builds
b) Softwares
c) Programs
d) Tests
48. Assume we have created a table employees with the columns: employee_id, employee_name,
salary, designation and manager_id. Here employee_id is set as primary key and manager_id is a
foreign key which refers to employee_id in the employees. Manju wants to display the employee
details along with the manager id and manager name. Select which query suits the above
requirement.
startprogram
import java.util.Scanner;
System.out.println("throwit");
try{
System.out.println("Hello");
throwit();
}catch(Exception re){
System.out.println("Caught");
}finally{
System.out.println("Finally");
System.out.println("After");
a) Hello
Output will be HELLO THROWIT CAUGHT FINALLY
throwit
Caught
Finally
After
b) Finally
After
c) CompileTimeError
d) throwit
Caught
After
Finally
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
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
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
Expand DSDM
Dynamic System Development Method
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
3
End of try
5
End of try
10
End of try
java.lang.Arithmetic Exception: / by zero
Ans: 10
Statement for a logically cohesive module, there are some activities to be implemented. These
activities are performed from inside the module itself.
Is the above given statement true? If not, choose the correct option to make it true.
The activities are selected form outside the module
If you are asked to do a modular software design, which combination of coupling and cohesion should
you use for designing the software?
High cohesion and low coupling
Raghav has developed an application to automate the billing process of the Aarvee Departmental
store. When the product is in operation, the client found that in the place of phone number, it prints
the Customer ID.
What type of maintenance does the above scenario depict?
Corrective
Arrow symbols in the flowchart is used to show the sequence of steps and the relationship among
them. State True/Faise.
True
Does the special group and group 0 is included while capturing groups using the groupCount in Java
False
Predict the output for the following statement. Select substr(‘Yellow is A Colour’,1,5) from …
Yello
Agile is useful when the client requirements are not clear or requirement frequently changes.
True
Which kind of control structure is used when we don’t know the exact number of time when a code
need to be executed
While
The practice of automatically provisioning a new environment at the time of deployment is referred to
as ________
Infrastructure-as-Code(IaC)
College management is in need of the report of students exam result. For this Tom has to join the
tables students, courses, registration, exam, final_project. How many join conditions are needed to
write the query.
Ans: 4
Predict the output of the below query. Select max(salary), min(salary), sum(salary), avg(salary) from
employee.
Will display the max, min, sum and average salary earned by the employee
True
False
Ans: 1
ArithmeticException : divide by 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[] m = new int[13];
System.out.println("m[0] is "+m[0]);
}
}
Endprogram
Ans: True
Ans: PatternSyntaxException