Do you think IIT Guwahati certified course can help you in your career?
No
Introduction
Genc in Genc Elevate stands for Generation Cognizant. It is an entry-level work profile at Cognizant for individuals having minimal or no work experience. Cognizant is a USA-based MNC specializing in outsourcing, business consulting, and information technology. There are three rounds for cracking Genc Elevate containing a written test, a technical interview, and an HR round.
Users are asked a series of Genc Elevate interview questions to test their coding and mental abilities. The level of Genc Elevate interview questions ranges from easy to moderate. In this blog, we will look at a series of SOAP UI interview questions and discuss their solutions.
Highlights for Genc Elevate Coding Questions
Test
Genc Elevate Coding Questions
Total number of questions
2
Level of difficulty
Medium
Time duration
45 minutes
Section
Three
Easy Genc Elevate Interview Questions
1. Print the length of a string without using the string functions.
import java.util.*;
class ninjaSolution {
public static void main(String[] args) {
String str = "Hey Ninja!!";
int len=0;
char[] strCharArray=str.toCharArray();
for(char c:strCharArray){
len++;
}
System.out.println("Lenght of string "+str+" is: "+len);
}
}
You can also try this code with Online Java Compiler
2. Explain Proactive, Retroactive, and Simultaneous updates in DBMS
Proactive Updates: These are the updates that are made in the database before it is deployed in the real-world environment.
Simultaneous Updates: The changes are made in the database while the database is deployed in the real-world environment.
Retroactive Updates: In this update type, the changes are made in the database after the database is completely deployed in the real-world environment.
3. How to create a view in SQL?
A view is a single table that inherits data from one or more tables. We can create a new view using the following command.
CREATE VIEW <View_Name> AS
SELECT <Column1>, <Column2>, <Column3>, ..., <ColumnN>
FROM <Table_Name>
WHERE <Condition>;
4. How to update and drop a view in SQL?
A view is a single table that inherits data from one or more tables. We can update an existing view using the following command,
CREATE VIEW OR REPLACE <View_Name> AS
SELECT <Column1>, <Column2>, <Column3>, ..., <ColumnN>
FROM <Table_Name>
WHERE <Condition>;
A view can be dropped using the following command,
DROP VIEW <View_name>
5. What is index hunting?
Index hunting is the method of increasing the collection of indexes. This is done to enhance the quality and efficiency of the SQL database as indexes improve both the performance and processing time.
6. What is SJF?
SJF stands for Shortest Job First. It is a transaction scheduling algorithm that prioritizes the task or transaction having the shortest execution time. It is a non-preemptive approach and is sometimes also referred to as SJN(Shortest Job Next) and SPN(Shortest Process Next). The pre-emptive approach for SJF is called SRTF(Shortest Remaining Time First).
7. What is Cache?
The cache is used to save the most frequently used data of a user at a temporary location for quick and convenient access to reduce the buffer time. Cache enhances the user experience by reducing the short-term memory load.
8. What is Piping in Unix or Linux?
Piping or Plumbing is the process of sharing the output of one program, command, or process as an input to another program, command, or process. It is a form of redirection in Unix or Linux.
9. What are the four typical elements of a processed image?
The four typical elements of a processed image are,
A brouter or bridge router is a networking device that can perform the functions of both a router and a bridge. The bridge router only routes the packets for a specified protocol and bridges the rest of the packets.
11. What is EGP?
EGP stands for Exterior Gateway Protocol. EGP is a networking protocol that is used to share network reachability information through the Internet Gateways of the same or different autonomous systems.
The ECG serves three purposes,
Creates a new set of neighbors.
It checks if the neighbors are still reachable and alive.
And also notify the neighbors of the available autonomous systems.
12. What is Hamming Code?
Hamming code is a very error detection code cause it not only detects the errors but also corrects the errors in a sent binary message.
You can refer to the mentioned link for a detailed understanding and working of the Hamming code and other error detection mechanisms.
13. Write a code to add two numbers without using arithmetic operations.
class ninjaSolution {
public static void main(String[] args) {
int num1 = 10, num2 = 50;
while (num2 != 0){
int carry = (num1 & num2) ; //CARRY is AND of two bits
num1 = num1^num2; //SUM of two bits is A XOR B
num2 = carry << 1; //shifts carry to 1 bit to calculate sum
}
System.out.println("Sum of 10 and 50 is: "+num1);
}
}
You can also try this code with Online Java Compiler
16. What factors affect whether a detection algorithm is required in a deadlock avoidance system?
There are mainly two factors that influence whether the detection algorithm is required or not,
The frequency of a deadlock occurring after the algorithm is implemented.
The number of processes affected by a deadlock in case the algorithm is used.
17. What is Root Partition in OS?
The operating system Kernel is located at the root partition. The root partition also contains some other crucial files that are created at the time of booting the system.
18. What is a trapdoor in OS?
A trapdoor is used to bypass the system controls. A trapdoor can either be a software or a hardware mechanism. In general, a trapdoor is a malicious program used by attackers to gain access to unauthorized files.
19. What is a resident set and a working set?
A resident set is the part of the image that is present in the actual memory. Each resident set is further broken down into subsets. The working set is the subset of the resident set that is currently being used for execution.
20. What is SDLC?
SDLC stands for Software Development Life Cycle. It is the process of building, designing, and maintaining software.
23. Write a program to check whether the given number is even or odd
import java.util.*;
class ninjaSolution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Please Enter a number!!");
int num = sc.nextInt();
if(num%2==0)
System.out.println(num+" is even");
else
System.out.println(num+" is odd");
}
}
You can also try this code with Online Java Compiler
25. Write a code to check whether a number is prime or not.
import java.util.*;
class ninjaSolution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Please enter a number");
int num = sc.nextInt();
int count=0;
for(int i=2;i<num/2;i++){
if(num%i==0)
count++;
}
if(count>0)
System.out.println("Number is not prime");
else
System.out.println("Number is prime");
}
}
You can also try this code with Online Java Compiler
To ace an interview, keep in mind the following tips,
Ask questions in an interview. If you are not clear about the question, ask the interviewer and get your doubts cleared.
It is not just about your technical skills in an interview. It is also about your communication skills.
Always keep in mind to take your time before answering the question. There is no rush to answer the question. Take your time and understand the question correctly.
And last but not least, always keep in mind to learn something from the interview, and ask for feedback from the interviewer.
You can also check out this fantastic YouTube series for more tips and tricks to crack an interview. Also, go through more of the previous year's Genc Elevate Interview Questions and get familiar with the exam pattern.