This is a verified interview question from Infoedge. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Infoedge Online Assessment MCQS PYQS" covers key patterns like Arrays.
" ### MCQ 1 Macia, and Paul are five children who wish to seat themselves in a row of five chairs at Golden International School... How many different arrangements are possible if Tom and Peter must sit at the extreme ends of the row? ### MCQ 2 In the humanities section of class XI there are 36 students weighing 87 kg each. A new student weighing ... is added to the class, the average weight of the students increases by 2kg. What is the weight of the new student? ### MCQ 3 Which part of speech does the word in bold belong to? The youngest son of King Edward VI was named **after** the Lionheart. Answer Options: - Adverb - Preposition - Noun - Conjunction ### MCQ 4 In a class of 90 students where the number of girls is twice that of boys, Shaidul is ranked fourteenth from the top. If there are 10 girls ahead of Shaidul, how many boys are ranked after him? ### MCQ 5 Five educational films A, B, C, D & E will be shown to a group of students. The films are to be shown in a particular order which conforms to the following conditions: - A must be shown earlier than C - B must be shown earlier than D - E should be the fifth film shown If C is shown earlier than E, which of the following will hold true? Answer Options: - A is shown before C - D is shown before B - C is shown before A - D is the fifth film shown ### MCQ 6 Using the information below, determine how far and in which direction point K is from point G - T is 9 m south of K - K is 5 m east of H - H is 4 m north of B - L is 3 m west of B - D is 7 m south of L - G is 8 m east of D Choose the correct option: Answer Options: - 11 m to the north - 7 m to the north - 11 m to the south ### MCQ 7 1, 3, 7, 13, 31, ... Choose the missing number from the below options. ### MCQ 8 Read the sentence and spot the error. They have been very close friends until they quarrelled. Answer Options: - They have been - very close friends - until they quarrelled. - No Error ### MCQ 9 Prem Brand Gaddi completes its journey in three segments traveling at speeds of 12 km/h, 10 km/h, and 15 km/h respectively. The time spent on each is 2 hours, and 1.5 hours. What is the total distance that he traveled? ### MCQ 10 There are seven friends - A, B, C, D, E, F and G. They like different foods... Whose favourite food can be Chicken Tikka from the provided options? Answer Options: - A - F - E - C ### MCQ 11 In a specific code language, the word 'HESSIAN' is encoded as 'HFSTIBO'. Using the same coding pattern, how would the word 'WARMUP' be encoded in this language? Answer Options: - WBRNIT - WAMTH - WARMMH - WBARTT ### MCQ 12 Mrs. Dell's current age is such that twice the square of her age is at least 4608. Find the minimum possible age of Mrs. Dell. ### MCQ 13 If the compound interest accrued on a principal amount of 30,000 at an annual interest rate of 7% is 74,347. What is the duration of the investment period? ### MCQ 14 Select the correct order of words in the given options to make a coherent sentence. he / while / himself / the car / hurt / Samar / was repairing Answer Options: - While samar was repairing him he hurt the car - Himself he was samar hurt while repairing the car - Car hurt himself while he was repairing the samar - Samar hurt himself while he was repairing the car. ### MCQ 15 Which of the following options will result in an Unchecked Exception in Core Java? (Options present Java code snippets throwing NullPointerException, custom exceptions extending Exception, etc.) ### MCQ 16 Consider the following Java code snippet: String text = "JAVA"; while (text.equalsIgnoreCase("JAVA")) { text = text.toLowerCase(); } System.out.println(text); What will be the output when this code is executed? Answer Options: - JAVA - jAVA - It runs into an infinite loop - Compilation fails ### MCQ 17 You are working on a Java application and notice that a recent commit has caused a build to fail. The failing tests are related to the service layer that interacts with an external API. What is the best first step to diagnose this issue? Answer Options: - Check the API documentation for changes - Turn all tests to let others fail - Revert the code changes in the commit - Ignore the failures and proceed ### MCQ 18 Your team is planning to implement integration tests for a microservices architecture. Which approach should you prioritize to ensure effective integration testing? Answer Options: - Test each microservice independently without integration - Mock all external services and APIs - Deploy all microservices to a staging environment and test end-to-end - Focus only on unit tests for each microservice ### MCQ 19 Identify the exceptions raised by the Java code. import java.util.*; class Main { public static void main(String[] args) { String arr[] = {}; List<String> list = Arrays.asList(arr); list.add("There"); } } Answer Options: - NullPointerException - UnsupportedOperationException - UnsupportedAssignmentException - IllegalOperationException ### MCQ 20 Testing a RESTful API response You are testing a RESTful API that returns user data. The API returns a JSON response with user details including 'id', 'name', and 'email'. You notice that the 'email' field is sometimes null. Your task is to write a test case to ensure that the API handles this gracefully. What approach would you use? Answer Options: - Verify if the email field is valid before evaluating for null - Always validate the email field regardless of its value - Ignore the email field if it is null - Assume the email field is valid if not present ### MCQ 21 If in a Spring Boot application, you have a method executeTests(List tests) that accepts a list of test cases. Some test cases are of type UnitTest and others are of type IntegrationTest, how can you ensure that each test case executes its specific logic without altering the executeTests method? Answer Options: - Implement a common interface for both test types - Use conditional statements to check test type - Create separate methods for each test type - Ignore polymorphism and execute all tests the same way ### MCQ 22 Java: Valid For Loop Syntax Oliver is studying the basic syntax of Core Java and is currently focusing on the 'for' loop construct. Among the given options, which ones correctly demonstrate the use of a 'for loop' in Java? (Select all that apply) Answer Options: - for ( int i = 99; i >= 0; i / 9 ) - for ( int i = 7; i <= 77; i += 7 ) - for ( int i = 20; i >= 2; -- i ) - for ( int i = 2; i <= 20; i = 2* i ) ### MCQ 23 Which of the following best describes a Test Suite? Answer Options: - A single test condition used for verification - A collection of test cases grouped together for execution - A document listing all defects found in testing - A tool used for automating test execution ### MCQ 24 You are in the process of defining the test scope for a mobile application. Stakeholders have provided a list of features, but some are not critical for the initial release. How would you determine which features to include in the test scope? Answer Options: - Test all features regardless of importance - Prioritize features based on user impact and risk - Only test features that are easy to automate - Include features based on personal preference ### MCQ 25 A Test Plan Outline contains which of the following? (Select all that apply) Answer Options: - Test Items - Test Deliverables - Responsibilities ### MCQ 26 You are managing a testing team for a large project... constraints... you must allocate... What should you do? Answer Options: - Mock all... - Focus only on automated testing tools - Assign resources based on team members preferences - Prioritize effort based on risk and criticality ### MCQ 27 You are preparing a test plan for a complex software with multiple integrations... Given the complexity, how would you approach estimating the test effort? Answer Options: - Use historical data from previous projects - Estimate based on intuition and team experience - Estimate effort based on the number of test cases only ### MCQ 28 You are given a string consisting of lowercase English letters. Which of the following approaches correctly counts the total number of vowels in the string in O(n) time? Answer Options: - Iterate through the string, incrementing a counter whenever a character is 'a', 'e', 'i', 'o', or 'u'. - Sort the string and count vowels using binary search. - Convert the string to uppercase, then count all characters. - Check only the first and last characters of the string for vowels and count them. ### MCQ 29 What will be the output of the following pseudo code? Integer p, q, r Set p=4, q=6, r=10 p=(p^q)^r q=(p^q)^p r=(p^q)^r Print p,q,r ### MCQ 30 Which swaps two array elements correctly? Answer Options: - arr[i] = arr[j]; arr[j] = arr[i]; - arr[i] = arr[j]; arr[j] = temp; - arr[i] += arr[j]; arr[j] = arr[i] - arr[j]; arr[i] -= arr[j]; - int temp = arr[i]; arr[i] = arr[j]; arr[j] = temp; ### MCQ 31 An abstract Employee class needs to be refactored by adding an interface... Answer Options: - interface EmployeeInterface { void setName(String name); void setId(int id); void setDepartment(String department); void displayInfo(); } ### MCQ 32 Fan Rotates (MCQ) You have a class "Fan" having 2 methods 'on()' and 'off()'. On call to 'on()' the fan rotates and stops when called 'off()' method. Which of the following features are achieved in this design? Answer Options: - Message passing - Abstraction - Polymorphism - Dynamic binding ### MCQ 33 Which of the following options best describes constructor chaining in object oriented programming? Answer Options: - It is a subclass constructor calling super class constructor. - It is a base class constructor calling a base class constructor. - It is a subclass constructor calling another subclass constructor. - None of these."
Join thousands of developers practicing for Infoedge.