0% found this document useful (1 vote)
3K views9 pages

Dbs Hacker Rank Questions

DBSHacker Questions
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF or read online on Scribd
0% found this document useful (1 vote)
3K views9 pages

Dbs Hacker Rank Questions

DBSHacker Questions
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF or read online on Scribd
You are on page 1/ 9
What is the output of the following program? ick one of the choices 0 4 2 13 lear selection Yy Multiple Choice Which ofthe fllowing statements are TRUE? Regression testing and re-testing are the same, Regression tests show ill falures have been resolved, Regression texts are good candidates for test automation, Regression tests ae performed to uncover defects as a result of ehangesin the program, Regression tests should not be performed during integration testing mooe> Pick one of the choices Aand Bare tue A.Cand Earetrue Cand Dre wwe B,DandE aretue Clear selection What is the output of following program? #include using namespace std; class Base { int a; int b; public: Base() {a=0;b=0; } Base(int a , int b) { this->a = a; this->b = b;} void displayData() { } cout <c = cj this->d = dj} void displayData() { cout << ¢ << d; } ti int main() int main() { Base b(10,20); b.displayData(); Derived d(30,40); d.displayData(); Derived c; c.displayData(); return @; Pick one of the choices 1020102000 10200000 1020304000 102030401020 Clear selection yy Print Help ‘What is the command to print the help of Jenkins from the command line cli? Pick one of the choices java -jar jenkins-clijar -s https://jenkins-url/ help java jar jenkine-clijar help java jar help java jar jenkins- Clear selection What should be the output of the following code? class AirPlane { public AirPlane() throws TOException { ‘system. out. print("ALrPlane"); throw new IOEKception(); » y Class Airlet extends AirPlane ¢ public AirJet() throws IOException { try ( super (0; } catch (TOException e) ¢ ‘System. out.print("I0Exception is thrown in AirJet"); } > > public class Tester { public static void main(String args(1) { try { new Adrset(); } catch (IOException System.out. print ( [OException is thrown in Teste! + Pick one of the choices "AiePlanelOException is thrown in AirJet ill be printed, "AicPlanelOExcoption is thrown in AirJet]OException is thrown in Testor* will be printed. "AiPlanelOException is thrown in Tester” will be printed. yy Java: String Array Which of the following Java declaration of the String array is correct? Pick one of the choices String temp [] = new String (" String temp []={" String temp = ("a > String temp [] = {"a", "b' Clear selection sy Defect Leakage ‘ty Multiple Choice ck oe of the haces ty Multiple Choice The basic criteria to be followed while testing a web application are: Pick the correct choices Flow Altpath Page > Hypertink tenting Clear selection ‘yy Multiple Choice Which ofthe following falls under Database Testing? Pick one of the choices Checking tables ‘Writing queries Procedures Allof the above What is the result of trying to compile and run this program? public class Test { public static void main(String{] args){ int(] a= (1); Test t = new Test(); t. increnent(a); System.out.printIn(afa. length ~ 11); > void increment(int{] i){ ifielength ~ +45 » > Pick one of the choices Compiler error > Compiles and runs printing out 2 ‘Compiles and runs printing out 1 An ArrayindexOutOfBounds Excoption at runtime Clear selection What are the Principles of BDD(Behavior-Driven Development)? Pick the correct choices Enough is enough Deliver stakeholder value It's all behavior None Clear selection Consider the following Java code snippet public int divide(int 9, int b) ¢ int ¢ = = try ¢ cea bs > catch (Exception e) ¢ Systenserr.print( "Exception "); > finatty { systen.err.printtn( "Finally > return ‘What will ur code print when we call divider, 0)? Pick one of the choices Exception Finally Finally Excoption Exception Finally No output Which testing is used for a program's individual components functionality testing? Pick one of the choices Functionality Testing Unit Testing Security Testing ‘Smoke Testing Regression Testing Clear selection

You might also like