Fundamentals of Programming
Multiple Choice Questions
1. Which of the following data types is used to store decimal numbers in Java?
Multiple Choice Question
1 Point
Correct answer : float
Candidate answer : float
Status
:
Correct
1/1
2. Which loop is guaranteed to execute at least once?
Multiple Choice Question
1 Point
Correct answer : do-while
Candidate answer : for
Status
:
Wrong
0/1
3. Which OOP principle allows one class to inherit properties from another?
Multiple Choice Question
1 Point
Correct answer : Inheritance
Candidate answer : Inheritance
Status
:
Correct
1/1
4. Which keyword is used to return a value from a method in Java?
Multiple Choice Question
1 Point
Correct answer : return
Candidate answer : return
Status
:
Correct
1/1
5. Which block is executed whether an exception occurs or not?
Multiple Choice Question
1 Point
Correct answer : finally
Candidate answer : throw
Status
:
Wrong
0/1
Data Structures & Algorithms
Multiple Choice Questions
1. Which sorting algorithm repeatedly compares and swaps adjacent elements?
Multiple Choice Question
1 Point
Correct answer : Bubble Sort
Candidate answer : Bubble Sort
Status
:
Correct
1/1
2. Which searching algorithm requires the data to be sorted?
Multiple Choice Question
1 Point
Correct answer : Binary Search
Candidate answer : Binary Search
Status
:
Correct
1/1
3. Which operation removes an element from a queue?
Multiple Choice Question
1 Point
Correct answer : Dequeue
Candidate answer : Pop
Status
:
Wrong
0/1
4. Which data structure follows the Last In First Out (LIFO) principle?
Multiple Choice Question
1 Point
Correct answer : Stack
Candidate answer : Stack
Status
:
Correct
1/1
5. What is the time complexity of accessing an element by index in an array?
Multiple Choice Question
1 Point
Correct answer : O(1)
Candidate answer : O(1)
Status
:
Correct
1/1
HTML
Multiple Choice Questions
1. Which tag defines a table row?
Multiple Choice Question
1 Point
Correct answer : < tr >
Candidate answer : < tr >
Status
:
Correct
1/1
2. Which tag creates an ordered list?
Multiple Choice Question
1 Point
Correct answer : < ol >
Candidate answer : < ol >
Status
:
Correct
1/1
3. Which tag represents the main content of a webpage?
Multiple Choice Question
1 Point
Correct answer : < main >
Candidate answer : < body >
Status
:
Wrong
0/1
4. Which HTML element is used to create a text input field?
Multiple Choice Question
1 Point
Correct answer : < input >
Candidate answer : < input >
Status
:
Correct
1/1
5. Which HTML tag is used to create a hyperlink?
Multiple Choice Question
1 Point
Correct answer : < a >
Candidate answer : < href >
Status
:
Wrong
0/1
CSS
Multiple Choice Questions
1. Which CSS feature is commonly used for responsive layouts?
Multiple Choice Question
1 Point
Correct answer : Media Queries
Candidate answer : Transitions
Status
:
Wrong
0/1
2. Which selector targets an element with id='header'?
Multiple Choice Question
1 Point
Correct answer : #header
Candidate answer : #header
Status
:
Correct
1/1
3. Which CSS property is commonly used to create flexible layouts?
Multiple Choice Question
1 Point
Correct answer : display:flex
Candidate answer : position
Status
:
Wrong
0/1
4. Which property defines the space outside an element's border?
Multiple Choice Question
1 Point
Correct answer : margin
Candidate answer : border
Status
:
Wrong
0/1
5. Which property changes the text color?
Multiple Choice Question
1 Point
Correct answer : color
Candidate answer : font-color
Status
:
Wrong
0/1
JavaScript
Multiple Choice Questions
1. Which method adds an element to the end of an array?
Multiple Choice Question
1 Point
Correct answer : push()
Candidate answer : push()
Status
:
Correct
1/1
2. Which event occurs when a button is clicked?
Multiple Choice Question
1 Point
Correct answer : onclick
Candidate answer : onclick
Status
:
Correct
1/1
3. Which method selects an element by its ID?
Multiple Choice Question
1 Point
Correct answer : getElementById()
Candidate answer : getElements()
Status
:
Wrong
0/1
4. Which keyword is used to define a function?
Multiple Choice Question
1 Point
Correct answer : function
Candidate answer : func
Status
:
Wrong
0/1
5. Which keyword declares a block-scoped variable?
Multiple Choice Question
1 Point
Correct answer : let
Candidate answer : var
Status
:
Wrong
0/1
React.js
Multiple Choice Questions
1. Which hook is commonly used for API calls after rendering?
Multiple Choice Question
1 Point
Correct answer : useEffect()
Candidate answer : useContext()
Status
:
Wrong
0/1
2. Which library is commonly used for routing in React?
Multiple Choice Question
1 Point
Correct answer : React Router
Candidate answer : Bootstrap
Status
:
Wrong
0/1
3. JSX stands for?
Multiple Choice Question
1 Point
Correct answer : JavaScript XML
Candidate answer : JavaScript XML
Status
:
Correct
1/1
4. Which hook is used to manage state?
Multiple Choice Question
1 Point
Correct answer : useState()
Candidate answer : useState()
Status
:
Correct
1/1
5. React applications are built using?
Multiple Choice Question
1 Point
Correct answer : Components
Candidate answer : Packages
Status
:
Wrong
0/1
Backend Development (Node.js & Express)
Multiple Choice Questions
1. Which protocol is commonly used for authorization?
Multiple Choice Question
1 Point
Correct answer : OAuth
Candidate answer : OAuth
Status
:
Correct
1/1
2. What does JSON stand for?
Multiple Choice Question
1 Point
Correct answer : JavaScript Object Notation
Candidate answer : JavaScript Object Notation
Status
:
Correct
1/1
3. Which HTTP method is used to retrieve data?
Multiple Choice Question
1 Point
Correct answer : GET
Candidate answer : GET
Status
:
Correct
1/1
4. Which framework is commonly used with Node.js for building APIs?
Multiple Choice Question
1 Point
Correct answer : Express.js
Candidate answer : Express.js
Status
:
Correct
1/1
5. Node.js is primarily used for?
Multiple Choice Question
1 Point
Correct answer : Server-side JavaScript
Candidate answer : UI Design
Status
:
Wrong
0/1
Database Management (SQL & NoSQL)
Multiple Choice Questions
1. Which SQL JOIN returns matching rows from both tables?
Multiple Choice Question
1 Point
Correct answer : INNER JOIN
Candidate answer : INNER JOIN
Status
:
Correct
1/1
2. Which of the following is a NoSQL database?
Multiple Choice Question
1 Point
Correct answer : MongoDB
Candidate answer : MongoDB
Status
:
Correct
1/1
3. Which key uniquely identifies a record?
Multiple Choice Question
1 Point
Correct answer : Primary Key
Candidate answer : Primary Key
Status
:
Correct
1/1
4. Which clause filters rows in a query?
Multiple Choice Question
1 Point
Correct answer : WHERE
Candidate answer : GROUP BY
Status
:
Wrong
0/1
5. Which SQL statement retrieves records from a table?
Multiple Choice Question
1 Point
Correct answer : SELECT
Candidate answer : SELECT
Status
:
Correct
1/1
Git & Version Control
Multiple Choice Questions
1. Which command creates a new branch?
Multiple Choice Question
1 Point
Correct answer : git branch
Candidate answer : git branch
Status
:
Correct
1/1
2. Which command uploads local commits to a remote repository?
Multiple Choice Question
1 Point
Correct answer : git push
Candidate answer : git checkout
Status
:
Wrong
0/1
3. Which command saves staged changes to the repository?
Multiple Choice Question
1 Point
Correct answer : git commit
Candidate answer : git commit
Status
:
Correct
1/1
4. Which command initializes a Git repository?
Multiple Choice Question
1 Point
Correct answer : git init
Candidate answer : git new
Status
:
Wrong
0/1
5. Which command copies a remote repository to the local system?
Multiple Choice Question
1 Point
Correct answer : git clone
Candidate answer : git copy
Status
:
Wrong
0/1
SDLC, REST APIs and Testing
Multiple Choice Questions
1. Which HTTP status code indicates a successful request?
Multiple Choice Question
1 Point
Correct answer : 200
Candidate answer : 200
Status
:
Correct
1/1
2. Which HTTP method is generally used to update an existing resource?
Multiple Choice Question
1 Point
Correct answer : PUT
Candidate answer : GET
Status
:
Wrong
0/1
3. Which testing verifies individual functions or methods?
Multiple Choice Question
1 Point
Correct answer : Unit Testing
Candidate answer : Unit Testing
Status
:
Correct
1/1
4. Agile development follows which approach?
Multiple Choice Question
1 Point
Correct answer : Iterative
Candidate answer : Iterative
Status
:
Correct
1/1
5. Which SDLC phase involves gathering business requirements?
Multiple Choice Question
1 Point
Correct answer : Requirement Analysis
Candidate answer : Requirement Analysis
Status
:
Correct
1/1
Quantitative Aptitude
Multiple Choice Questions
1. From a class of 42 boys, a boy aged 10 years goes away and in his place, a new boy is admitted. If on account of this change, the average age of the boys in that class increases by 2 months, the age of the newcomer is :
Multiple Choice Question
1 Point
Correct answer : 17 years
Candidate answer : 10 years 6 months
Status
:
Wrong
0/1
2. The average of nine number is 50. The average of first five numbers is 54 and that of the last three numbers is 52. Then the sixth number is :
Multiple Choice Question
1 Point
Correct answer : 24
Candidate answer : 30
Status
:
Wrong
0/1
3. In a division sum, the divisor is 12 times the quotient and 5 times the remainder. If the remainder is 48, then the dividend is :
Multiple Choice Question
1 Point
Correct answer : 4848
Candidate answer : 4848
Status
:
Correct
1/1
4. How many seconds in 10 years?
Multiple Choice Question
1 Point
Correct answer : 315360000 sec
Candidate answer : 31523500 sec
Status
:
Wrong
0/1
5. Ten years ago, a man was seven times as old as his son. Two years hence, twice his age will be equal to five times the age of his son. What is the present age of the son ?
Multiple Choice Question
1 Point
Correct answer : 14 years
Candidate answer : 15 years
Status
:
Wrong
0/1
Logical Reasoning
Multiple Choice Questions
1. A is brother of B. B is father of C. C is sister of D. A to D?
Multiple Choice Question
1 Point
Correct answer : Uncle
Candidate answer : Uncle
Status
:
Correct
1/1
2. In a certain code, TRIPPLE is written as SQHOOKD. How is DISPOSE written in that code?
Multiple Choice Question
1 Point
Correct answer : CHRONRD
Candidate answer : CHRONRD
Status
:
Correct
1/1
3. Choose one of the 4 shapes that will complete the pattern on the left.
Multiple Choice Question
1 Point
Correct answer : B
Candidate answer : C
Status
:
Wrong
0/1
4. Which of the boxes on the right is the missing figure needed to complete the series on the left?
Multiple Choice Question
1 Point
Correct answer : C
Candidate answer : C
Status
:
Correct
1/1
5. Which magnets will repel each other?
Multiple Choice Question
1 Point
Correct answer : Pairs A and D.
Candidate answer : Pairs A and D.
Status
:
Correct
1/1
Verbal Ability
Multiple Choice Questions
1. “Hit the nail on the head” means
Multiple Choice Question
1 Point
Correct answer : Be exact
Candidate answer : Make mistake
Status
:
Wrong
0/1
2. Passage:The contemporary digital ecosystem, governed increasingly by opaque algorithms, has redefined the boundaries between choice and coercion. While users perceive themselves as autonomous agents navigating a vast information landscape, their interactions are subtly orchestrated by systems designed to maximize engagement rather than epistemic enrichment. This raises a paradox: the more personalized the experience, the less diverse the exposure, leading to intellectual insularity masked as convenience. Question: Tone of the passage is:
Multiple Choice Question
1 Point
Correct answer : Critical
Candidate answer : Appreciative
Status
:
Wrong
0/1
3. Arrange: A. It enhances decision-making B. Data is analyzed properly C. Insights are generated D. Actions become effective
Multiple Choice Question
1 Point
Correct answer : B-C-A-D
Candidate answer : B-A-C-D
Status
:
Wrong
0/1
4. Ambiguous : Unclear :: Explicit : ______
Multiple Choice Question
1 Point
Correct answer : Clear
Candidate answer : Confusing
Status
:
Wrong
0/1
5. The CEO remained ______ despite intense scrutiny from the media.
Multiple Choice Question
1 Point
Correct answer : composed
Candidate answer : composed
Status
:
Correct
1/1
Coding
Coding Questions
1. Write a program to sort an array in ascending order using the Bubble Sort algorithm.
-
Answer given by candidate
<?php
$arr = array(64,34,25,12,22,11,90);
$n = count($arr);
for($i=0;$i<$n -1;$i++)
{
for($j=0;$j<$n-$i-1;$j++)
{
if($arr[$j]>$arr[$j+1])
{
$temp = $arr[$j];
$arr[$j] = $arr[$j+1];
$arr[$j+1] = $temp;
}
}
}
echo "Array in ascending order: ";
foreach ($arr as $value){
echo $value. " ";
}
?>
Array in ascending order: 11 12 22 25 34 64 90
2. Write a program to reverse a given string without using built-in reverse functions.
-
Answer given by candidate
<?php
$string = "Hello World";
$reversed = "";
for($i = strlen($string) -1;$i>=0;$i--)
{
$reversed .= $string[$i];
}
echo "Original string :".$string;
echo "\n";
echo "Reversed string :".$reversed;
?>
Original string :Hello World
Reversed string :dlroW olleH
Descriptive
Descriptive Questions
1. What is a REST API? Explain the commonly used HTTP methods (GET, POST, PUT, DELETE).
-
Answer given by candidate
A REST API is an architectural style that allows different software applications to communicate with each other over the internet.It uses standard web protocols - primarily HTTP - to request , create, update, or delete data.
GET - Retrieves data
POST - Sends new data to create a resource
PUT - Overwrites an entire resource with new data
DELETE - Permanently removes the resource
2. What are React components? Explain the difference between functional and class components.
-
Answer given by candidate
React components are the fundamental, reusable building blocks of a user interface(UI) in a React application.They act like independent Javascript functions or classes that accept inputs and return JSX code to specify what should render on the screen.
Functional Components - These are standard JavaScript functions.They directly return the JSX that defines the UI.
Class components - They cannot return JSX directly.They must wrap the return statement inside a required render() method.
3. Compare SQL and NoSQL databases. When would you choose one over the other?
-
Answer given by candidate
SQL databases are relational and table-based with strict schemas, whereas NoSQL databases are non-relational,distributed, and support flexible data models like documents or key-value pairs.
Choose a SQL database if your system priortizes data validity,complex relationships and bulletproof transactions.
Choose a NoSQL database if the system priortizes massive scale, rapid features deployment.
Comments on coding : The candidate's submission correctly implements the Bubble Sort algorithm in PHP to sort an array in ascending order. The code is functional, produces the expected output, and demonstrates a clear understanding of the algorithm's logic, including the nested loops and swapping mechanism. The code quality is good, with clear variable names and consistent formatting, making it easy to read and understand. While Bubble Sort is not the most efficient sorting algorithm (O(n^2)), it was specifically requested by the problem statement, making its use appropriate. The solution adheres to best practices for this type of exercise.
Rating of coding : Rating 10
10/10