Publicis Sapient
Prime Infradevelopers Interview Questions and Answers
You are given an array arr of length N. You have to return a list of integers containing the NGE(next greater element) of each element of the given array. The NGE for an element X is the fir...read more
You are given a string ‘STR’ of lowercase alphabets and an integer K. Your task is to count all the possible substrings that are not necessarily distinct but should have exactly...read more
What is Polymorphism?. Give real life examples of Polymorphism in OOPS
Q4. How to switch on and off the bulb by one button using JavaScript
Use JavaScript to switch on and off a bulb with one button.
Create a variable to store the state of the bulb (on/off)
Add an event listener to the button
Toggle the state of the bulb variable on each button click
Update the bulb image or class based on the state of the bulb variable
Q5. How to create table using html, how to color one row, how to merge specific coloum
To create a table using HTML, color one row, and merge specific columns, use <table>, <tr>, <td>, and <th> tags with CSS styling.
Create a table using <table>, <tr>, <td>, and <th> tags
Color one row using CSS by targeting the <tr> element with a specific class or inline style
Merge specific columns using the colspan attribute in the <td> or <th> tags
Q6. What is join in sql, how to join two table and what types of join used
Join in SQL is used to combine data from two or more tables based on a related column between them.
Types of joins: Inner join, Left join, Right join, Full outer join, Cross join
Syntax: SELECT * FROM table1 JOIN table2 ON table1.column = table2.column
Example: SELECT * FROM customers JOIN orders ON customers.customer_id = orders.customer_id
Reviews
Interviews
Salaries
Users/Month