Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Table of contents
1.
Highlights for Genc Elevate Coding Questions 
2.
Easy Genc Elevate Interview Questions
2.1.
1. Print the length of a string without using the string functions.
2.2.
2. Explain Proactive, Retroactive, and Simultaneous updates in DBMS
2.3.
3. How to create a view in SQL?
2.4.
4. How to update and drop a view in SQL?
2.5.
5. What is index hunting?
2.6.
6. What is SJF?
2.7.
7. What is Cache?
2.8.
8. What is Piping in Unix or Linux?
2.9.
9. What are the four typical elements of a processed image?
3.
Medium Genc Elevate Interview Questions
3.1.
10. What is brouter?
3.2.
11. What is EGP?
3.3.
12. What is Hamming Code?
4.
Hard Genc Elevate Interview Questions
4.1.
13. Write a code to add two numbers without using arithmetic operations.
4.2.
14. Write a code to print numbers from 1 to 10 without using a loop or recursion in C++.
4.3.
15. Print the address of a variable without using a pointer.
4.4.
16. What factors affect whether a detection algorithm is required in a deadlock avoidance system?
4.5.
17. What is Root Partition in OS?
4.6.
18. What is a trapdoor in OS?
4.7.
19. What is a resident set and a working set?
4.8.
20. What is SDLC?
4.9.
21. Name the concepts of OOPS?
4.10.
22. What are the different types of inheritance?
4.11.
23. Write a program to check whether the given number is even or odd
4.12.
24. Write a program to print the Fibonacci series.
4.13.
25. Write a code to check whether a number is prime or not.
5.
Tips and Tricks for Genc Elevate Coding Interview
6.
Conclusion
Last Updated: Mar 27, 2024
Medium

Genc Elevate Interview Questions

Create a resume that lands you SDE interviews at MAANG
Speaker
Anubhav Sinha
SDE-2 @
12 Jun, 2024 @ 01:30 PM

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. 

Genc Elevate Coding Questions

 

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);
    }
}

Output Image

 

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.

Genc Elevate Coding Interview Questions

 

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).

Genc Elevate Interview Questions

 

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. 

caching image

 

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.

piping or plumbing

 

9. What are the four typical elements of a processed image?

The four typical elements of a processed image are,

  • User Data
  • User Program
  • System Stack
  • PCB(Process Control Block)
elements of a processed image

Must read, Html interview questions And Operating System Interview Questions

Get the tech career you deserve, faster!
Connect with our expert counsellors to understand how to hack your way to success
User rating 4.7/5
1:1 doubt support
95% placement record
Akash Pal
Senior Software Engineer
326% Hike After Job Bootcamp
Himanshu Gusain
Programmer Analyst
32 LPA After Job Bootcamp
After Job
Bootcamp

Medium Genc Elevate Interview Questions

10. What is brouter?

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.

Exterior gateway protocol

 

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.

Must Read DataStage Interview Questions

Hard Genc Elevate Interview Questions

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);
    }
}

Output Image

 

14. Write a code to print numbers from 1 to 10 without using a loop or recursion in C++.

#include <iostream>
using namespace std;
 
template<int n>
class PrintZeroToN
{
public:
   static void display()
   {
       PrintZeroToN<n-1>::display();
       cout << n << endl;
   }
};
 
template<>
class PrintZeroToN<0>
{
public:
   static void display()
   {
       cout << 0 << endl;
   }
};
int main()
{
   const int n = 10;
   PrintZeroToN<n>::display();
   return 0;
}

 

15. Print the address of a variable without using a pointer.

We can directly print the address of a variable using the ‘&’ symbol in c,

#include <stdio.h>
int main()
{
   int x;
   printf("Address of x: %p\n", &x);
   return 0;
}

Output Image

 

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. 

Software Development Life Cycle

 

21. Name the concepts of OOPS?

Some of the main concepts of OOPS are,

  • Class
  • Objects
  • Abstraction
  • Inheritance
  • Encapsulations
  • Polymorphism

 

22. What are the different types of inheritance?

The different types of inheritance are,

 

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");
    }
}

Output Image

 

24. Write a program to print the Fibonacci series.

import java.util.*;
class ninjaSolution {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("Please enter the limit!!");
        int limit = sc.nextInt();
         int n1 = 0, n2=1, n3;
        System.out.println("Fibonacci series upto "+limit+" numnber");
        System.out.print("\n\n"+n1+" "+n2+" ");
        for(int i=2;i<limit;i++){
            n3 = n1+n2;
            n1 = n2;
            n2 = n3;
            System.out.print(" "+n3+" ");
        }
    }
}

Output Image

 

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");
    }
}

Output Image

Output Image

Tips and Tricks for Genc Elevate Coding Interview

Tips and Tricks for Genc Elevate Coding Interview

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 definitely 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.

Conclusion

This blog contained a series of Genc Elevate Interview Questions. The blog also has sweet, and to-the-point answers for the mentioned Genc Elevate Interview Questions. Do check out our blogs on object-oriented programming and data structures. Also, check out our blog on Production Support Interview Questions, and SQL Query Interview Questions

Recommended Reading:

Interview questions for freshers

BPO interview questions

Power Apps Interview Questions

Don’t stop here. Check out Coding Ninjas for more unique courses and guided paths. Also, try Coding Ninjas Studio for more exciting articles, interview experiences, and fantastic Data Structures and Algorithms problems.

Previous article
Ab Initio Interview Questions
Next article
GD&T Interview Questions
Live masterclass