Combinepdf Combined
Combinepdf Combined
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.
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
throwit
Caught
Finally
After
b) Finally
After
c) CompileTimeError
d) throwit
Caught
After
Finally
What does public Boolean lookingAt() method do?
Predict the output of the below query. Select max(salary), min(salary), sum(salary), avg(salary) fromemployee.
Will display the max, min, sum and average salary earned by the employee
6. White box testers should require the working knowledge of the code segment
ANS-True
8. If you create a view WITH READ ONLY option, it can only be viewed and
not updated. State true/false.
Ans = true.
10. The WHERE clause cannot be used to apply additional conditions in SELECT
statement containing the ON or the USING clause. State true/false.
Ans = true(not sure).
11. Consider the following array {12,3,1,5,8} Tell us the number of steps that are
required to sort the elements in the ascending order using insertion sort.
Ans = 5
13. In which of the given data structures, does the implementation becomes
difficult?
Ans= graph
15. White box testers should require the working knowledge of the code being
tested
Ans= true
22. Bonus calculated module was unit tested by the developer. Depending on the
salary the bonus
needs to be calculated. Assume if one of the salary-range is between 30000 to
40000 then the
bonus should be 10%. From the given options identify the test cases for
Equivalence Partitioning.
Ans-
25000,35000,45000
25000,27000,29000
42000,43000,45000
32000,35000,39000
23. What is the command to concatenate fname and lname with a space in between
and display
the output under the heading of “Full Name”?
Employee(eid,fname,lname,salary)
Ans= select fname||’ ’||lname as ‘Full Name’ from employee;
select fname||’ ‘||lname ‘Full Name’ from employee;
24. Consider the following table structure and write a query to display all the
employees who
have and don’t have department id assigned
Emp(fname,lname,dno)
Dept(dep9d,dname)
Ans= 1) SELECT FNAME,DEPTID,DNAME FROM EMP E LEFT OUTER JOIN DEPT D
ON (E.DNO=D.DEPTID);
2) SELECT FNAME,DEPTID,DNAME FROM EMP E FULL OUTER JON DEPT D
ON(E.DNO=D.DEPTID
42. In order to refer to all the elements in a one dimensional array which is the
possible option that you would choose.
Ans = Using an indexed loop, such that the respective from 0 to the array
size minus one.
43 is the time duration for each sprint
a>2-3 days
b>2-5 hours
c>2-4 weeks
d>1 month
43. Match the correct options with the characteristics of a good program
49. is used to alter the program flow, when a set of statements need
to be executed only if a condition is fulfilled.
Command mode
Insert mode
Append mode
Escape mode
59. which uml diagram is capable to depict conditional branching and loop
execution?
Ans = sequence diagram
78. which of the given options are true with respect to linked lists, when
compared to arrays
1.Linked lists are dynamic in size
2.Random access is possible in linked list
3.Insertion and deletions are expensive in linked list
4.All the options
81. US Insurance project development team members are divided into two
groups, one team
works in the development office in India and the other group works onsite, ie,
at the client location
So Programmers located in different locations is not suitable for methodologies
Ans=DSDM
84) Sam and rose are working on the loan monitoring project the head version
was checked
out By both sam and rose .both of them made their changes in the local
machines both of them
Made the required changes and updated the same to the server from the given
options Identify
correct option
Ans= Second projects gets over written by the first one
86. In a binary search algorithm, if the element to be searched is lesses than the
pivot value (middle value), then is split in half.
Right interval
Left interval
Half interval
Complier dependent
87. startprogram
public interface studentmark{
/*insert code here*/ int mark=100;
}
which modifiers when inserted in the above code will provide compilation
errors?(choose two)
endprogram
final
static
abstract
private
public
88. )Amaze Agencies, Customers can apply for loan. To apply loan the
customers
should get registered first then apply for the loan. The admin will approve the
loan
and then the loan will be issued to the customer.
Identify the classes in above scenario.
Ans: Customer, Loan, Register.
90. class High{
public High(String s){
System.out.print("From High");
}
}
public class Main extends High{
public Main(String s){
System.out.print("From Low");
}
public static void main(String[] args){
new Main("High Low");
System.out.prinln("");
}
}
Ans = compile time error
92. 1)INNER JOIN 2)LEFT OUTERJOIN 4)RIGHT OUTER JOIN 5)FULL OUTER JOIN
WITH
A)Returns records that have matching values in both tables B)Returns the matched records
from the
right table, and all records from the left table C)Returns the matched records from the left
table, and
all records from the right table D)Returns all records when there is a match in either left or
right
table
a>1-d,2-c,3-b,4-a
b>1-d,2-b,3-c,4-1
c>1-d,2-b,3-a,4-c
d>1-a,2-b,3-c,4-d
93. Consider the file staff dat which has the following content
1:Anu Professor 85000 y
2 Sam Associate Professor 150000 5yrs
3. John Professor 75000 6yrs
4. Suresh Associate Professor 150000 5yrs Which is the command to display the outbusas
tolos?
Suresh Associate Professor
Sam Associate Professor
John Professor
Anu Professor
Ans= cut -d: -f 2,3 staff dat|sort -r
94. The company needs to change the job title ‘officer’ to ‘Administrative officer’ for all
officers.which statement does this
Ans= update employee job=’Administrative officer’ where upper=’officer’;
95. identify the type of control statement from the given option, in which the program chooses
two or more alternative path based on the result of a particular expression that returns a
Boolean value.
Ans=sequential
97. predict the output display the loan type and the number of customers under
each loan type,considering only those loan types which are taken by more than
one customer.
Select loan_type,count(customer-id) from loans_taken l1 inner join loans l2 on l1
loan_id=l2 loan_id group by loan_type having count(customer_id)>1 order by
loan_type
Startprogram
H1{
Text-shadow : 2px 3px 5px;
}
Endprogram
Clonable
Serialization
Autocloseable
Comparable
Comparator
100.
Statement 1 : an include relationship between usecase means the included usecase
will be called every time the base usecase is executed
101 what is the order of execution when there is a parent class and a child class
with constructors in it?
Ans =
1. initialization block of super class
2. initialization block of the class
3. constructor of super class
4. constructor of the class
102. Spot the error. Observe the given algorithm to calculate the simple interest.
Identify the
Ans = Step 4
Ans=
video quality is high
finally
104.
You need to analyze the time duration from the time that your orders are placed
to the time that your orders are shipped.
To do this, you must create a report that displays the customer number, date
ordered, date shipped, and the number of
months in whole numbers from the time the order is placed to the time the order
is shipped Which statement produces the required results
options =
O SELECT customer_id, order_date, shipping_date, ROUND(DAYS BETWEEN
(shipping_dale, order_date)) 30) Time Taken FROM order,
105. in CSS, which of the following code/ codes can be used for colouringa
table background in red?
Code 1: table {background-color: red; }
Code 2: table {bgcolor: red;}
Code 3: table {background: red;}
Choose one
Ans= code 1 only
107. Agile methodology accepts change of requirement at any stage. State true or
false
Ans = 1
108. A linear structure which follows a specific order in which the operations are
performed.Stack follows which of the given orders?
Ans = last-in-first-out
109. when an exception occours in a method.The method creates an object for that
exception. To handel the exception, it is given to the run time system.the run time
system searches for all the methods in the call stack,it is cannot find the
approproate handler then it hands over the object to?
Ans= nosuchmethodexception
Ans= 1
113. What is the relationship between these two Building has rooms
Ans
Composition
Aggregation
Generalization
Hierarchy
114. which of the following tag represents a section of the document intended for
navigation in html5?
Ans= nav
115. A Software needs to be developed for a Sterlin Hospital to monitor the radiations given
for cancer patients. Even a very minute
deviation would result in the risk of the life of the patient. Which would be the appropriate life
cycle model used to implement
the given scenario
Select one:
a. Agile
b. Prototyping
c. Water fall
d. Spiral
116. which of the following operations can be used instead of the or operator
when there are multiple values that need to be compared
Ans = IN
117. Consider the scenario. For an insurance, a customer makes a claim. The claim
can be a
normal or a critical claim. The insurance company confirms the claim. What diagram
can be used tounderstand the state changes of the component triggered by events
and the dynamic
nature
Correct answer : state chart diagram
119.
Startprogram
Body{
Background-color : rgba(0,0,0,0);
}
Endprogram
Ans = fully transparant
125. Which of the following tags is used to define a multi-line input field?
Ans: datalist /textarea
Select to_char(report_date,
‘Mon’) as MONTH, status
from AQI_DELHI;
Endprogram
22
333
Option 1 Ans=
startprogram
Echo “enter the number”
Read n
For((i=1;i<=n;i++))
Do for ((j=1;j<=i;j++))
Do
Echo -e “$i \c”
Done echo “ ”
Done
endprogram
red
import java.util.ArrayList;
public class testuserMain{
public static void main(String[] anrgs)
{
ArrayList<String> a1=new ArrayList<String>(5);
a1.add("Ten");
a1.add("Twenty");
a1.add(4,"Fifty");
a1.add("thirty");
a1.add("Fourty" );
System.out.println(a1);}}
Ans= indexoutofbound
114. Which of the given options define a set of activities that transform the client needs to an
effective software solution
Ans-Software planning
Software cost estimation
Software development process
Software resource planning
. Carefully read the question and answer accordingly. In an array, if an item to be searched is
found in the middle of an array then it is said to be
ans= average case
Class bird{
System.out.print("b1");
}
public Bird(){
System.out.print ("b2");
}
Correct answer:r1 E2 Testman b1 b2 E1 r2 M1
class ClassA{
Which of the following is used to reference data that can act as an abbreviation or can be
found at an external location?
Ans- ENTITY
In a CSS script, each property of an element is separated by a
Ans – semicolon (;)
Ans= -5.0
-54.0