Interview Questions, Answers and Tutorials

Blog

08 Arrays

8.1 | Arrays An array is a data structure that stores a collection of values of the same data type. Values stored in the array are accessible through the array index //Declaring an array of integers int arr1[];   //Creating an integer array with values int[] arr0 = {2,3,4,5,6,7};   //Creating an integer array which can hold 100 integers int arr2[] = new int[100]; //Or, int arraySize = 100; int arr3[] = new int[arraySize]; //Assigning values to the array arr3[0] = 1; arr3[1] = 2; //Creating a string array which can hold 100 values String arr4[] = new String[100];  …

07 Data Types, Literals, Variables, Expressions, and Operators

7.1 | Data Types   Each variable declaration in Java must define the data type of the variable. The data type defines what values a variable can store. The variable type can be as follows: One of the eight basic primitive data types An Array The name of a class The eight primitive data types hold values for integers, floating-point numbers, characters, and boolean values. They are called primitive because they are built into the system and are not actual objects. This makes them more efficient to use.   Data Type Width (bits) Minimum value/ Maximum value boolean NA True, false…

06 Introduction to Java

Java is an object-oriented programming language (OOP) developed by Sun Microsystems, which enables programmers to create flexible, modular, and reusable codes. The important feature of OOP language which help programmers achieve this are encapsulation, polymorphism, and inheritance.  Encapsulation: It is a mechanism that binds together codes and data and manipulates to keep the code safe from outside interference and misuse. Java implements encapsulation by defining the accessibility condition of variables, methods, and classes (private, protected, and public). Java’s basic unit of encapsulation is class. A class specifies the data and the code that will operate on the data. A class…

Manual Testing Questions and Answers

  1. What is Acceptance Testing? Testing conducted to enable a user/customer to determine whether to accept a software product. Normally performed to validate the software meets a set of agreed acceptance criteria.   2. What is Accessibility Testing? Verifying a product is accessible to people having disabilities (deaf, blind, mentally disabled, etc.).   3. What is Ad Hoc Testing? A testing phase where the tester tries to ‘break’ the system by randomly trying the system’s functionality. Can include negative testing as well. See also Monkey Testing.   4. What is Agile Testing? Testing practice for projects using agile methodologies,…

Top-Down Integration Testing

An approach to integration testing where the component at the top of the component hierarchy is tested first, with lower-level components being simulated by stubs. Tested components are then used to test lower-level components. The process is repeated until the lowest level components have been tested.   In this approach, testing is conducted from the main module to the submodule. if the submodule is not developed a temporary program called STUB is used for simulating the submodule.   Advantages: * Advantageous if major flaws occur toward the top of the program. * Once the I/O functions are added, the representation…