#java string mcq
Explore tagged Tumblr posts
Link
Can you answer this java mcq on strings? Seems easy but 99% fails. Do not believe us, write the answer in the comment box. #java @java #javainterviews #javamcq

Java String MCQ
Write your answer to the comment box.
You may like to check String in Java and java basic tutorial
#java string mcq#java string interview questions#learn java through string#java basic questions#java interview preparation
0 notes
Text
300+ TOP JAVA SPRING Objective Questions and Answers
Java Spring Multiple Choice Questions :-
1. What is the meaning of the return data type void? A. An empty memory space is returned so that the developers can utilize it. B. void returns no data type. C. void is not supported in Java D. None of the above Ans: B 2. A lower precision can be assigned to a higher precision value in JavA. For example a byte type data can be assigned to int type. A. True B. False Ans : B 3. Which of the following statements about the Java language is true? A. Both procedural and OOP are supported in JavA. B. Java supports only procedural approach towards programming. C. Java supports only OOP approach. D. None of the above. Ans: A 4. Which of the following statements is false about objects? A. An instance of a class is an object B. Objects can access both static and instance data C. Object is the super class of all other classes D. Objects do not permit encapsulation Ans: D 5. Which methods can access to private attributes of a class? A. Only Static methods of the same class B. Only instances of the same class C. Only methods those defined in the same class D. Only classes available in the same package. Ans: C 6. What is an aggregate object? A. An object with only primitive attributes B. An instance of a class which has only static methods C. An instance which has other objects D. None of the above Ans: C 7. Assume that File is an abstract class and has toFile() methoD. ImageFile and BinaryFile are concrete classes of the abstract class File. Also, assume that the method toFile() is implemented in both Binary File and Image File. A File references an ImageFile object in memory and the toFile method is called, which implementation method will be called? A. Binary File B. Image File C. Both File and Binary Files D. None of the above Ans: B 8. A class can have many methods with the same name as long as the number of parameters or type of parameters is different. This OOP concept is known as A. Method Invocating B. Method Overriding C. Method Labeling D. Method Overloading Ans: D 9. Which of the following is considered as a blue print that defines the variables and methods common to all of its objects of a specific kind? A. Object B. Class C. Method D. Real data types Ans: B 10. What are the two parts of a value of type double? A. Significant Digits, Exponent B. Length, Denominator C. Mode, Numerator Ans: A
JAVA SPRING MCQs 11. After the following code fragment, what is the value in fname? String str; int fname; str = "Foolish boy."; fname = str.indexOf("fool"); A. 0 B. 2 C. -1 D. 4 Ans: C 12. What is the value of ‘number’ after the following code fragment execution? int number = 0; int number2 = 12 while (number { number = number + 1; } A. 5 B. 12 C. 21 D. 13 Ans: B 13. Given the following code snippet; int salaries[; int index = 0; salaries = new int salaries[4; while (index { salaries[index = 10000; index++; } What is the value of salaries [3? A. 40000 B. 50000 C. 15000 D. 10000 Ans: D 14. Which of the following is not a return type? A. boolean B. void C. public D. Button Ans: C 15. If result = 2 + 3 * 5, what is the value and type of ‘result’ variable? A. 17, byte B. 25, byte C. 17, int D. 25, int Ans: C 16. What is the data type for the number 9.6352? A. float B. double C. Float D. Double Ans: B 17. Assume that the value 3929.92 is of type ‘float’. How to assign this value after declaring the variable ‘interest’ of type float? A. interest = 3929.92 B. interest = (Float)3929.92 C. interest = 3929.92 (float) D. interest = 3929.92f Ans: D 18. Which of the following statements is true? A. The default char data type is a space( ‘ ‘ ) character. B. The default integer data type is ‘int’ and real data type is ‘float’ C. The default integer data type is ‘long’ and real data type is ‘float’ D. The default integer data type is ‘int’ and real data type is ‘double’ Ans: D 19. How many numeric data types are supported in Java? A. 8 B. 4 C. 2 D. 6 Ans: D 20. Which of the following statements declare class Sample to belong to the payroll.admindept package? A. package payroll;package admindept; B. import payroll.*; C. package payroll.admindept.Sample; D. import payroll.admindept.*; E. package payroll.admindept; Ans: E 21. The class javA.lang.Exception is A. protected B. extends Throwable C. implements Throwable D. serializable Ans: B 22. Which of the following statements is true? A. An exception can be thrown by throw keyword explicitly. B. An exception can be thrown by throws keyword explicitly. Ans: A 23. All the wrapper classes (Integer, Boolean, Float, Short, Long, Double and Character) in java A. are private B. are serializable C. are immutatable D. are final Ans: D 24. The code snippet if( "Welcome".trim() == "Welcome".trim() ) System.out.println("Equal"); else System.out.println("Not Equal"); will A. compile and display “Equal” B. compile and display “Not Equal” C. cause a compiler error D. compile and display NULL Ans: C 25. Consider the following code snippet. What will be assigned to the variable fourthChar, if the code is executed? String str = new String(“Java”); char fourthChar = str.charAt(4); A. ‘a’ B. ‘v’ C. throws StringIndexOutofBoundsException D. null character Ans: C 26. Which of the following statements is preferred to create a string "Welcome to Java Programming"? A. String str = “Welcome to Java Programming” B. String str = new String( “Welcome to Java Programming” ) C. String str; str = “Welcome to Java Programming” D. String str; str = new String (“Welcome to Java Programming” ) Ans: A 27. Which of the following statements is true? A. A super class is a sub set of a sub class B. class ClassTwo extends ClassOne means ClassOne is a subclass C. class ClassTwo extends ClassOne means ClassTow is a super class D. the class Class is the super class of all other classes in JavA. Ans: A 28. What kind of thread is the Garbage collector thread is? A. Non daemon thread B. Daemon thread C. Thread with dead state D. None of the above Ans: B 29. When a thread terminates its processing, into what state that thread enters? A. Running state B. Waiting state C. Dead state D. Beginning state Ans: C 30. Which statement is true? A. HashTable is a sub class of Dictionary B. ArrayList is a sub class of Vector C. LinkedList is a subclass of ArrayList D. Vector is a subclass of Stack Ans: A 31. Which of these statements is true? A. LinkedList extends List B. AbstractSet extends Set C. HashSet extends AbstractSet D. WeakHashMap extends HashMap Ans: C 32. Which of the following is synchronized? A. Set B. LinkedList C. Vector D. WeakHashMap Ans: C 33. Select all the true statements from the following. A. AbstractSet extends AbstractCollection B. AbstractList extends AbstractCollection C. HashSet extends AbstractSet D. Vector extends AbstractList E. All of the above Ans: E 34. Which of the methods should be implemented if any class implements the Runnable interface? A. start() B. run() C. wait() D. notify() and notifyAll() Ans: B 35. A thread which has invoked wait() method of an object, still owns the lock of the object. Is this statement true or false? A. True B. False Ans: B 36. Which of the following is not a method of the Thread class. A. public void run() B. public void start() C. public void exit() D. public final int getPriority() Ans: C 37. To execute the threads one after another A. the keyword synchronize is used B. the keyword synchronizable is used C. the keyword synchronized is used D. None of the above Ans: B 38. The object of DataInputStream is used to A. To covert binary stream into character stream B. To covert character stream into binary stream C. To write data onto output object D. All of the above Ans: A 39. DataInputStream is an example of A. Output stream B. I/O stream C. Filtered stream D. File stream Ans: C 40. From a MVC perspective, Struts provides the A. Model B. View C. Controller Ans: B 41.Consider the following program: import myLibrary.*; public class ShowSomeClass { // code for the class... } What is the name of the java file containing this program? A. myLibrary.java B. ShowSomeClass.java C. ShowSomeClass D. ShowSomeClass.class E. Any file name with the java suffix will do Ans: B 42.Which of the following is TRUE? A. In java, an instance field declared public generates a compilation error. B. int is the name of a class available in the package javA.lang C. Instance variable names may only contain letters and digits. D. A class has always a constructor (possibly automatically supplied by the java compiler). E. The more comments in a program, the faster the program runs. Ans: D 43.Consider the following code snippet String river = new String(“Columbia”); System.out.println(river.length()); What is printed? A. 6 B. 7 C. 8 D. Columbia E. river Ans: C 44. A constructor A. must have the same name as the class it is declared within. B. is used to create objects. C. may be declared private D. A and B E. A, B and C Ans: E 45.Which of the following may be part of a class definition? A. instance variables B. instance methods C. constructors D. all of the above E. none of the above Ans: D 46.What is different between a Java applet and a Java application? A. An application can in general be trusted whereas an applet can't. B. An applet must be executed in a browser environment. C. An applet is not able to access the files of the computer it runs on D. (A), (B) and (C). E. None of the above Ans: D 47.Consider public class MyClass{ public MyClass(){/*code*/} // more code... } To instantiate MyClass, you would write? A. MyClass mc = new MyClass(); B. MyClass mc = MyClass(); C. MyClass mc = MyClass; D. MyClass mc = new MyClass; E. It can't be done. The constructor of MyClass should be defined as public void MyClass(){/*code*/} Ans: A 48.What is byte code in the context of Java? A. The type of code generated by a Java compiler B. The type of code generated by a Java Virtual Machine C. It is another name for a Java source file D. It is the code written within the instance methods of a class. E. It is another name for comments written within a program. Ans: A 49.What is garbage collection in the context of Java? A. The operating system periodically deletes all of the java files available on the system. B. Any package imported in a program and not used is automatically deleteD. C. When all references to an object are gone, the memory used by the object is automatically reclaimeD. D. The JVM checks the output of any Java program and deletes anything that doesn't make sense. E. Janitors working for Sun MicroSystems are required to throw away any Microsoft documentation found in the employees' offices. Ans: c 50.You read the following statement in a Java program that compiles and executes. submarine.dive(depth); What can you say for sure? A. depth must be an int B. dive must be a methoD.(ans) C. dive must be the name of an instance fielD. D. submarine must be the name of a class E. submarine must be a methoD. Ans: B 51. Formed on a diskette (or hard drive) during initialization. A. source code B. images C. sectors D. storage units Ans: C 52. The CPU consists of: A. Control Unit, Temporary Memory, Output B. Control Unit, Arithmetic Logic Unit, Temporary Memory C. Input, Process, Storage, Output D. Input, Control Unit, Arithmetic Logic Unit, Output Ans: B 53. OOP stands for: A. Observable Object Programming B. Object Observed Procedures C. Object Oriented Programming D. Object Overloading Practices Ans: C 54. Output printed on paper. A. softcopy B. hardcopy C. source code D. software Ans: B 55. A binary digit (1 or 0) signifying "on" or "off". A. bit B. byte C. megabyte D. gigabyte Ans: A 56. Our decimal number 44, when represented in binary, is: A. 101100 B. 101010 C. 111000 D. 10100 Ans: A 57. Byte code is the machine language for a hypothetical computer called the: A. Java Byte Code Compiler B. Java Byte Code Interpreter C. Java Virtual Machine D. Java Memory Machine Ans: C 58. Equals 8 bits. A. megabyte B. gigabyte C. sector D. byte Ans: D 59. Java allows for three forms of commenting: A. // single line, ** block lines, /*/ documentation B. // single line, /*...*/ block lines, /**...*/ documentation C. / single line, /* block lines, ** documentation D. // single line, //...// block lines, //*...*// documentation Ans: B 60. To prepare a diskette (or hard drive) to receive information. A. format B. track C. interpret D. boot Ans: A 61. In Java, the name of the class must be the same as the name of the .java file. A. false B. true - but case sensitivity does not apply C. true - but additional numbers may be added to the name D. true Ans: D 62. The name Java was derived from A. a cup of coffee B. an acronym for JBuilder Activated Variable Assembly C. an acronym for Juxtapositioned Activated Variable Actions D. an acronym for John's Answer for Various Accounts Ans: A 63. Programs that tell a computer what to do. A. harware B. software C. hard copy D. projects Ans: B 64. RAM stands for _________. A. Read Anytime Memory B. Read Allocated Memory C. Random Access Memory D. Random Allocated Memory Ans: C 65. Several computers linked to a server to share programs and storage space. A. library B. grouping C. network D. integrated system Ans: C 66. Source code in Java will not run if it is not indenteD. A. true B. false Ans: B 67. When working in Java with JBuilder, each program you write should be assigned to a new project. A. true B. false Ans: A 68. The four equipment functions of a computer system. A. Input, Process, Control Unit, Output B. Input, Control Unit, Arithmetic Logic Unit, Output C. Input, Process, Storage, Output D. Input, Process, Library Linking, Output Ans: C 69. Translates and executes a program line by line. A. compiler B. interpreter C. linker D. control unit Ans: B 70. The physical components of a computer system. A. control unit B. hardware C. software D. ALU Ans: B JAVA SPRING Questions and Answers pdf Download Read the full article
0 notes
Text
Book Review - Murach's Beginning Java With NetBeans
Book Review - Murach's Beginning Java With NetBeans Murach's Beginning Java with NetBeans guide examines all elements of Java in detail with the assistance of NetBeans IDE. The guide is actually divided into 5 sections. The very first chapter provides a short overview of Netbeans and Java. You are going to learn the steps involved to create Java code including use of methods and classes. In Chapter four, you are going to learn the process involved to create the own classes of yours and strategies in detail. You are going to learn the steps needed to design an item focused program in Chapter five. The last chapter in section one examines the process connected with testing as well as debugging an application. Section two examines the use of primitive types, strings, operators, arrays along with control statements with the assistance of code samples. The chapters in section three offer a comprehensive introduction of the use of Inheritance, Interfaces, Inner classes, Documentation and enumeration. Section four examines the use of collections, generics, lambdas, time and data. You'll also learn the steps needed to manage exceptions in addition to dealing with Threads and Input/Output. You are going to learn the steps connected with the use of MySQL database including JDBC in section five. The last 2 chapters of section five look at the improvement of GUI applying Java Swing. The book consists of 2 appendixes which covers the elements connected to installation of Java in both Windows as well as Mac OS X. Each chapter concludes with an area called perspective and also contains bulleted summary. I a lot liked the way in which the authors have presented the summary. Readers are going to be in a position to easily find out the facts. The includes exercise concerns in numbered format which prompts one to do certain actions. You have to read each line to finish the exercises as reported till the last step. From the point of mine of view, these questions will assist pupils to grasp knowledge rapidly. java program for prime numbers To be able to complete the exercises you have to obtain samples from the official site of the publisher. Murach also offers an Instructor CD that will have PowerPoint slides, MCQ's and a lot more. Click here to know more, know more about it here I'd love to see a standalone chapter on the improvement of mobile apps with Java. The guide is going to be extremely helpful for those developers that are well versed with the fundamental ideas of Java programming. Pure beginners are going to find it hard since the experts have examined the concepts by using NetBeans. Nevertheless, they are going to be in a position to use the book after gaining essential information in Java. Undoubtedly, Beginning Java with NetBeans by Murach Publishing is actually a great companion for pupils. Instructors are able to use the book to impart instruction. Additionally, companies are able to hold a copy of the book on the shelves of theirs for reference purposes.
0 notes
Link
Let's see how much do you know about Java String. Choose the correct answer basis the code snippet.

Java String MCQ
To refresh your Java String concepts, just check Java String Basics. You can also see our posts on java basic concepts
0 notes
Text
300+ TOP SAP BO Objective Questions and Answers
SAP BO Multiple Choice Questions :-
1. Which sort option should you use to add Temporary Values? A. Ascending B. Descending C. Custom Sort D. Adaptive Sort Ans: C 2. You use the Last Refresh Date cell from the Templates in the Report Manager on your report page. You then reformat the cell as Tuesday, January 22, 2008. What is the result when you edit the formula, using the Formula toolbar, to concatenate the string "Last Refresh Date: " and the LastExecutiondate() function? A. The cell reads "Last Refresh Date: 1/22/08". B. The "Computation Error" error message is displayed. C. The "Incompatible Data Types" error message is displayed. D. The cell reads "Last Refresh Date: {Tuesday, January 22, 2008}". Ans: A 3. Which two functions could you use to concatenate the First Name and Last Name objects? (Choose two.) A. =+ B. =& C. =|| D. =Concatenation(;) E. =Concatenation(,) Ans: A and D 4. Which panel should you use to create sub-queries? A. Data Panel B. Query Panel C. Report Panel D. Slice and Dice Panel Ans: B 5. Which panel should you use to view a Document Summary of a BusinessObjects Web Intelligence XI 3.0 document (WID)? A. Advanced B. Query C. Active X D. Interactive Ans: D 6. Which two statements are correct about saving documents? (Choose two.) A. They are stored in folders. B. They are stored in categories. C. They can be assigned to a folder. D. They can be assigned to a category. Ans: A and D 7. Which three can you use to start the Web Intelligence Rich Client from? (Choose three.) A. InfoView B. Command Line C. Start > All Programs D. Central Management Console Ans: A,B and C 8. Which Pos() function syntax should you use to find the location of the space in the Category string "Evening wear"? A. Pos( , "" ) B. Pos((Category) , "" ) C. Pos( ; " " ) D. Pos({Category} ; " " ) Ans: C 9. Which three statements are true of contexts? (Choose three.) A. Contexts are defined in a report. B. Contexts are defined in a universe. C. You can combine objects in different contexts. D. You can combine any objects within the same context to create a query. Ans: B,C ,D 10. Which method should you use to group query filters together to form one AND statement? A. Drag the queries together B. Drag the query filters to the Group panel C. Select the filters, right-click and select Group D. Select the filters, then click the Group Filters button on the toolbar Ans: A
SAP BO MCQs 11. In the creation of a document, you have to import a personal data file. The data file contains date information, but when the file is imported, the dates are imported as character strings. Which function should you use to change the format from string to date? A. Date() B. Char() C. ToChar() D. ToDate() Ans: D 12. Which three options are valid Page Layout Options in the Properties tab of a document? (Choose three.) A. Top margin B. Left margin C. Page orientation D. Background color E. Visited hyperlink colors Ans: A,B,C 13. Which options can you select when you save a Web Intelligence document (WID)? Note: There are 2 correct answers to this question. A. Refresh on open B. Associate universe C. Permanent regional formatting D. Send to users Ans: A,C 14. You are working in the Web Intelligence Rich Client. Which two file formats can you save a document in? (Choose two.) A. TXT B. XLS C. PDF D. CSV Ans: B,C 15. Which Web Intelligence viewer panel should you use to create links to documents by browsing to the file without typing any syntax? A. Java Report Panel B. ActiveX Report Panel C. Interactive HTML Panel D. .NET Interactive Report Panel Ans: C 16. You open a Web Intelligence document (WID) with tracked data changes. You wish to change the color of the tracked data. You however cannot change the format of the tracked data. What should you do to enable formatting of the tracked data? A. Contact the system administrator. B. Edit the document in tracking mode. C. Open the document in tracking mode. D. Resave the document with data tracking formats enabled. Ans: A 17. Which two statements are true about the AND operator? (Choose two.) A. Used when any condition is met by two filters B. Used when all conditions are met by two filters C. Used when all conditions are met by more than two filters D. Used when only one condition is met by any of the filters Ans: B,C 18. How many blocks can you create in a Web Intelligence document (WID)? A. 1 B. 2 C. 4 D. 8 E. Unlimited Ans: E 19. Which tool do you use to edit merged objects in BusinessObjects Web Intelligence XI 3.0? A. The Data tab of the Document Properties B. The Edit Dimensions button on the Reporting toolbar C. The Merge Dimensions button on the Reporting toolbar D. The Object Properties in the Data tab of the Report Manager Ans: C 20. Which is a benefit of using query drill? A. Data is pre-fetched and stored for all levels prior to drill. B. Data is pre-formatted and stored for all levels prior to drill. C. Dedicated SQL statements are generated for each drill. D. Levels you can drill through are based on your security profile. Ans: C 21. Which two operators are used as calculation context operators? (Choose two.) A. In B. Where C. Select D. Having Ans: A,B 22. Where can you set the default universe when using Web Intelligence within InfoView? A. Query Panel B. Report Panel C. InfoView Options D. InfoView Preferences Ans: D 23. Which tab should you use to change the page orientation of a report? A. Click File > Page Setup and select "Page Orientation" B. In InfoView Preferences, change the default page orientation C. Select the report tab; in Report Manager, select the "Properties" tab and select the "Page Orientation" D. Select the report page; in Report Manager, select the "Properties" tab and select the "Page Orientation" Ans: D 24. Which three layout options can you use when creating sections in a report? (Choose three.) A. Relative Position B. Start on New Page C. Keep Blocks Together D. Avoid Page Break in Section Ans: A,B,C 25. Which two are calculation context types? A. Input B. Output C. Logical D. Conditional Ans: A,B 26. You want to compare the sales revenue performance of the top 20% of your customers to the average of all of your customers. You decide to apply a rank on the table that shows customers and revenue and create a variable to show the average revenue for all customers. Which function should you use in the variable? A. NoFilter() B. NoRank() C. AverageAll() D. IgnoreFilter() Ans: A 27. Which three are drill options? (Choose three.) A. Hide drill toolbar B. Show drill filters C. Prompt if drill requires additional data D. Synchronize drill on report block Ans: A,B,D 28. Which function would you use to extract the word "casual" from the product name "casual pants" of the Product Name field? A. Left(5; ) B. Left(; 5) C. Right((Product Name), 5) D. Right(5, ) Ans: B 29. Which two locations can you use to set the drill options? (Choose two.) A. Report Properties B. Query Panel Properties C. Preferences in InfoView D. Scope of Analysis Properties E. Tools/Options in Web Intelligence Rich Client Ans: C,E 30. Which type of relationship links sub-queries by default? A. OR B. AND C. NOR D. NAND Ans: B 31. You are creating a report to summarize the number of cars sold by region. Which object should you use to aggregate the number of cars sold? A. Sum B. Detail C. Measure D. Dimension Ans: C 32. Which statement is a benefit of using a Web Intelligence formula? A. The formula can be reused in a document from the Data tab. B. The formula can be reused to create a variable. C. The formula can be saved into a new function. D. The formula can be saved and reused in a measure object. Ans: B 33. Which three data sources can you synchronize in a Web Intelligence XI 3.0 document (WID)? (Choose three.) A. Personal data files B. Stored procedure data source C. Queries from the same universe D. Queries from different universes Ans: A,C,D 34. What is the default behavior when creating a report from two queries from the same universe? A. Result produces two table blocks. B. Dimension objects are automatically merged. C. Results are shown on two different report tabs. D. Dimension objects are not automatically merged. Ans: B 35. Where can you set the priority options for saving a Web Intelligence document (WID) to Microsoft Excel? A. Web Intelligence B. InfoView Preferences C. Microsoft Excel File Options D. Web Intelligence Rich Client Ans: B 36. Where are formulas stored when created in Web Intelligence? A. In the universe B. On the report page C. In the Central Management Server (CMS) database D. In the metadata of the Cube Ans: B 37. Which message appears when you select "Use query drill" while Scope of Analysis is set in a BusinessObjects Web Intelligence XI 3.0 report? A. The Scope of Analysis is empty. B. The Scope of Analysis is not empty. C. The query drill mode option is enabled. D. The query drill mode option is not enabled. Ans: B 38. Your document displays all data in black. Which dialog box should you use to configure the colors of your document data? A. Document Palette B. Document Formats C. Display Preferences D. Data Tracking Options Ans: A 39. Which statement describes the performance impact that data tracking has on report refresh times, assuming that the data changes but the number of rows retrieved and the data volume stays the same? A. It will refresh up to three times faster. B. It will refresh up to three times slower. C. It will refresh faster each time the report is refreshed. D. It will refresh slower each time the report is refreshed. Ans: B 40. Which two statements describe reasons for using the FormatDate() function? (Choose two.) A. You want to convert a string object into a date object. B. You want to convert a date object into a string object. C. You want to format a date so that it is displayed as a string when it is concatenated with another string. D. You want to modify the format of a string object into a non-standard date format. Ans: B,C 41. Which two statements are true of an ambiguous query? (Choose two.) A. It can be resolved with a loop. B. It can be resolved with a context. C. It contains all possible combinations of rows from the tables inferred by the objects. D. It contains one or more objects that can potentially return two different types of information. Ans: B,C 42. Which method should you use to activate "Interactive Viewing"? A. Preferences in Web Intelligence B. Preferences in InfoView C. In the Document Properties D. In the Report Properties Ans: B 43. You are working with a previously saved document and you have deleted a logical operator. Which two methods can you use to recover the logical operator? (Choose two.) A. Rebuild the filters. B. Click the Undo button in the Query panel. C. From the Tools menu, select Recover Operator. D. Close the Query panel without executing and then open the query. Ans: A,D 44. Which four authentication methods are available for Web intelligence Rich Client? (Choose four.) A. AD B. NT C. LDAP D. Vintella E. Kerberos F. Enterprise Ans: A,B,C,F 45. Which Report Manager tab should you use to change report formatting? A. Map B. Data C. Properties D. Templates Ans: C 46. Which three options are Web Intelligence drill mode options? (Choose three.) A. Drill By B. Drill Up C. Drill Down D. Drill Through Ans: A,B,C 47. Which statement describes a benefit of using the NoFilter() function? A. It overrides query filters. B. It overrides query ranking. C. It overrides report ranking. D. It overrides universe security. Ans: C 48. You are working with a set of store revenues. All stores have positive revenue values. Which formula should you use to display the variance value of the Revenue measure in your document when data tracking is active? A. =/RefValue() B. =/PreValue() C. =/HistValue() D. =/BaseValue() Ans: A 49. Which function would you use to extract the word "pants" from the product name "casual pants" of the Product Name field? A. Right(5; ) B. Right(; 5) C. Right((Product Name), 5) D. Right(5, ) Ans: B 50. Which operator should you use to control the output context of a calculation that is relevant to the different environment levels within your document? A. In B. Out C. ForAll D. ForEach Ans: A 51. Which BusinessObjects Enterprise tool supports Offline Mode logins? A. InfoView B. Java Panel C. Interactive Panel D. Web Intelligence Rich Client Ans: D 52. Which two methods can you use to aggregate measures at the section level in BusinessObjects Web Intelligence XI 3.0? (Choose two.) A. Drag the measure from the Data tab into the section header. B. Copy the measure from the Data tab into the section header. C. While pressing the ALT key, drag the measure from the table to the section header. D. While pressing the CTRL key, drag the measure from the table to the section header. Ans: A,D 53. Which option can you use to convert a table block into a chart in Web Intelligence Rich Client? A. Right-click the table block and select "Turn To" B. Click Format > Charts and select "Convert to Chart" C. Right-click the table block and select "Convert to Chart" D. Click Tools > Charts and select "Change Table to Chart" Ans: A 54. Where in Web Intelligence Rich Client interface can you see the data source for a document built on a local data source? A. Global Settings B. Report Settings C. Query Properties D. Document Properties Ans: C 55. What automatically happens when you create a chart using the Templates tab in Web Intelligence? A. Data is filtered using template dimensions. B. Structure mode is selected. C. Data is displayed on the report page. D. Select Objects dialog box opens. Ans: B 56. Which two are benefits of using breaks? (Choose two.) A. Creates a navigation map B. Makes the table block easier to read C. Splits the block into smaller table blocks D. Enables the use of subtotals in one block Ans: B,D 57. Which two statements are true of contexts? (Choose two.) A. You can combine objects in different contexts. B. You cannot combine objects in different contexts. C. You can combine any object within the same context to create a query. D. You can combine only measures within the same context to create a query. Ans: A,C 58. What is the maximum number for alerters in a document? A. 8 B. 16 C. 30 D. 32 Ans: C 59. Which method should you use to store a Web Intelligence Rich Client document in an enterprise secured location? A. Save the document to the Enterprise directories. B. Save the document to the Enterprise documents. C. Export the document to the Central Management Server (CMS). D. Export the document to the Central Configuration Manager (CCM). Ans: B 60. What happens when you drop a dimension into a blank part of a report that contains two blocks, without the ALT key selected? A. A new block is created. B. A new section is created. C. An error message is displayed. D. The currently selected cell is displayed. Ans: B 61. Which two are running aggregate functions in Web Intelligence? (Choose two.) A. RunningMax() B. RunningSum() C. RunningTotal() D. RunningMean() Ans: A,B 62. For what purposes can you use the Page Layout of a report? Note: There are 2 correct answers to this question. A. To display the definition of the block B. To define how the report will look like in PDF mode C. To define how the report will look like when printed. D. To display the report page by default. Ans: B,C 63. Where should you configure the regional settings of a Web Intelligence document (WID) within InfoView? A. Local Settings B. Browser Preferences C. User Machine Settings D. InfoView Preferences Ans: D 64. Which three are prerequisites for combining data from multiple data providers? (Choose three.) A. There are two or more queries in your document. B. Both data providers must have the same dimension values. C. Data values from each linked dimension must have a common format. D. Object name from different universes in both data providers must be the same. Ans: A,B,C 65. Which two break properties can you use when setting Break Priority? (Choose two.) A. Order Breaks B. Vertical Breaks C. Crosstab Breaks D. Horizontal Breaks Ans: B,D 66. Which method should you use to activate data tracking? A. Select the "Track" button on the toolbar. B. In the Query panel, enable "Keep History". C. In the InfoView Preferences, enable "Track Data Changes". D. Right-click the column in the report and select "Activate Data Tracking". Ans: A 67. Which two search criteria are valid when using Delegated List of Values? (Choose two.) A. a* B. *a C. a% D. %a Ans: A,B 68. For which tasks do you use an If() function? Note: There are 2 correct answers to this question. A. To conditionally show rows in a block B. To conditionally execute a scheduled report C. To display dynamically grouped values D. To display a dynamic list of values Ans: A,C 69. You need to create a report that compares data to a reference data set. You create the report and activate the track data option. The report correctly indicates the changes in the data; however when you make another change to the report, the display no longer indicates any data tracking. What actions could have caused this behavior? Note: There are 2 correct answers to this question. A. You drilled outside the scope of analysis. B. You activated query drill mode. C. You added a report break. D. You added a chart to the report. Ans: A,B 70. To which destinations can you send a Web Intelligence document (WID) through InfoView of BusinessObjects Web Intelligence XI 3.0? Note: There are 3 correct answers to this question A. Broadcast Agent B. Business Objects Inbox C. FTP D. Email E. File Server Ans: B,C,D 71. Which three calculations can you use in a measure object in Web Intelligence? (Choose three.) A. Min B. Max C. Count D. Count All Ans: A,B,C 72. Which three object types can you use in a Web Intelligence universe query? (Choose three.) A. Class B. Detail C. Measure D. Dimension E. User Defined Ans: B,C,D 73. You use the Last Refresh Date cell from the Templates in the Report Manager on your report page. You then reformat the cell as Tuesday, January 22, 2008. What is the result when you edit the formula, using the Formula toolbar, to concatenate the string "Last Refresh Date: " and the LastExecutiondate() function? A. The cell reads "Last Refresh Date: 1/22/08". B. The "Computation Error" error message is displayed. C. The "Incompatible Data Types" error message is displayed. D. The cell reads "Last Refresh Date: {Tuesday, January 22, 2008}". Ans: A 74. You need to create a report displaying a year-to-date aggregation on sales revenue across all months. The report should be sectioned on Region. Additionally, you would like to reset the running aggregation to restart for each Region. Which syntax should you use to accomplish this task? A. =RunningSum(, Region) B. =RunningTotal(, Region) C. =RunningSum( ; ()) D. =RunningTotal(, Reset) Ans: C 75. Which method should you use to see report filters? A. Right-click the report and select "Show Filter Pane" B. On the toolbar, click the "Show/Hide Filter Pane" button C. In the Filters panel, enable the "Show Report Filters" option D. In InfoView Preferences, enable the "Show Report Filters" option Ans: B 76. Which three methods can you use to apply a section in the Web Intelligence Rich Client? (Choose three.) A. Click the "Set Master" button in the toolbar. B. Drag the column to be sectioned outside the block. C. Select the column; select Reporting Menu Option and then select "Set As Section". D. Right-click the column on which you want to create a section. From the drop-down menu, select "Set As Section". Ans: B,C,D 77. Which scenarios should you use breaks for? (Choose two.) A. Generating subtotals in one table block B. Breaking the table into multiple table blocks C. Grouping repeated values in one table block D. Generating running sum in multiple table blocks Ans: A,C 78. Which two character functions can modify character string and return the word "Department" from the string "Department Fast Foods"? (Choose two.) A. Pos() B. SubStr() C. Length() D. Replace() Ans: B,D 79. Which two options can you change when using Quick Display Mode? (Choose two.) A. Limit Query Results B. Sample Query Results C. Vertical Records Per Page D. Horizontal Records Per Page Ans: C,D 80. Which three features can you use in Interactive View mode of BusinessObjects Web Intelligence XI 3.0? (Choose three.) A. Sort B. Filters C. Format Cell D. Merge Dimensions Ans: A,B,C SAP BO Questions and Answers pdf Download Read the full article
0 notes
Text
300+ TOP ANDROID Objective Questions and Answers
Android Multiple Choice Questions :-
1) Android is licensed under which open source licensing license? A. Gnu's GPL B. Apache/MIT C. OSS D. Sourceforge Ans: B 2) Although most people's first thought when they think of Android is Google, Android is not actually owned by Google. Who owns the Android platform? A. Oracle Technology B. Dalvik C. Open Handset Alliance D. The above statement is and Android is owned by Google Ans: C 3) As an Android programmer, what version of Android should you use as your minimum development target? A. Versions 1.6 or 2.0 B. Versions 1.0 or 1.1 C. Versions 1.2 or 1.3 D. Versions 2.3 or 3.0 Ans: A 4) What was Google's main business motivation for supporting Android? A. To level the playing field for mobile devices B. To directly compete with the iPhone C. To corner the mobile device application market for licensing purposes D. To allow them to advertise more Ans: D 5) What was the first phone released that ran the Android OS? A. Google gPhone B. T-Mobile G1 C. Motorola Droid D. HTC Hero Ans: B 6) From a phone manufacturer's point of view, what makes Android so great? A. Aside from some specific drivers, it provides everything to make a phone work B. It makes the hardware work better C. It allows them to compete with Apple's iPhone D. It allows users to create apps, generating revenue for the companies Ans: A 7) What is a funny fact about the start of Android? A. It was orginaly going to be called UFO B. The first version of Android was released without an actual phone on the market C. Androids main purpose was to unlock your car door when you left the keys inside of it. D. Was going to be a closed source application to make more money for its company. Ans: B 8) What year was the Open Handset Alliance announced? A. 2005 B. 2006 C. 2007 D. 2008 Ans: C 9) A device with Android installed is needed to develop apps for Android. A. True B. False Ans: B 10) Android tries hard to ______________ low-level components, such as the software stack, with interfaces so that vendor-specific code can be managed easily. A. confound B. absract C. modularize D. compound Ans: B
ANDROID MCQs 11) Google licensed some proprietary apps. A. True B. False Ans: A 12) What part of the Android platform is open source? A. low-level Linux modules B. all of these answers #The entire stack is an open source platform C. native libraries D. application frame work E. complete applications Ans: B 13) When did Google purchase Android? A. 2007 B. 2005 C. 2008 D. 2010 Ans: B 14) Android releases since 1.5 have been given nicknames derived how? A. Adjective and strange animal B. Food C. Something that starts w/ 'A' -> Something that starts w/ 'B'... D. American states Ans: B 15) Which one is not a nickname of a version of Andriod? A. cupcake B. Gingerbread C. Honeycomb D. Muffin Ans: D 16) Android doesn't make any assumptions about a device's screen size, resolution, or chipset.: A. True B. False Ans: A 17) Why are the so few users left with versions 1.0 and 1.1? A. The first phones were released with version 1.5 B. 1.0 and 1.1 had security holes that forced carriers to recall phones using them C. 1.0 and 1.1 are just number designations for the version Apple's iPhone is running D. Everyone with 1.0 and 1.1 were upgraded to 1.5 over the air automatically Ans: D 18) Which Android version had the greatest share of the market as of January 2011? A. 1.1 B. 1.5 C. 2.3 D. 3.4 Ans: B 19) Which piece of code used in Android is not open source? A. Keypad driver B. WiFi? driver C. Audio driver D. Power management Ans: B 20) Android is built upon the Java Micro Edition (J2ME) version of Java. A. True B. False Ans: B 21) Which among these are NOT a part of Android's native libraries? A. Webkit B. Dalvik C. OpenGL D. SQLite Ans: B 22) Android is based on Linux for the following reason. A. Security B. Portability C. Networking D. All of these Ans: D 23) What operating system is used as the base of the Android stack? A. Linux B. Windows C. Java D. XML Ans: A 24) What year was development on the Dalvik virtual machine started? A. 2003 B. 2005 C. 2007 D. 2006 Ans: B 25) What is a key difference with the distribution of apps for Android based devices than other mobile device platform applications? A. Applications are distributed by Apple App Store only B. Applications are distributed by multiple vendors with different policies on applications. C. Applications are distributed by multiple vendors with the exact same policies on applications. D. Applications are distributed by the Android Market only. Ans: B 26) When developing for the Android OS, Java byte code is compiled into what? A. Java source code B. Dalvik application code C. Dalvik byte code D. C source code Ans: C 27) What does the .apk extension stand for? A. Application Package B. Application Program Kit C. Android Proprietary Kit D. Android Package Ans: A 28) When you distribute your application commercially,you'll want to sign it with your own key. A. True B. False Ans: A 29) How does Google check for malicious software in the Android Market? A. Every new app is scanned by a virus scanner B. Users report malicious software to Google C. Google employees verify each new app D. A seperate company monitors the Android Market for Google Ans: B 30) Which of these are not one of the three main components of the APK? A. Dalvik Executable B. Resources C. Native Libraries D. Webkit Ans: D 31) What is the name of the program that converts Java byte code into Dalvik byte code? A. Android Interpretive Compiler (AIC) B. Dalvik Converter C. Dex compiler D. Mobile Interpretive Compiler (MIC) Ans: C 32) What was the main reason for replacing the Java VM with the Dalvik VM when the project began? A. There was not enough memory capability B. Java virtual machine was not free C. Java VM was too complicated to configure D. Java VM ran too slow Ans: B 33) Android Applications must be signed. A. After they are installed B. Before they are installed C. Never D. Within two weeks of installation Ans: B 34) Which of the following are not a component of an APK file? A. Resources B. All of these are components of the APK C. Native Libraries D. Dalvik executable Ans: B 35) The AWT and Swing libraries have been removed from the Android library set. A. True B. False Ans: A 36) The R.java file is where you edit the resources for your project. A. True B. False Ans: B 37) What is contained within the manifest xml file? A. The permissions the app requires B. The list of strings used in the app C. The source code D. All other choices Ans: A 38) What is contained within the Layout xml file? A. Orientations and layouts that specify what the display looks like. B. The permissions required by the app. C. The strings used in the app. D. The code which is compiled to run the app. Ans: A 39) The emulated device for android. A. Runs the same code base as the actual device, all the way down to the machine layer. B. Is more of a simulator, and acts as a virtual machine for the Android device. C. Runs the same code base as the actual device, however at a higher level. D. An imaginary machine built on the hopes and dreams of baby elephants. Ans: A 40) Your Java source code is what is directly run on the Android device. A. True B. False Ans: B 41) The Emulator is identical to running a real phone EXCEPT when emulating/simulating what? A. Telephony B. Applications C. Sensors D. The emulator can emulate/simulate all aspects of a smart phone. Ans: C 42) How is a simulator different from an emulator? A. Emulators are only used to play old SNES games, simulators are used for software development B. The emulator is shipped with the Android SDK and third party simulators are not C. The emulator can virtualize sensors and other hardware features, while the simulator cannot D. The emulator imitates the machine executing the binary code, rather than simulating the behavior of the code at a higher level. Ans: D 43) The R file is a(an) generated file A. Automatically B. Manually C. Emulated D. None of the above Ans: A 44) An activity can be thought of as corresponding to what? A. A Java project B. A Java class C. A method call D. An object field Ans: B 45) To create an emulator, you need an AVD. What does it stand for? A. Android Virtual Display B. Android Virtual Device C. Active Virtual Device D. Application Virtual Display Ans: B 46) The Android SDK ships with an emulator. A. True B. False Ans: A 47) The ___________ file specifies the layout of your screen. A. Layout file B. Manifest file C. Strings XML D. R file Ans: A 48) The manifest explains what the application consists of and glues everything together. A. True B. False Ans: A 49) The Android Software Development Kit (SDK) is all you need to develop applications for Android. A. True B. False Ans: A 50) What is the driving force behind an Android application and that ultimately gets converted into a Dalvik executable? A. Java source code. B. R-file. C. the emulator. D. the SDK Ans: A 51) While developing Android applications, developers can test their apps on... A. Emulator included in Android SDK B. Physical Android phone C. Third-party Emulators (Youwave, etc.) D. All three options will work. Ans: D 52) What file is responsible for glueing everthing together , explaining what the applicatin consists of, what its main building blocks are, ext...? A. Layout file B. Strings XML C. R file D. Manifest file Ans: D 53) The XML file that contains all the text that your application uses. A. stack.xml B. text.xml C. strings.xml D. string.java Ans: C 54) Which of the following is the most "resource hungry" part of dealing with Activities on Android A. Closing an app B. Suspending an app C. Opening a new app D. Restoring the most recent app Ans: C 55) What runs in the background and doesn't have any UI components? A. Intents B. Content Providers C. Services D. Applications Ans: C 56) What is an Activity? A. A single screen the user sees on the device at one time B. A message sent among the major building blocks C. A component that runs in the background without any interface. D. Context referring to the application environment. Ans: A 57) When an activity doesn't exist in memory it is in. A. Starting state B. Running state C. Loading state D. Inexistent state. Ans: A 58) Which of the following is NOT a state in the lifecycle of a service? A. Starting B. Running C. Destroyed D. Paused Ans: D 59) There is no guarantee that an activity will be stopped prior to being destroyed. A. True B. False Ans: A 60) Intents A. are messages that are sent among major building blocks B. trigger activities to being, services to start or stop, or broadcast C. are asynchronous D. all of these Ans: D 61) In an explicit intent, the sender specifies the type of receiver. A. True B. False Ans: B 62) an implicit intent is the sender specifies the type of receiver? A. True B. False Ans: A 63) When the activity is not in focus, but still visible on the screen it is in? A. running state B. Paused state C. stopped state D. destroyed state Ans: B 64) An activity in a stopped state is doing nothing. A. True B. False Ans: B 65) Application contexts are independent of the activity life cycle. A. True B. False Ans: A 66) Services have any user interface components A. True B. False Ans: B 67) Broadcast receivers are Android’s implementation of a system-wide publish/subscribe mechanism, or more precisely, what design pattern? A. Observer B. Facade C. Mediator D. Command Ans: A 68) There can be only one running activity at a given time. A. True B. False Ans: A 69) YAMBA stands for Yet Another Mobile Banking App. A. True B. False Ans: B 70) Lists and adapters are more organizational aids than user interface elements in Android. A. True B. False Ans: A 71) What built-in database is Android shipped with? A. SQLite B. Apache C. MySQL D. Oracle Ans: A 72) Creating a UI (User Interface) in Android requires careful use of... A. Java and SQL B. XML and Java C. XML and C++ D. Dreamweaver Ans: B 73) A good example app should demonstrate most of the aspects of the application framework that are unique to Android. A. True B. False Ans: A 74) What will services be used for in the Yamba project? A. Recompile the source code B. It will update tweets periodically in the background C. The services will pause the app D. Configures the user interface Ans: B 75) Which answer is not part of the design philosophy talked about in chapter five? A. Always whole and complete B. Small increments C. Lagre increments D. Refactoring code Ans: C 76) App Widgets are can be place on the home screen by the user to check for updates are available? A. True B. False Ans: A 77) The android OS comes with many useful system services, which include processes you can easily ask for things such as your.. A. All of these and more. B. Location C. Sensor Readings D. WiFi? Hot Spots Ans: A 78) What does the Gargenta mean in his Design Philosophy when he says that the project will, "Always be whole and complete"? A. He means that when we finish the entire project we will have a working application, even though there will be points along the way when we will stop and the application will not run. B. He means that the program must always be able to compile. C. He means that we will work on the program by adding self contained chunks to it so that at every stopping point the application runs as though it were a whole and complete application. Each additional chunk simply adds a new functionality to the application. D. None of the above Ans: C 79) An Android application is a loose collection of content providers, activities, broadcast receivers, and services. A. True B. False Ans: A 80) Which of the following is NOT an activity we will be creating for the YAMBA project? A. Preferences Activity B. Update Activity C. Timeline Activity D. Status Activity Ans: B 81) The timeline receiver will receive messages from the Android system. A. True B. False Ans: B 82) Status data will be exposed to the rest of the Android system via: A. Intents B. A content provider C. Network receivers D. Altering permissions Ans: B 83) If the UI begins to behave sluggishly or crash while making network calls, this is likely due to... A. Network latency B. Hardware malfunctions C. Virus on the Server D. Activity manager contains too much. Ans: A 84) How does Gargenta approach the problem of the app acting sluggishly due to network latency? A. Starting over B. Switching API levels C. Refactoring code D. Multithreading Ans: D ANDROID Questions and Answers pdf Download Read the full article
0 notes
Text
300+ TOP QTP Objective Questions and Answers
QTP Multiple Choice Questions :-
1) By default, how many no of tables would be there in a script? A. 1 B. 2 C. 3 D. 4 Ans: B 2) Where can you associate a function library to a test? A. Run Options B. Test Settings C. View Options D. Function Definition Generator Ans: B 3) To invoke the function which does not return any value, we can use A. CALL function name B. function name C. Both A & B D. None Ans: A 4) The result of the checkpoints can be stored in a variable A. Yes B. No C. Maybe. Depends on the type of checkpoint. Ans: A 5) Parameterization generally involves A. Data table B. Random number C. Environment D. All of the Above Ans: D 6) The file which is used for recovering from the run time errors has an extension A. QRS B. TSR C. PNG D. DAT Ans: A 7) Among the following recording modes, which method uses both the objects and mouse coordinates A. Normal B. Low level C. Analog D. Both B & C Ans: B 8) Where do you mark an action as reusable? A. Action Settings B. Action Properties C. Action Run Properties D. Action Call Properties Ans: B 9) After running a test that contains both input and output parameters, where can the results of an output parameter be found? A. Local Data Sheet B. Global Data Sheet C. Run-time Data Table D. Design-time Data Table Ans: C 10) If you have a Virtual Object Collection stored on your machine, and you don’t want to use it what you must do? A. Disable Virtual Objects in Test Settings B. Remove the Collection from your machine C. Disable Virtual Objects in General Options D. Remove the Collections from the Resources list Ans: C
QTP MCQs 11) Constant “2” with the reporter statement returns A. Pass B. Fail C. Done D. WARNING! Ans: C 12) The standard timing delay for windows application is A. 20 seconds B. 60 seconds C. Infinite D. 100 seconds Ans: A 13) In VB Script functions, which one is false among the following A. Variables must be declared before use B. Variables may not be declared before use C. Variables may be declared without data types D. None Ans: B 14) Method to To count the no of rows in a table A. getrowcount B. getlinecoun C. Getcount D. Count Ans: A 15) By default, the all actions in QTP are A. non – reusable B. reusable C. external D. None Ans: A 16) If the same object is present in the local and shared repository, QTP will refer which one? A. Shared B. Local C. Both Shared and Local D. Will give an Error Ans: C 17) Which one is not true about “Call of action” A. Tester can edit the script B. Tester can’t edit the script C. Tester can view the script D. None Ans: A 18) Checkpoint which is being used for verifying the web page with W3C standard is A. Bitmap checkpoint B. Standard checkpoint C. Accessibility checkpoint D. XML checkpoint Ans: C 19) The file extension of Shared object repository file is A. .MTR B. .TSR C. .QRS D. None Ans: B 20) The standard timing delay for web based application is A. 20 seconds B. 60 seconds C. Infinite D. 100 seconds Ans: B 21) Which scripting language is used in QTP ? A. Test Script Language (TSL) B. Java Script C. ASP D. VB Script Ans: D 22) Does QTP support Data Driven Framework ? A. YES B. QTP supports only Modular Framework C. QTP is only Keyword Driven Framework D. No Ans: A 23) Select the Browsers NOT Supported by QTP ? A. IE B. Netscape C. Safari D. AOL Ans: C 24) “Active Screen” Technology in QTP gives A. Test Data B. Checkpoints C. Screenshots of Application Under Test (AUT) D. Object Repository Ans: C 25) Does the “Information” Toolbar in QTP 10.x give the Syntax Errors if any in the script ? A. YES B. NO C. It gives syntax errors only related to functions Ans: A 26) Method to To count the no of rows in a table A. getrowcount B. getlinecount C. Getcount D. Count Ans: A 27) Select Case statement is end with A. end case B. exit case C. esac D. end select Ans: D 28) Object Repository is available in 3 modes viz. a) Per-Action Object Repository b) Shared Object Repository, c) Unshared Object Repository A. Both a & b B. Both a & c C. Both b & c D. Only a Ans: A 29) What is the correct order of events in Test Script Creation ? A. Plan, Record , Debug, Enhance B. Plan , Record , Enhance , Debug C. Record, Debug , Plan , Enhance D. Record, Enhance, Debug , Plan Ans: B 30) Which one is the default data type of QTP A. integer B. String C. Variant D. Double Ans: B 31) To use the non-standard windows object, we can go for A. Object spy B. Virtual objects C. Object identification D. None Ans: B 32) Select INVALID Checkpoint Type from the following A. Page Checkpoint B. Accessibility Checkpoint C. Object Checkpoint D. XML Checkpoint Ans: C 33) To terminate the script execution, during running, QTP uses A. Exit run B. Stop run C. Quit D. None Ans: A 34) BITMAP Checkpoint checks the property values of an image ? A. YES B. NO Ans: B 35) Synchronization Point is used :- A. To delay QTP execution until Application Under Test (AUT) attains certain status B. To synchronize execution in multiple instances of QTP C. To synchronize per action and shared object repositories Ans: A 36) Do statement always end with A. end while B. End do C. Wend D. Loop Ans: D 37) By default a Datable contains :- A. One Action Sheet and One Global Sheet B. Two Global Sheets C. Two Action Sheets D. Two Action Sheets and One Global Sheet Ans: A 38) Results Table (results of a test) is available in which following locations ? A. Test Script Folder B. Test Configuration Folder C. Test Results Folder D. Test Functions Folder Ans: C 39) *.mts file contains :- A. Sequence and iterations of Actions to be executed B. User created library functions C. Per-Action Object Repository Files D. Parameter used in Actions Ans: A 40) The feature of selecting different values of test data at run-time is called A. Synchronization B. Parameterization C. Smart Identification D. Transaction Ans: B 41) Can Checkpoints be parameterized ? A. YES B. NO C. Maybe. Depends on the type of checkpoints Ans: A 42) Can Test-Data in “Action Sheet” of Data Table be used from one action to another ? A. YES B. NO Ans: B 43) Text Output Value - a) outputs property value of any object b) outputs text string appearing in AUT c) outputs part of displayed text appearing in AUT A. only a B. only b C. only c D. both b & c Ans: D 44) Select the valid types of Actions in QTP a) Nested Actions b) Shared Actions c) External Actions d) Reusable Actions A. both b & c B. both b & d C. both a & d D. both a & c Ans: C 45) Can Actions inserted as “Call to Action” be modified by the test engineer? A. YES B. NO Ans: B 46) Action Sheet (in Data Table) of an action inserted as “Copy of an Action” is editable only from the test from which they were created ? A. YES B. NO Ans: B 47) Action Iteration is :- A. Number of times action would be executed every global iteration B. Number of time action would be executed in entire test execution C. Number of times all actions would be executed globally. Ans: A 48) Choose the valid syntax to call Action 1 ( from Action 0) with input parameter “action_in” and store the output in a variable “MyVariable” A. RunAction 'Action1', oneIteration, Parameter(“action_in”), MyVariable B. RunAction 'Action0', oneIteration, Parameter(“action_in”), MyVariable C. RunAction 'Action1', oneIteration, MyVariable , Parameter(“action_in”) D. RunAction 'Action0', oneIteration, MyVariable , Parameter(“action_in Ans: A 49) Can we use all standard Microsoft Excel features like Formulae, Formatting , Sorting etc in QTP DataTable ? A. YES B. NO Ans: A 50) “Call to Copy” of an action can be inserted only for reusable actions ? A. NO B. YES Ans: A QTP Objective type Questions with Answers 51) Parameterization of all Test data in a script can be done using A. Object Repository Manager B. Virtual Object Manager C. Data Driver D. Variable Driver Ans: C 52) Are Nested Actions Call to one Action from Another ? A. YES B. NO Ans: A 53) Is the Shared ( Global ) Action Repository the default repository in QTP ? A. YES B. NO Ans: B 54) In a Per – Action (Local) Repository Action 1 and Action 2 in the same test script would have different object repositories? A. YES B. NO Ans: A 55) The Share Action Repository is preferable when A. The Application Under Test is Dynamic with respect time B. The Application Under Test is Internet Environment C. The Application Under Test is Static Ans: A 56) What is *.tsr file in QTP ? A. Object Repository Files B. VB Actions Files C. QTP Action Files D. Stores Test Data Ans: A 57) Object Spy can be used to A. identify the Objects that can be identified by QTP B. identify the properties used for identification of objects C. identify the properties used for identification of objects in per-action repository D. identify the properties used for identification of objects in global action repository Ans: B 58) Are Assistive properties used when mandatory properties are enough to identify an object ? A. YES B. NO Ans: A 59) Are Ordinal Identifiers used when Mandatory and Assistive properties used by QTP are not enough to identify Object? A. YES B. NO Ans: A 60) Select the Invalid type of Ordinal Identifiers Used by QTP A. Index Based B. Location based C. Creation Time D. Time Based Ans: D 61) Does Index based ordinal identifier indicates the order in which the object appears in the parent window frame or dialog box relative to other objects? A. YES B. NO Ans: B 62) Does Location based ordinal identifier indicates the order in which object appears in the application code relative to other objects? A. YES B. NO Ans: B 63) Select the environments in which Creation Time ordinal identifier is used A. SAP B. Oracle C. Web D. Java Ans: C 64) When a test is run in update mode, what is updated? A. The test results B. The object descriptions C. The action names in the test D. The logical names in the test Ans: B 65) For identification of any object the choice of ordinal identifier selected can be modified in the Object Identification Window? A. YES B. NO Ans: A 66) The Index Property value of Occurrence of the first object in source code is A. 1 B. a C. 2 D. 0 Ans: D 67) Is Smart Identification is invoked when QTP cannot recognize an object using mandatory , assistive and ordinal properties ? A. Yes B. No C. Only in Web Environments Ans: A 68) Select the type of properties used for Smart Identification A. Mandatory Properties B. Assistive Properties C. Base Filter Properties D. Smart Properties Ans: C 69) Utility to measure the timing delays between transactions, we use A. synchronization B. sync C. services D. wait Ans: C 70) Select the Invalid recording modes supported by QTP A. Low-level Recording mode B. Normal recording mode C. High-level Recording mode D. Analog recording mode Ans: C 71) What does a breakpoint do? A. Stops test execution at the specified step, after executing that step B. Stops test execution at the specified step, before executing that step C. Pauses test execution at the specified step, after executing that step D. Pauses test execution at the specified step, before executing that step Ans: D 72) Does Analog Recording mode, records exact mouse and keyboard operations ? A. YES B. NO Ans: A 73) The RunAnalog function is used to run A. Tracks B. Functions C. Analog Functions D. Analog settings Ans: A 74) Consider the QTP Script below Window(“Calculator”).WinObject(“8”).Click 21,6 Window(“Calculator”).WinObject(“WinObject”).Click 14,13 In which mode is the script recorded ? A. Analog Recording mode B. Context Sensitive mode C. Low Level Recording mode Ans: C 75) Virtual Objects are used when:- A. The objects do not exist in the Application Under Test B. Standard Objects cannot be recorded due to problems that arise during recording C. There are many objects of the same class in the Application Under Test Ans: B 76) Consider the QTP Script below:- On Error Resume Next What does the above line of code do ? A. If an error occurs in the current line of script under execution , QTP proceeds ahead to the next step B. If an error occurs in the current iteration in script execution , QTP proceeds ahead to next iteration Ans: A 77) Which of the following is an example of a missing resource? A. An object B. Run Results C. A Regular Action D. An External Action Ans: D 78) To enter the non-executable statement in QTP , we use A. single quotes B. Rem C. double quotes D. Com Ans: A 79) Select the tabs that does not appear in the debug view of QTP - A. Watch Expressions B. Variables C. Command D. Break-point Analyzer Ans: D 80) The Generate Script Function ( used for transferring script to different location ) appears in which of the following Menu Windows :- A. Object Identification B. Test Settings C. Tools/Options D. All of the Above Ans: D 81) Which icon represents Optional Steps in the Keyword View ? A. Question Mark B. Exclamation Mark C. Astrix Mark D. Dollar Mark Ans: A 82) Choose the correct order of operations done while setting a new recovery scenario A. Set the Trigger Event , Set The Recovery Operation , Set the Post – Run Recovery Option B. Set The Recovery Operation ,Set the Trigger Event, Set the Post – Run Recovery Option C. Set the Post – Run Recovery Option, Set the Trigger Event , Set The Recovery Operation Ans: A 83) Can a single test script have multiple Recover Scenarios? A. YES B. NO Ans: A 84) Is Reporter.ReportEvent Library Function is used to display images in test results ? A. YES B. NO Ans: A 85) Can User-Defined Environment Variables be used outside the QTP Environment ? A. YES B. NO Ans: B 86) Will Test Results be automatically be stored in Quality Center (QC) if we run the test script from QC A. YES B. NO Ans: A 87) Can QTP be integrated with Test Director (TD)? A. YES B. NO Ans: A 88) Select the tools that can NOT be integrated with QTP :- A. Quality Center B. Winrunner C. Silk Runner D. Test Director Ans: C 89) Select valid syntax of CallFuncEx command A. CallFuncEx ModulePath, Function, RunMinimized, CloseApp B. CallFuncEx Function, ModulePath, RunMinimized, CloseApp C. CallFuncEx ModulePath, Function, CloseApp ,RunMinimized D. CallFuncEx Function ,ModulePath, CloseApp , RunMinimized Ans: A 90) Can multiple instances/processes/sessions/windows of QTP be run at the same time? A. YES B. NO Ans: B 91) Can QTP run on multiple instances/processes/sessions/windows of Application under Test? A. YES B. NO Ans: B 92) Select the Invalid syntax to access data in Data Table via VB Scripting :- A. DataTable(“Column Name”, dtGlobalSheet) B. DataTable(“Column Name”, dtLocalSheet) C. DataTable(Column ID, Sheet ID) D. DataTable(Column Name, Sheet ID) Ans: D 93) Consider following piece of code on error resume next val=DataTable("ParamName",dtGlobalSheet) if err.number 1 then 'Parameter does not exist else 'Parameter exists end if Code highlighted above is not logically correct. Select the correct code from the options Provided A. if err.number 2 then B. if err.number val then C. if err.number “ParamName” then D. if err.number 0 then Ans: D 94) Does SetTOProperty change the property of an object stored in the Object Repository such that, next time the object is referred to in the test script the updated property of the object is used? A. Yes B. No Ans: B 95) Select the function used to set property of a run – time object :- A. SetTOProperty B. GetToProperty C. SetRoProperty D. Cannot be set Ans: D 96) Does GetROProperty return the property of a run-time object? A. Yes B. No Ans: A 97) Object Spy is used to check :- A. Test-Time Properties of an Object B. Test-time Properties and Test-Time Methods of an Object C. Run-time Properties and Run –Time Methods of an Object D. Test - time and Run-time Object Properties and Test-time and Run – time Object Methods Ans: D 98) Can Descriptive Programming be used to create Test Scripts for an application without actually recording on it ? A. Yes b. No Ans: A 99) Consider following line of code :- StartURL = "http://www.yahoo.com" Set IE = CreateObject("InternetExplorer ") IE.Visible = True IE.Navigate StartURL Set IE = Nothing The highlighted line of code is not syntactically correct. Select the correct line of code A. Set IE = CreateObject('InternetExplorer.Shell') B. Set IE = CreateObject('InternetExplorer.Run') C. Set IE = CreateObject('InternetExplorer.Application') D. Set IE = CreateObject('InternetExplorer.Script') Ans: C 100) Select the syntactically correct lines of codes :- A. Browser(creationtime=4).Page(title=Editorial CompanySearch).Link(text=Codes). B. Browser(creationtime:=4).Page(title:=Editorial CompanySearch).Link(text:=Codes). C. Browser('creationtime:=4').Page('title:=Editorial CompanySearch').Link('text:=Codes').Click D. Browser('creationtime=4').Page('title=Editorial CompanySearch').Link('text=Codes').Click Ans: C QTP Questions and Answers pdf Download Read the full article
0 notes
Text
300+ TOP iOS Objective Questions and Answers
IOS Multiple Choice Questions :-
1) When an activity doesn't exist in memory it is in. A. Starting state (Correct Answer) B. Running state C. Loading state D. Inexistent state. Ans: A 2) Does the Iphone browser support flash applications? A. Yes (Correct Answer) B. No C. Just the flash applications from apple D. Some of them Ans: A 3) Which of the following is NOT a state in the lifecycle of a service? A. Starting B. Running C. Destroyed D. Paused (Correct Answer) Ans: D 4) When an activity doesn't exist in memory it is in. A. Starting state (Correct Answer) B. Running state C. Loading state D. Inexistent state. Ans: A 5) What built-in database is Android shipped with? A. SQLite (Correct Answer) B. Apache C. MySQL D. Oracle Ans: A 6) Creating a UI (User Interface) in Android requires careful use of... A. Java and SQL B. XML and Java (Correct Answer) C. XML and C++ D. Dreamweaver Ans: B 7) The Iphone camera can: A. Zoom B. Autofocus C. Record videos D. Make digital photos (Correct Answer) Ans: D 8) Creating a UI (User Interface) in Android requires careful use of... A. Java and SQL B. XML and Java (Correct Answer) C. XML and C++ D. Dreamweaver Ans: B 9) To create an emulator, you need an AVD. What does it stand for? A. Android Virtual Display B. Android Virtual Device (Correct Answer) C. Active Virtual Device D. Application Virtual Display Ans: B 10) What built-in database is Android shipped with? A. SQLite (Correct Answer) B. Apache C. MySQL D. Oracle Ans: A
iOS MCQs 11) To create an emulator, you need an AVD. What does it stand for? A. Android Virtual Display B. Android Virtual Device (Correct Answer) C. Active Virtual Device D. Application Virtual Display Ans: B 12) App Widgets are can be place on the home screen by the user to check for updates are available? A. True (Correct Answer) B. False Ans: A 13) WHAT IS FACE TIME IN APPLE ? A. DIGITAL PHOTOS B. VIDEO CALLS (Correct Answer) C. TAKING VIDEOS D. EDITING PHOTOS Ans: B 14) The ___________ file specifies the layout of your screen. A. Layout file (Correct Answer) B. Manifest file C. Strings XML D. R file Ans: A 15) The Iphone has a feature that activates when you rotate the device from portrait to landscape. A. Rotator B. Accelerometer (Correct Answer) C. Shadow detector D. Special Sensor Ans: B 16) When the activity is not in focus, but still visible on the screen it is in? A. running state B. Paused state (Correct Answer) C. stopped state D. destroyed state Ans: B 17) The timeline receiver will receive messages from the Android system. A. True B. False (Correct Answer) Ans: B 18) App Widgets are can be place on the home screen by the user to check for updates are available? A. True (Correct Answer) B. False Ans: A 19) The iPhone is a line of Internet and multimedia-enabled smartphones designed and marketed by Intel Corporation. A. True B. False (Correct Answer) Ans: B 20) An Android application is a loose collection of content providers, activities, broadcast receivers, and services. A. True (Correct Answer) B. False Ans: A IOS Objective type Questions with Answers 21) The android OS comes with many useful system services, which include processes you can easily ask for things such as your.. A. All of these and more. (Correct Answer) B. Location C. Sensor Readings D. WiFi? Hot Spots Ans: A 22. Your routers at ACME are having some connectivity issues. You issueshow commands for each connecting router's interface. Why are they unable to communicate? A. Incorrect IP address B. Wrong routing protocol C. Bad cable D. Encapsulation mismatch Ans: D 23. You need to back up the configurations you just made but there are no TFTP servers available. Which of the following commands are options to backup your currently running configuration? (Choose all that apply.) A. Router1#copy running-config startup-config B. Router1#copy running-config flash C. Router1#copy startup-config running-config D. Router1#copy running-config rcp Ans: A,B,D 24. You are consulting a small business that is establishing its first WAN link. The client wants to know what encapsulation you will be using on the link. Which of the following are valid encapsulations for WAN links? (Choose all that apply.) A. Frame relay B. Ethernet C. Token ring D. PPP E. q E. HDLC Ans: A,D,E 25. Your boss is concerned about security on your network. She wants to make sure that no one can identify passwords if they happen to view a configuration on your router. What command will encrypt all passwords on your router? A. Router1#service password-encryption B. Router1(config)#service password-encryption C. Router1#enable secret password D. Router1(config)#enable secret password Ans: B 26. You need to set up a password that will prevent unauthorized users from telnetting into your router. What series of commands would you use? A. Acme1(config)# line console 0 Acme1(config-line)# password acme Acme1(config-line)# login B. Acme1(config)# line vty 0 Acme1(config-line)# enable password acme C. Acme1(config)# line vty 0 Acme1(config-line)# enable secret acme Acme1(config-line)# login D. Acme1(config)# line vty 0 Acme1(config-line)# password acme Acme1(config-line)# login Ans: D 27. When setting up your serial interfaces, what does the clockrate command do for your connection? A. Establishes the timing at which you send data B. Establishes keepalives C. Establishes the advertised bandwidth D. Establishes the time on the router Ans: A 28. You need to set up passwords on all your default Telnet lines. What command would you start with? A. Router1(config)#telnet configuration B. Router1(config)#interface Ethernet 0/1 C. Router1(config)#line vty 1 5 D. Router1(config)#line vty 0 4 Ans: D 29. You can execute show commands at which prompt? (Choose all that apply.) A. Router1# B. Router1(config)# C. Router1(config-router)# D. Router1> E. romon1> Ans: A,D 30. You are configuring your router and type in an Enable password and an Enable Secretpassword. Your fellow network technician asks you why you have two passwords set when you only need one. What do you tell him? A. The Enable password is used by low-level applications. B. If you reverted to an older version of the IOS, it would not understand the Secret password. C. Both passwords are treated the same. D. It is a failsafe method of ensuring that people need to type two passwords instead of just one. Ans: B 31. In which of the following modes in Cisco's IOS can you issue showcommands? A. User B. Privileged C. Line Configuration D. Global Configuration Ans: A,B 32. You are the network administrator for a large corporation. You want to be able to store all your configurations in a centralized location. Which of these servers will allow you to do so? (Choose all that apply.) A. FTP B. TFTP C. SQL D. Oracle Ans: A,B 33. You need to troubleshoot your network IP connectivity. Which of the following commands would you use to find the IP address on your Ethernet 0 interface? A. ping B. IPConfig C. traceroute D. Show interface Ethernet 0 Ans: D 34. Which command would you use in the CLI at User mode to enter Privileged EXEC mode? A. Privilege B. Admin C. Enable D. Disable Ans: C 35. You have just received 14 Catalyst 3550 switches for your network. What is required to get them functioning correctly in your network? A. Nothing B. Set up an IP address on the switch C. Interconnect them to routers D. Install the Cisco IOS Ans: A 36. Which of the following prompts indicates your router is in Privileged EXEC mode? A. Router> B. Router# C. Router& D. Router$ Ans: B 37. You have made a console connection to your Cisco Catalyst 1900 series switch and you see the > symbol in HyperTerminal. What does it mean? A. You are in Privileged EXEC mode. B. You are in User EXEC mode. C. The switch has not been configured. D. The switch is in need of repairs. Ans: B 38. You would like to assign a meaningful name to your Catalyst 1900 series switch—what command should you use? A. enable B. host name C. hostname D. name Ans: C 39. You need to assign an IP address to your Catalyst 1912 switch. You are at the HQ_SW1>prompt. What is the correct series of commands? (cr = carriage return) A. enable ip address 10.1.1.1 B. enable ip address 10.1.1.1 255.0.0.0 C. enable configure terminal ip address 10.1.1.1 D. enable configure terminal ip address 10.1.1.1 255.0.0.0 Ans: D 40. Which of the following commands displays the syntax for the clock command? A. cl? B. clock? C. clock ? D. cl ? Ans: C IOS Questions and Answers pdf Download Read the full article
0 notes
Text
300+ TOP SELENIUM Objective Questions and Answers
SELENIUM Multiple Choice Questions :-
1. The test language usually used in Selenium is ________________. A. PHP B. Python C. JavaScript D. None of the above Ans: C 2. The term AJAX expands to ________. A. Asynchronous Java and XML B. Asynchronous JavaScript and XML C. Accumulated Java and XML D. None of the above Ans: B 3. The term JSON refers to ______________. A. JavaScript Object Notation B. Java Object Notation C. Java Object Naming D. None of the above Ans: A 4. Selenium tests _____________. A. DOS applications B. Browser-based applications C. GUI applications D. None of the above Ans: B 5. Selenium variables are stored in _____________. A. storedVars B. storedVariables C. VariablesStore D. None of the above Ans: A 6. Which selenium command check whether specific text exists somewhere on the page ? A. verifyTextPresent B. verifyTextPresent C. CheckTextPresent D. VerifyPresentText Ans: A 7. What does the term CSS refers to ? A. Cascade Style Sheets B. Cascading Style Sheets C. Clear Style Sheets D. Catering Style Sheets Ans: B 8. What is Selenium IDE ? A. Windows Software B. Firefox Plug-in C. Java Software D. Flash Plug-in Ans: B 9. What is called that scale for large test suites or test suites that must be run in multiple environments? A. Selenium-Grid B. Selenium RC C. Selenium Web driver D. Selenium NG Ans: A 10. Where is XPath used in ? A. XML documents B. MS-Word documents C. MS-Excel documents D. MS-PowerPoint documents Ans: A
SELENIUM MCQs 11. What does the term DOM refers to ? A. Dynamic Object Model B. Document Object Model C. Data Object Model D. Document Flow Object Model Ans: B 12. What does the term regex expands to ? A. Registered Expression B. Regular Expression C. Regression Expression D. Regional Expression Ans: B 13. Which label is used as prefix pattern to specify a globbing pattern parameter for a Selenese command ? A. pattern B. glob C. regex D. None Ans: B 14. What is a test suite made of ? A. Test packs B. Tests C. Test blocks D. Test pattern Ans: B 15. What does the assertTitle checks ? A. Element title B. Page title C. Block title D. Title of element under focus Ans: B 16. Select the component which is NOT part of Selenium suite. A. Selenium IDE B. Selenium RC C. SeleniumGrid D. Selenium Web Ans: D 17. Select the language which is NOT supported by the Selenium RC. A. ASP B. Java C. C# D. PHP Ans: A 18. Select the name which is NOT the type of the locaters. A. ID B. Name C. Password D. Link Text Ans: A,C 19. Is Web Driver a component of the Selenium? A. No B. Yes Ans: B 20. Selenium IDE stands for A. Selenium Intialization Development Environment B. Selenium Interrelated Development Environment C. Selenium Integrated Development Environment D. Selenium Information Development Environment Ans: C 21. Select the Browser which is supported by Selenium IDE A. Google chrome B. Opera mini C. Mozilla Firefox D. Internet Explorer Ans: C 22. Select the operating system which is NOT supported by Selenium IDE. A. Unix B. Linux C. Windows D. Solaris Ans: A 23. The Web driver is used A. To execute tests on the HtmlUnit browser. B. To design a test using Selenese C. To quickly create tests D. To test a web application against Firefox only. Ans: A 24. The Selenium IDE is used A. To create customized test results. B. To deploy your tests across multiple environments using Selenium Grid C. To test with HTMLUnit D. To test a web application against Firefox only. Ans: D 25. The Selenium RC is used A. To run your test against different browsers (except HtmlUnit) on different operating systems. B. To create tests with little or no prior knowledge in programming. C. To test a web application against Firefox only. D. To run a huge test suite, that can be executed on multiple machines. Ans: A 26. Out of the following which can only test web applications A. QTP B. Selenium Ans: B 27. Select the command which is NOT a type of assertion in Selenium IDE. A. Assert B. Verify C. WaitFor D. Wait Ans: D 28. Select the method which selects the option at the given index. A. selectByIndex() B. selectIndex() C. selectedByIndex() D. selectByIndexes() Ans: A 29. The Selenium can A. access controls within the desktop B. both web and desktop applications C. only test web applications Ans: C 30. The Selenium A. Provides professional customer support B. Test Reports are generated automatically C. Comes with a built-in object repository D. Cannot access elements outside of the web application under test Ans: D 31. Can Google chrome be supported by Selenium IDE? A. Yes B. No Ans: B 32. Can Unix operating system be supported by Selenium IDE? A. No B. Yes Ans: A 33. Which command can be used to enter values onto text boxes? A. sendsKeys() B. sendKey() C. sendKeys D. sendKeys() Ans: D 34. Select the language which is supported by The Selenium Web Driver A. Perl B. Sql C. ASP D. Cobol Ans: A 35. Which Selenium component supports All Operating System? A. Selenium Generator B. Selenium IDE C. Selenium WebDriver Ans: C 36. Select the command in Selenium IDE used to open a page using the URL. A. OpenRecord B. Open C. OpenText D. OpenTable Ans: B 37. In case of Selenium IDE, the Source view shows your script in A. DHTML format B. J2EE format C. XML format D. HTML format. Ans: C 38. The Actions commands A. are commands that directly interact with page elements. B. are commands that allow you to store values to a variable. C. are commands that verify if a certain condition is met. Ans: A 39. Select the command which is used to check the presence of a certain element. A. verifyTable B. verifyTitlePresent C. verifyTextPresent D. verifyElementPresent Ans: D 40. Select the command which is used to print a string value or a variable in Selenium IDE. A. The 'display' command B. The 'echo' command C. The 'print' command D. The 'printr' command Ans: B 41. Which component of Selenium can create customized test results. A. Web driver B. Selenium RC C. Selenium IDE D. Selenium Grid Ans: A 42. Select the command which is used to compare the contents of a table with expected values. A. verifyTables B. verifyTableData C. verifyTable D. verifyTableCell Ans: C 43. Select the command which is used to pause execution until the specified element becomes present. A. waitForElementPresent B. waitForPagePresent C. waitForTablePresent D. waitForFieldPresent Ans: A 44. Select the command that will NOT wait for a new page to load before moving onto the next command. A. clickAndWait B. selectAndType C. typeAndWait D. selectAndWait Ans: B 45. Select the command which is used to pause execution until the page is loaded completely. A. waitForPageToLoad B. waitForElementPresent C. waitForPage D. waitForLoad Ans: A 46. Select the syntax to locate an element using inner text. A. css=tag:contains(“inner text”) B. css=tag:value(“inner text”) C. css=tag:attributes(“inner text”) D. css=tag:class(“inner text”) Ans: A 47. Select the command which is used to compare the actual page title with an expected value. A. verifyTitle B. verifiedTitle C. verifyTitles D. verifiedTitles Ans: A 48. Select the command which is NOT used in verifying page elements . A. verifyElementPresent B. verifyElementRight C. verifyElementNotPresent D. verifyElementPositionLeft Ans: B 49. Select the tab which gives feedback and other useful information when executing tests. A. Information B. Feedback C. Reference D. Element Ans: C 50. What is TestNG? A. TestNextGeneration B. TestNewGenerlization C. TestNewGeneration D. TestNextGenerations Ans: A SELENIUM Objective type Questions with Answers 51. Select the variation which finds elements based on the driver’s underlying CSS selector engine in Web driver Selenium. A. By.cssSelected B. By.cssSelection C. By.cssSelector D. By.Selectcs Ans: C 52. Select the variation which locates elements by the value of the “name” attribute in Web driver Selenium A. By.name B. By.nametag C. By.tagname D. By.nametags Ans: A 53. Select the tab that shows which command Selenium IDE is currently executing. A. Variable B. Data C. Information D. Info Ans: D 54. Which is a faster component between the SeleniumWeb driver and Selenium RC? A. Selenium RC B. Selenium Web driver Ans: B 55. Select the variation which locates elements by the value of their “id” attribute in Web Driver Selenium A. By.id B. By.idno C. By.id_no D. By.tag_id Ans: A 56. Select the Get command which fetches the inner text of the element that you specify in Web driver Selenium. A. getinnerText() B. get_in_Text() C. get_inner_Text() D. getText() Ans: D 57. Which Navigate command takes you forward by one page on the browser’s history in Web driver Selenium. A. navigate.forward() B. navigate().forward() C. navigate()_forward() D. navigate_forword() Ans: B 58. Which method is used when you want to verify whether a certain check box, radio button, or option in a drop-down box is selected in Web driver Selenium A. is_Selected() B. isSelect() C. isSelected() D. is_Select() Ans: C 59. Which Component is used to run multiple tests simultaneously in different browsers and platforms? A. Selenium Grid B. Selenium IDE C. Selenium RC D. Selenium Webdriver Ans: A 60. Select the View which shows your script in HTML format. A. The Table View B. The Source View C. The Editor View D. The Field View Ans: B 61. Select the method which clears all selected entries in Web driver Selenium. A. dselectAll() B. deselect_All() C. dselect_All() D. deselectAll() Ans: D 62. Method which selects the option which displays the text matching the parameter passed to it A. selectVisibleText() B. selectByVisibleText() C. select_VisibleText() D. select_ByVisibleText() Ans: B 63. Out of the following which is NOT a wait command. A. waitForTitle B. waitForTextPresent C. waitForActive D. waitForAlert Ans: C 64. Select the command which retrieves the alert message and stores it in a variable that you will specify. A. storeAlert B. storedAlert C. store_Alert D. storesAlert Ans: A 65. Select the method which performs a context-click at the current mouse location. A. click_Context() B. context.Click() C. contextClick() D. context_Click() Ans: C 66. By Default time of WAITFOR command is : A. 15 sec B. 20 sec C. 25 sec D. 30 sec Ans: D 67. Selenium is compatible with A. CSS1.0 and CSS 2.0, B. CSS1.0, CSS 2.0, and CSS 3.0 selectors. C. CSS 2.0, and CSS 3.0 selectors. D. CSS1.0, CSS 2.0, CSS 3.0 and CSS 4.0 selectors. Ans: B 68. In Selenium variables are stored in _________ . A. storedVars B. storedVariables C. VariablesStore D. All of the above Ans: A 69. Which command should be used to confirm that test will pass in the future, when new element is added after page loaded? A. waitForElementPresent B. pause C. assertElementPresent D. None of these Ans: A 70. Which is the following is true in case of waitFor command? A. waitForAlertPresent B. waitForTextPresent C. waitForFramePresent D. waitForPageToLoad Ans: B 71. How to execute specific command? A. Highlight a command. Press Ctrl + F9. B. Highlight a command. Press Alt + F9. C. Highlight a command. Press Ctrl + X. D. Highlight a command. Press X. Ans: D 72. Which is odd one out? A. ID B. XPath C. CSS selector D. Pattern matching Ans: D 73. Which command is used to extend the time limit of WAITFOR command? A. Extend waitFor (time in sec) B. waitFor (time in sec) extend C. setTimeout (time in sec) D. setTimeout. Ans: D 74. ___________ finds the item ending with the value passed in. This is the equivalent to the XPath ends-with. Is concern with? A. ^= B. $= C. *= D. &= Ans: B 75. In Selenium, Following Axis is related to: A. Selects all the siblings after the current element B. Selects all elements that follow the closing tab of the current elements. C. Selects all of the siblings before the current element D. Selects all elements that are before the current element Ans: B 76. The // tells the query that A. It needs to stop at the first element that it finds. B. This is comment C. The path of the file or folder D. All of these Ans: A 77. In regular Expression * quantifier refers to: A. 0 or more of the preceding character. B. 1 or more of the preceding character C. 0 or 1 of the preceding character D. All of these Ans: A 78. Which regular expression sequence that loosely translates to "anything or nothing?" A. .* (dot star) B. *. (star dot) C. “? D. *+ Ans: A 79. Which is a procedure? A. Wait B. Exit C. WaitForProperty D. None of these. Ans: A 80. Variable can be saved in which format? A. ${variableName} B. storedVars. C. Both of these D. None of these Ans: C 81. We use the dot (.) operator followed by either a * or a +. The + tells the regular expression that there will be instances between "0" and "n", while the * tells the regular expression that there will be instances between "1" and "n". A. True B. False Ans: B 82. Applications do not have the items needed for the tests when the tests get to commands. To get around this, we had a look at adding fro waitFor commands to test. This is related to A. Debugging tests B. Working with AJAX applications C. Working with multiple windows D. All of these Ans: B 83. What is the most common way to find an element on a page? A. ID B. XPath C. CSS selector D. Name Ans: 84. Which is not true in case of Globs, in Selenium? A. Globs are used as default pattern matching technique. B. It is similar to regular expressions. C. The syntax of Globs is much wider than Regular expression D. B and C Ans: C 85. Which process use the JavaScript to find an element? A. By DOM query B. BY XPath query C. BY CSS sector D. All of these Ans: A 86. Which of the following is not verify and asserts method in Selenium? A. VerifyElementPresent B. VerifyElementNotPresent C. VerifyText D. VerifyTextAttributes Ans: D 87. If you wanted to access the element that has the text "This element has an ID that changes every time the page is loaded" in it, then which of the following is used: A. //div B. //div C. //div D. //div Ans: A 88. To delete a cookie we need to call the deleteCookie method, passing in two parameters. A. The first parameter is the name of the cookie, and the second parameter is where it was created. B. The first parameter is where it was created, and the second parameter is the name of cookie. C. None of these Ans: A 89. What is the default port number used by hub in selenium? A. 4444 B. 2222 C. 1111 D. 3333 Ans: A 90. Which two commands you use to validate a button? A. VerifyTextPresent and assertTextPresent B. VerifyElementPresent and assertElementPresent C. VerifyAlertPresent and assertAlertPresent D. VerifyAlert and assertAlert Ans: B 91. In selenium, parent and child nodes are in same query because HTML has a tree structure. A. True B. False Ans: A 92. Selects all the parent, grandparent, and so on of the element is related to which axis name in Selenium: A. Ancestor B. Preceding C. Parent D. All of these. Ans: A 93. Variable can be saved in which format? A. ${variableName} B. storedVars. C. Both of these D. None of these Ans: C 94. echo(): is used A. to display the value of a variable in the log file, which can be very valuable for debugging. B. Display the value of a variable named answer in the log file, what would the first argument to the previous command look like. C. Both of these D. None of these Ans: C SELENIUM Questions and Answers pdf Download Read the full article
0 notes
Text
300+ TOP PERL SCRIPTING Objective Questions and Answers
PERL SCRIPTING MULTIPLE CHOICE Questions :-
1. When you’re pattern matching, you describe the pattern using: A. A string in double quotes B. A MySQL select statement C. A regular expression D. A template Ans: C 2. Perl is: A. A type of interactive web page B. A programming language C. An application program D. A relational database Ans: B 3. The printf format “%6.2f” displays a number … A. At least six columns wide in total, with two figures after the decimal place B. Exactly six digits before the decimal place, and two digits after C. At least six digits before the decimal place, and two digits after D. Exactly six columns wide in total, with two figures after the decimal place Ans: A 4. The statement open (FH,”abc.txt”); A. opens the file abc.txt for overwriting B. opens the file abc.txt for reading C. contains an error, so won’t compile D. opens the file abc.txt for appending Ans: B 5. When you create a variable, you may assume it starts off containing: A. 1 B. You may not make any assumption C. The boolean value “false” D. A null string (or 0 arithmetically) Ans: D 6. Which brackets do you use to change the order of precedence of operations? A. Curly braces B. Square brackets C. Round brackets D. You don’t use brackets in Perl – you write in RPN (Reverse Polish Notation) Ans: C 7. Which of the following tests if the string held in $qn includes the word “perl”? A. if ($qn =~ /perl/) ….. B. if ($qn == “perl”) …. C. if ($qn = “perl”) ….. D. if ($qn eq “perl”) ….. Ans: B 8. Which of these is NOT available for Perl: A. Perl, legally, for free B. Individual and site licenses C. Full documentation of the language which you can print out yourself D. A Carribean cruise in 2006 on which you can meet some of the Perl gurus. Ans: C 9. Perl was first released in: A. 1978 B. 1998 C. Perl hasn’t yet been released D. 1988 Ans: D 10. What will be printed by the code below? 58% on 4261 times asked my $val = ‘x’; print ref($val); A. SCALAR B. empty value C. STRING D. “not a reference” Ans: B
PERL SCRIPTING MCQs 11. What is a file handle used for? A. Reading binary data from a file into a scalar variable B. Finding where a file is on the disc C. Accessing a disc file or other input/output stream D. Deleting, moving or renaming a file Ans: A 12. The “%” operator returns: A. The larger of two numbers e.g. 200 % 20 would return 200 B. A percentage of a number e.g. 200 % 20 would return 40 C. The remainder when one number is divided by another D. The remainder when one number is divided by another e.g. 18 % 7 would return 5 Ans: C 13. What is Perl? A. Practical Extraction and Report Language B. Practice for Exclusive and Report Language C. Practical Extraction and Report Learning D. Practical Exclusive and Report Language Ans: A 14. Which of the following is used in perl? A. else if B. elseif C. elsif D. elif Ans: C 15. The $_ variable A. holds the last pattern matched. B. holds the output field separator. C. identifies the current command line argument. D. none of the above is correct. Ans: D 16. The getdir command A. Reads a single file name from an open directory handle. B. Reads the rest of the file names from an open directory handle. C. Only works after anopendir command. D. Is not a perl command. Ans: D 17. The value of the expression $yards += 10 A. is 10. B. is true. C. cannot be determined from the information given. D. relies on which command line arguments were used. Ans: C PERL SCRIPTING Objective type Questions with Answers 18. $x = @y assigns$x the third, fourth and fifth elements of the y array concatenated together. A. assigns$y to $x. B. assigns$y to $x. C. assigns 3 to$x. Ans: B 19. Which of the following commands will turn a scalar ($str)into an array of characters? A. @a = split($str). B. @a = split(/\s/, $str). C. This task can be done in Perl but none of the above commands do it. Ans: C 20. A. more than one of the above is correct. B. identifies any command line arguments starting with a-. C. will read the standard input if no arguments are listed on the command line. D. can be used to read each line in every file name listed on the command line. Ans: A 21) In Perl, a/n ________ is a special character or a sequence that will define the number of times the previous character or sequence appears. a) character class b) metacharacter c) assertion d) quantifier Ans: d 22) In Perl, the following will result in which of the following, if the prize is currently “5 dollars” print ‘You won $prize’; a) You won $5.00 b) You won 5 dollars c) You won $prize d) You won $5 Ans: c 23) In Perl, the words function and subroutines are used interchangeably. a) True b) False Ans: a 24) In Perl, which of the following are file handles? a) stdquit b) stdend c) stdin d) stdout e) C&D Ans: e 25) In Perl, which switch is used for printing out warnings about typographical errors in your script? a) -P b) -W c) -p d) -w Ans: d 26) In Perl, “stat” returns a thirteen element array with which of the following values? a) Perl version ID b) Web server ID c) Last access d) Inode number e) C&E Ans: e 27) CGI is a programming language. a) True b) False Ans: b 28) In Perl, scalar variables always begin with a ________ sign. a) # b) @ c) % d) $ Ans: d 29. What will be printed by the code below? my $val = {}; print ref($val); A. empty value B. ARRAY C. HASH D. SCALAR E. True Ans: C 30. What will be printed by the code below? my @a = (0, 1, 2); my $b = @a; print $b; A. 0 B. 1 C. 2 D. 3 E. 0 1 2 Ans: D 31. What output will be generated by this statement: print(“Hello\nworld\n\nThis is Perl\n”);? A. Hello world This is Perl B. Hello world This is Perl C. Hello World This is Perl D. Hello world\n\nThis is Perl Ans: C 32. What is the result of this script: $a = “This is Perl”; $b=”This is Perl\n\n”; chomp($a); chomp($b);? A. $a contains “This is Perl”; $b contains “This is Perl\n” B. $a contains “This is Per”; $b contains “This is Perl\n” C. $a contains “This is Perl”; $b contains “This is Perl” D. $a contains “This is Perl\n”; $b contains “This is Perl\n” Ans: A 33. What will be the value in the variable $a after these two statements: $a = “Hello”; $a = “world”;? A. “Hello world” B. “Helloworld” C. “Hello” D. “world” Ans: D 34. I want to write an appointment manager program for Microsoft Windows users. It must have a GUI, it must be very fast, and it depends on special GUI features found on only Microsoft Windows. What is the best language for the job? A. Perl B. Java C. C++ D. Java, Perl, and C++ are equally good for the job. Ans: C 35. There is another popular scripting language called Python. Like Perl, it reads and runs scripts in one step instead of compiling them ahead of time. What would I need on my computer to use Python? A. A Python compiler B. A Python editor C. A Python virtual machine D. A Python interpreter Ans: D PERL SCRIPTING Questions and Answers Pdf Download Read the full article
0 notes
Text
300+ TOP OBIEE Objective Questions and Answers
OBIEE MULTIPLE CHOICE Questions :-
1. Which of the following is NOT true of the Exhibit? A. The query was filtered by the sales reps’ first names B. The results’ layout includes Title, Chart, and Table views. C. The query was sorted by the Dollars (ascending) D. none of the above Ans: C 2. What can be used to customize the user interface in Siebel Analytics Web? A. Dashboard Editor B. Styles and skins C. Scripts in installation folders D. JavaScript Ans: B 3. Which of the following charts would best suit your needs? A. Bar charts B. Area charts C. Pareto charts D. Scatter charts Ans: D 4. Which of the statements is true of a view selector view? A. It is used to show SQL generated for a request B. It is used to show filters in effect for a request. C. It is used to display results as a marquee (moving results that scroll across a page). D. It is used to select a specific view of results from saved views. Ans: D 5. Which of the following would NOT be the best candidate for business intelligence tools such as Siebel Analytics? A. Analyzing data that reside in many systems B. Analyzing data that require accessing millions of records C. Interactive and dynamic reporting D. Merging two Excel files for operational processing Ans: D 6. Why would you set default values for global filters? A. Because setting a default value creates a larger data set B. Because not setting the value will return all the data and thus negatively impact performance C. Because the user may want it to default to a certain value D. Because Siebel 7.7 requires a default value be set Ans: B 7. Which of the following is NOT where you can find the path to the request that you want to add to the new Analytics Dashboard view that you just created? A. In Siebel Webcat B. From the browser’s URL address window C. In Siebel Intelligence Dashboard > Edit Dashboard D. In Siebel Intelligence Dashboard > Admin > Manage Catalog Ans: C 8. The Siebel IQY feature allows you to integrate data with: A. Text Files B. SQL C. Access D. Excel Ans: D 9. Which of the following tasks can you perform in the Catalog Manager? A. Set permissions for Web Catalog items B. Manage privileges and rights given to groups and users C. Set authentication options D. Manage Web groups and users Ans: A 10. Which of the following Dashboard contents can contain ActiveX objects, Java scripts, sound bites, or animation? A. Links and images B. Embedded content C. HTML object D. Folders Ans: C
OBIEE MCQs 11. What type of access can view content, but not make changes? A. No Access B. Traverse Folder C. Change/Delete D. Read Ans: D 12. Which CSS (cascading style sheet) influences the overall appearance of a dashboard’s main content area, including background color of dashboard page and page tab color? A. PortalBanner.css B. Views.css C. PortalContent.css D. DashboardBanner.css Ans: C 13. Which of the following is NOT true of the Intelligence Dashboards? A. They can provide personalized views and preconfigured views B. They can be created base on a user’s permission C. Users with common responsibilities or job functions can share a dashboard D. Dashboard objects are saved in the repository Ans: D 14. Which of the following is NOT a correct step of how Siebel Analytics applications handle Answers requests? A. The Siebel Analytics Server makes a request to the Siebel Analytics Web Server to retrieve the data request from a user through an Answers UI B. The Siebel Analytics Server, using the RPD, optimizes functions to request the data from the data sources C. The Siebel Analytics Server receives the data from the data sources and processes as necessary D. The Siebel Analytics Server passes the data to the Siebel Analytics Web Server Ans: A 15. The name of the symbolic URL has to be exactly the same as which of the following? A. The name of the business component B. The name of the calculated value of the field of the business component C. The name of the Web template item of the business component D. The name of the business object component Ans: B 16. Request 1 returns row AAA and row BBB. Request 2 returns row BBB and row CCC. An intersection of these two requests should produce which set of results? A. Row BBB B. Row AAA and row CCC C. Row AAA, row BBB, and row CCC D. Row AAA, row BBB, row BBB, and row CCC Ans: A 17. Which of the following would be true when creating filters whose values automatically change with time? A. You can meet the requirements by creating dynamic filters B. You can meet the requirement by using parenthetical filtering C. Filters cannot be combined with other column filters from the same subject area to further constrain the results of a request D. The variables have to be constructed and saved in the repository to be used in Siebel Ans: A 18. Which of the following is NOT true of the Chart view? A. You can change the axis scaling B. You can change the chart legend C. You can add titles to the axis D. All columns have to be graphed Ans: D 19. Which of the following are true of iBots? A. They are driven by events B. They can execute scripts C. They can trigger Siebel Workflow D. They cannot be subscribed Ans: A 20. What is the term for the item used to align content on a dashboard? A. Page B. Results (reports) C. Column D. Builder Ans: C 21. Which of the statements are TRUE of Bulb gauges? A. They show data with one or more indicator needles. B. Their needles change position to indicate where data falls within predefined limits. C. They are useful for scorecard-type output. D. They show data using a circle. Ans: D 22. The Saved Selections options within Intelligence Dashboards allow you to ………….. A. Switch between saved selections B. Import saved selections from an Excel spreadsheet C. Write saved selections to an Excel spreadsheet for import into other applications D. none of the above Ans: A 23. You would like to customize the text elements that appear in Siebel Answers, Siebel Delivers, and on dashboard pages. Which of the following would you use? A. Cascading Style Sheets B. DHML Message files C. XML Message files D. Siebel Web Template items Ans: C 24. Which of the following are some of the necessary steps when using iBots to trigger Siebel Workflow? A. Workflow tasks such as policies and processes must be already set up in the Siebel eBusiness applications B. Workflow policies named iBots must be set up in Siebel Tools C. A workflow Policy Object named iBots has to be created in Siebel Tools D. none of the above Ans: A 25. The members of which of the following groups can grant rights to users, set privileges to restrain access to any piece of information, and filter data so that the users have access to the data that are related to their role? A. Everyone Group B. Authenticated Users Group C. Web Administrators Group D. Administrators Group Ans: c OBIEE Objective type Questions with Answers 26. What is the default alignment for objects in sections of a dashboard? A. Horizontal B. horizontal or vertical (you set the default) C. vertical D. none of the above Ans: c 27. Which CSS (cascading style sheet) influences the overall appearance a of dashboard’s top section, including dashboard names and links? A. Views.css B. PortalBanner.css C. DashboardBanner.css D. PortalContent.css Ans: B 28. Which of the following is NOT true of the Siebel Analytics Repository? A. Repository subject areas have a one-to-one correspondence to prebuilt Intelligence Dashboards B. Prebuilt repository subject areas are exposed in Siebel Answers according to the user’s privileges C. The prebuilt Siebel Analytics Repository has industry-specific stars that map to the SRMW and Siebel OLTP database D. Business models cannot map to more than one database Ans: D 29. If you wish to drill down on a column heading, where would you add this functionality? A. Select Column Properties and choose the Column Format tab B. Modify the Physical Layer of the rpd C. Edit the Column formula D. Select Column Properties and choose the Conditional Format tab Ans: A 30. Where in the Siebel Analytics would you create Web groups and users? A. Siebel Answers B. Siebel Delivers C. Siebel Intelligence Dashboards D. Siebel Analytics Administration Ans: D 31. Which of them is/are not OBIEE Services to be started? a) Java Host b) Server c) Presentation d) Cache Ans: d 32. Which of them is/are not managed in Repository? a) Jobs b) Joins c) Catalog d) Variables Ans: c 33- Which of the Tools Utilities is not valid? a) LTS Column / Table Replacement b) Externalize String c) Updating Row Count d) Repository Documentation Ans: c 34- Type of Isolation Level including default are : a) 4 b) 5 c) 6 d) 7 Ans: b 35- Which of the Statement is/are incorrect: a) Repository Import to be activated from utilities b) Query Repository available in tools c) Projects to be allotted for MultiUser Development d) All are correct Ans: a 36- What is/are not type of measure column? a) Additive b) Semi-additive c) Count-additive d) Non-additive Ans: c 37- This is/are a dimension where data changes rapidly a) Rapidly Changing Dimension b) Slowly Changing Dimension c) Junk Dimension d) Degenerate Dimension Ans: a 38- Dimension that is/are derived from fact table and does not have its own dimension table a) Rapidly Changing Dimension b) Slowly Changing Dimension c) Junk Dimension d) Degenerate Dimension Ans: d 39- To overcome changing dimensions performance issue, we must create? a) Mini Dimension b) Segregate Dimension c) Incident Dimension d) Snapshot Dimension Ans: a 40- Best option for cache management is? a) Cache Seeding b) Cache Pruning c) Setting Event Pooling Table d) Programmatic cache management Ans: c 41- Which of them is/are not Time Series Function? a) Ago() b) Todate() c) Period() d) PeriodRolling() Ans: c 42- What cannot be done in presentation layer of Repository? a) Nesting of folders b) Set implicit fact column c) Permission grant to groups/users for security d) Performing calculations of measures Ans: d 43- We can set Bridge table from a) Properties of Physical Tables b) Properties of Logical Table c) Properties of LTS d) Properties of Presentation Table Ans: b 44- For moving your shared dashboard and reports from dev to QA or Production you should: a) paste dev catalog to qa / prod environment b) paste only updated atr files to qa/prod c) merge catalog changes through catalog manager d) paste files and associated atr files to qa/prod Ans: d 45- You can apply restriction/ filtration to data in metadata repository in: a) Physical Layer Alias Table b) Logical Table c) Logical Table Source d) Presentation Table Ans: c 46. Which of these is not Hierarchy type? a) Skipped Hierarchy b) Composite Hierarchy c) Parent Child Hierarchy d) Ragged Hierarchy Ans: b 47. Cache can be disabled from? a) Capacity Management Tab of Fusion MiddleWare b) Diagnostics Tab of Fusion MiddleWare c) Overview Tab of Fusion MiddleWare d) Deployment Tab of Fusion MiddleWare Ans: a 48. Repository can be uploaded/ updated from? a) Capacity Management Tab of Fusion MiddleWare b) Diagnostics Tab of Fusion MiddleWare c) Overview Tab of Fusion MiddleWare d) Deployment Tab of Fusion MiddleWare Ans: d 49. Log messages can be verified from? a) Capacity Management Tab of Fusion MiddleWare b) Diagnostics Tab of Fusion MiddleWare c) Overview Tab of Fusion MiddleWare d) Deployment Tab of Fusion MiddleWare Ans: b 50. You can start all BI services from fusion middleware from: a) Capacity Management Tab of Fusion MiddleWare b) Diagnostics Tab of Fusion MiddleWare c) Overview Tab of Fusion MiddleWare d) Deployment Tab of Fusion MiddleWare Ans: c 51. Calculations in logical columns are performed from which tab of logical tables? a) General Tab b) Column Source c) Aggregation Tab d) Levels Tab Ans: b 52. Sorting of Month_Name or non lexicographic column data is done from: a) General Tab – Sort Order Column b) Column Source – Sort Order Column c) Logical Table Source – Sort Order Column d) General Tab – Descriptor ID Column Ans: a 53. In the current version of OBIEE (11g), java component used is: a) rcu b) oc4j c) Fusion Middleware d) Weblogic server Ans: d 54. If you cannot view data of some physical table you should: a) Uncache the table b) Alias the table c) Update connection pool properties d) All of the above Ans: c 55. Which statement is true? a) If presentation column is renamed, logical column will get auto renamed b) If presentation column is renamed, physical column will get auto renamed c) If Logical column is renamed, presentation column will get auto renamed d) If Logical column is renamed, physical column will get auto renamed Ans: c OBIEE Questions and Answers Pdf Download Read the full article
0 notes
Text
300+ TOP DATABASE TESTING Objective Questions and Answers
DATABASE TESTING Multiple Choice Questions :-
1. RDBMS should focus on: A. Logic only B. Mission Critical Business functionality C. Both A. and B. D. None of the above. Ans: B 2. Database Regression testing can be done: A. Sometimes B. Not required C. Regular basis D. None of the above. Ans: C 3. A process of making a small change to a database schema, which improves its design without changing its semantics is known as A. Refactoring B. Regression testing C. Unit testing D. None of the above Ans: A 4. Regression testing allows an extensive testing of: A. Conceptual level. B. Logical level and physical level C. Conceptual, logical and physical level D. None of the above Ans: C 5. Which of the following is true: A. TDD = TFA + Refactoring B. TDD = TFA - Refactoring C. TDD = TFA D. None of the above Ans: A 6. The copy of a database is called: A. Instance B. Alias C. Sandbox D. None of the above Ans: C 7. A load testing CASE TOOL is: A. SQL Unit B. Rational Suite Test Studio C. Turbo Data D. None of the above Ans: B 8. What type of join is needed when you wish to return rows that do have matching values? A. Equi Join B. Natural Join C. Outer Join D. All of the Above Ans: D 9. The following SQL is which type of join: SELECT CUSTOMER_T. CUSTOMER_ID, ORDER_T. CUSTOMER_ID, NAME, ORDER_ID FROM CUSTOMER_T,ORDER_T WHERE CUSTOMER_T. CUSTOMER_ID = ORDER_T. CUSTOMER_ID A. Equi Join B. Natural Join C. Outer Join D. Cartesian Join Ans: A 10. How many tables may be included with a join? A. One B. Two C. Three D. All of the Above Ans: D
DATABASE TESTING MCQs 11. The following SQL is which type of join: SELECT CUSTOMER_T. CUSTOMER_ID, ORDER_T. CUSTOMER_ID, NAME, ORDER_ID FROM CUSTOMER_T,ORDER_T ; A. Equi Join B. Natural Join C. Outer Join D. Cartesian Join Ans: D 12. Triggers are stored blocks of code that have to be called in order to operate. A. TRUE B. FALSE Ans: B 13. The entity integrity rule states that: A. no primary key attribute may be null. B. no primary key can be composite. C. no primary key may be unique. D. no primary key may be equal to a value in a foreign key Ans: A 14. A foreign key is which of the following? A. Any attribute B. The same thing as a primary key C. An attribute that serves as the primary key of another relation D. An attribute that serves no purpose Ans: C 15. Which of the following is NOT a type of SQL constraint? A. Primary Key B. Foreign Key C. Alternate Key D. Unique Ans: C 16. In which case would you use a FULL OUTER JOIN? A. Both tables have NULL values. B. You want all unmatched data from one table. C. You want all matched data from both tables. D. You want all unmatched data from both tables. E. One of the tables has more data than the other. Ans: D DATABASE TESTING Objective type Questions with Answers 17. "Evaluate this SQL statement: SELECT e.EMPLOYEE_ID,e.LAST_NAME,e.DEPARTMENT_ID, d.DEPARTMENT_NAME FROM EMP e, DEPARTMENT d WHERE e.DEPARTMENT_ID = d.DEPARTMENT_ID; In the statement, which capabilities of a SELECT statement are performed?" A. Selection, projection, join B. Difference, projection, join C. Selection, intersection, join D. Intersection, projection, join E. Difference, projection, product Ans: A 18. The DBMS acts as an interface between what two components of an enterprise-class database system? A Database application and the database B Data and the database C The user and the database application D Database application and SQL Ans: A 19. A DBMS that combines a DBMS and an application generator is ________ . A Microsoft SQL Server B MS Access C IBM DB2 D Oracle Corp Ans: B 20. The advantage of using a spreadsheet is ____________ . A. Calculations can be done automatically B. Changing data automatically updates calculations C. More flexibility D. All of the Above Ans: D 21. There are three types of data found in a spreadsheet: A. Numbers, formulas, labels B. Data, words, numbers C. Words, numbers, labels D. Equations, data, numbers Ans: A 22. How we save database file in MS Access 2007 for Ms Access 2000? A Save As MS Access 2000 Database B Save Only C Save Object As Ans: A 23. When creating a new database in Microsoft Access, at what point is the user REQUIRED (i.e., the latest possible time) to name the database file within the Access software program? A After some data has been entered into the tables for that database. B Before the user exits the program, after having completed the desired work. C Before the user creates any tables, immediately after giving the command to create a new database. D After the tables and the relationship layout have been created, but before data is entered into the tables. E After the tables have been created, but before the relationship layout is created Ans: C 24. When creating a database in Microsoft Access _________________. A Referential integrity is only enforced for those relationships for which the database designer or user places a check mark in a box for "enforce referential integrity" during or after creation of the relationships in the relationship layout. B In Access it is impossible to create a table without designating a primary key. C Foreign keys must be specified for each table. D To delete a relationship, simply deleting one of the tables involved in the relationship will do the trick. E All data entry problems will result in error messages Ans: A 25. The view in which the field data types and field properties for a database table can be seen in Microsoft Access is called the __________. A Datasheet View B Design View C SQL View D Dashboard view E Field View Ans: B 26. You can add a row using SQL in a database with which of the following? A. Add B. Create C. Insert D. Make Ans: C 27. The command to remove rows from a table 'CUSTOMER' is: A. REMOVE FROM CUSTOMER … B. DROP FROM CUSTOMER … C. DELETE FROM CUSTOMER WHERE … D. UPDATE FROM CUSTOMER … Ans: C 28. What does White box database testing Involves? A. testing of database triggers and logical views B. performs module testing of database functions, triggers, views, SQL queries C. validates database tables, data models, database schema etc D. checks rules of Referential integrity. E. All of the above Ans: E 29. Database Checkpoints are Supported in All Environments. A. TRUE B. FALSE Ans: A 30. Database checkpoint are displayed in the Expert View as a checkpoint. A. Dbtable.checkpoint B. Datatable.check C. Dbtable.check D. Dtable.check Ans: C 31. In the Database checkpoint properties dialogbox, the -------------- displays the data that was captured from the checkpoint A. lotusdb area B. table area C. spreadsheet area D. grid area Ans: D 32. In the Database checkpoint properties dialogbox, you can select to check the ___________. A. entire results set B. specific rows C. specific columns D. specific cells E. All of the above Ans: E 33. Database checkpoint enables you to test database. A. TRUE B. FALSE Ans: A 34. You cannot modify the SQL query Definition and the expected data in the database checkpoint. A. TRUE B. FALSE Ans: B 35. In Database checkpoint properties dialog box, the default setting is to treat cell values as ----------- and to check the exact text while ignoring spaces. A. Numeric B. String C. Variant D. Array Ans: B 36. You can modify the value of the cell or you can parameterize it to use a value from an external source, such as ____________. A. Data table B. Environment Variable C. Both A and B D. None of the above Ans: C 37. What do you need selenium ,with Java to connect to the Database. A. JDK B. JDBC C. JVM D. All of the Above Ans: B DATABASE TESTING Questions and Answers pdf Download Read the full article
0 notes
Link
Almost everything is driven by date and time in today's world. People started equating time with money. So computer and programming languages have a way to date time measure implementation. In this post, I will get you through date and time in java. We will see the date and time in java in detail with example.

Java Date
Java has Date class implementation in java.util package. This class has the current date and time implementation too. Date class has two constructors as shown below:
- Date(): this constructor initializes the class with the current date and time.
- Date(long milliseconds): this constructor takes millisecond of the date since midnight 1 Jan 1970 and initializes the date and time accordingly.
Like other java class, Date class also has certain methods. Commonly used Date methods are listed below:
Method Signature Method Description boolean after(Date date) returns true if invoking date object contains a date that is later than the date in the argument date object boolean before(Date date) return true if invoking date object contains a date that is earlier than the date in the argument date object Object clone( ) create the duplicate of the invoking date object. It creates new references. int compareTo(Date date) Compares the value of the invoking object with that of date. Returns 0 if the values are equal. Returns a negative value if the invoking object is earlier than date. Returns a positive value if the invoking object is later than date. int compareTo(Object obj) it is same as of compareTo(Date date) provided argument type is of Date otherwise it throws ClassCastException. boolean equals(Object date) return true if invoking date object and argument date object contains same date and time otherwise false. [argument should be of type Date] long getTime( ) returns the milliseconds since midnight of 1 Jan 1970 for the invoking object int hashCode( ) returns hashcode of invoking the object void setTime(long time) initializes the date and time of the invoking object with the argument. String toString( ) Converts the invoking Date object into a string and returns the result.
GETTING CURRENT DATE AND TIME IN JAVA:
In two ways you can have current date and time using Date class
- by retrieving millisecond of the Date object
- by retrieving String of Date object
e.g. import java.util.Date; public class DateDemo { public static void main(String args[]) { // Instantiate an object date of Date class Date date = new Date(); // display time and date using toString() System.out.println(date.toString()); // display millisecond of date using getTime() System.out.println(date.getTime()); } }
COMPARING DATES IN JAVA
Date and time in java can be compared using three approaches
- getting milliseconds of the Date objects and comparing them
- using compareTo(Date date) method of the Date class
- using before(Date date), after(Date date) and equal(Date date) method of the Date class.
Date and Time formatting using SimpleDateFormat:
SimpleDateFormat class is the concrete way to format date. It has a locale-sensitive parsing. It allows formatting date in any user-friendly way.
import java.util.*; import java.text.*; public class DateFormatExample { public static void main(String args[]) { Date dNow = new Date(); SimpleDateFormat ft = new SimpleDateFormat ("E yyyy.MM.dd 'at' hh:mm:ss a zzz"); System.out.println("Current Date: " + ft.format(dNow)); } }
The output of the above program is
Current Date: Sun 20019.07.18 at 04:14:09 PM PDT
SimpleDateFormat FORMATTING CODES:
ASCII letters reserved as pattern letter are as follows:
ASCII LETTER Description Example G Era designator AD y Year in four digits 2019 M Month in year July or 07 d Day in month 10 h Hour in A.M./P.M. (1~12) 12 H Hour in day (0~23) 22 m Minute in hour 30 s Second in minute 55 S Millisecond 1564725881 E Day in week Tuesday D Day in year 365 F Day of week in the month 2 (second Wed. in July) w Week in year 40 W Week in month 1 a A.M./P.M. marker PM k Hour in day (1~24) 24 K Hour in A.M./P.M. (0~11) 10 z Time zone Eastern Standard Time ' Escape for text Delimiter " Single quote `
FORMATTING Date object USING printf()
Note: to avoid passing argument multiple times while formatting using printf, better use "%1$s" where letter after % indicates the index of the argument to be used so to specify the index in printf, the index must follow % and then terminated by $.
- to use the argument in the preceding formatting clause, use < flag.
e.g.
import java.util.Date; public class DateFormattingPrintfExmple { public static void main(String args[]) { // Instantiate a date object of class Date Date date = new Date(); // display formatted time and date using printf System.out.printf("%1$s %2$tB %2$td, %2$tY", "Due date:", date); } }
PARSING STRING IN DATE
SimpleDateFormat class has method parse() which can parse the string according to the format stored in the SimpleDateFormat.
import java.util.*; import java.text.*; public class ParsingStringIntoDateExample { public static void main(String args[]) { SimpleDateFormat sft = new SimpleDateFormat ("yyyy-MM-dd"); //initialize formatter with format String input = "2019-07-11"; System.out.print(input + " Parses as "); Date t; try { t = sft.parse(input); System.out.println(t); } catch (ParseException e) { System.out.println("Unparseable using " + ft); } } }
- lapsed time can be measured by taking the difference of milliseconds of start time and end time.
GregorianCalendar Overview
Apart from using Date() for date and time, GregorianCalendar instance can be used to create the calendar instance. It has various constructors to initialized the Calendar instance. By default, the constructor returns instance initialized with current time and time zone of the user. GregorianCalendar represents two eras AD and BC
Here is the constructor list of GregorianCalendar
Constructor Description GregorianCalendar() Constructs a default GregorianCalendar using the current time in the default time zone with the default locale. GregorianCalendar(int year, int month, int date) Constructs a GregorianCalendar with the given date set in the default time zone with the default locale. GregorianCalendar(int year, int month, int date, int hour, int minute) Constructs a GregorianCalendar with the given date and time set for the default time zone with the default locale. GregorianCalendar(int year, int month, int date, int hour, int minute, int second) Constructs a GregorianCalendar with the given date and time set for the default time zone with the default locale. GregorianCalendar(Locale aLocale) Constructs a GregorianCalendar based on the current time in the default time zone with the given locale. GregorianCalendar(TimeZone zone) Constructs a GregorianCalendar based on the current time in the given time zone with the default locale. GregorianCalendar(TimeZone zone, Locale aLocale) Constructs a GregorianCalendar based on the current time in the given time zone with the given locale.
For more details on GregorianCalendar, please check Oracle Java documentation.
You are at the end of the article, Hope you enjoyed it. please share and subscribe for latest articles on technology.
You may like Understanding Java From Scratch and Java Interview MCQ
#date and time in java#date in java#time in java#calendar in java#usage of date in java#usages of time in java#calendar and timezones in java
0 notes
Link
Let's see how much do you know about Java String. Choose the correct answer basis the code snippet.

Java String MCQ
To refresh your Java String concepts, just check Java String Basics. You can also see our posts on java basic concepts
0 notes