
Nvidia


30+ Nvidia Interview Questions and Answers for Freshers
Q1. What is Unique key,What are some common clauses used with SELECT query in SQL?
Unique key is a column or set of columns that uniquely identifies each row in a table. Common SELECT clauses include WHERE, ORDER BY, and GROUP BY.
A unique key is used to ensure data integrity and prevent duplicate rows.
SELECT WHERE clause is used to filter data based on a condition.
SELECT ORDER BY clause is used to sort data in ascending or descending order.
SELECT GROUP BY clause is used to group data based on a column or set of columns.
Q2. Order of People Heights Problem Statement
Consider 'N' individuals numbered from 0 to N-1 standing in a queue. You are provided with two arrays: Height
and Infront
, each consisting of 'N' non-negative integers....read more
The task is to find the actual order of people in a queue based on their heights and the number of taller people in front of them.
Iterate through the given arrays and create a list of tuples containing the height and number of taller people for each person.
Sort the list of tuples in descending order of height and ascending order of the number of taller people.
Create an empty result list and insert each tuple into the result list at the index specified by the number of taller ...read more
Q3. 1)Introduce yourself2) what is artificial intelligence 3) what is database 4) what is GPU 5) what is CPU6) what is IP addresse etc
Answers to questions related to Process Executive role including AI, database, GPU, CPU, and IP address.
Artificial Intelligence is the simulation of human intelligence in machines that are programmed to think and learn like humans.
Database is a structured collection of data that can be accessed, managed, and updated easily.
GPU stands for Graphics Processing Unit, which is a specialized electronic circuit designed to rapidly manipulate and alter memory to accelerate the creati...read more
Q4. Swap Numbers Without Temporary Variable
Your task is to interchange the values of two numbers given as variables 'X' and 'Y' without using a temporary variable or any additional variable.
Explanation:
You need ...read more
Swap two numbers without using a temporary variable.
Use bitwise XOR operation to swap the values of X and Y without using a temporary variable.
The XOR operation works by flipping the bits of the numbers.
After swapping, X = X XOR Y and Y = X XOR Y.
Finally, X = X XOR Y to get the original value of Y in X.
Q5. Do you know about Labelling and annotations?
Labelling and annotations are used to provide additional information and context to data or objects.
Labelling involves assigning a name or tag to a data point or object.
Annotations provide additional information or context to a data point or object.
Labelling and annotations are commonly used in data visualization and machine learning.
Examples of labelling and annotations include labeling data points on a scatter plot, annotating an image with object detection results, and lab...read more
Q6. Binary Search Tree Value Finder
Given a Binary Search Tree (BST) and a key value 'X', determine if there exists a node within the BST containing the value 'X'.
Example:
Input:
Consider the tree represented in l...read more
The task is to find if a given value is present in a Binary Search Tree (BST).
Start from the root node and compare the value with the target value.
If the value matches, return true.
If the target value is less than the current node value, move to the left child.
If the target value is greater than the current node value, move to the right child.
Repeat the process until a match is found or a leaf node is reached.
If a leaf node is reached and no match is found, return false.
Q7. Count of Sum of Consecutives Problem Statement
You are given a positive integer 'N'. Your objective is to determine the number of ways to express 'N' as the sum of two or more consecutive natural numbers.
Input...read more
Count the number of ways to express a positive integer as the sum of two or more consecutive natural numbers.
Iterate through possible consecutive sequences starting from 1 up to N/2
Check if the sum of the sequence equals N
Count the valid sequences and return the total count
The feature of the operating system being used here is multitasking.
Allows multiple applications to run simultaneously
Switches between tasks quickly
Ensures efficient utilization of system resources
Q9. Examples of Artificial Intelligence
Artificial Intelligence is the simulation of human intelligence processes by machines.
Natural Language Processing (NLP)
Machine Learning (ML)
Computer Vision
Expert Systems
Robotics
Speech Recognition
Virtual Agents
Autonomous Vehicles
Q10. What is polymorphism? What is virtual function…? How will you implement if I tell you to develop compiler?
Polymorphism is the ability of a function to behave differently based on the object it is called with. Virtual functions allow dynamic binding.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
Virtual functions are functions in a base class that are overridden in derived classes.
To implement a compiler, you would need to handle polymorphism and virtual functions for proper function resolution.
Q11. What is function template? Do you know what exactly happen when template is executed? If you don’t then tell how will you do that?
A function template is a generic function that can work with any data type. When a template is executed, the compiler generates a specific function for each data type used.
Function template allows writing a single function that can work with different data types.
When a template is executed, the compiler generates a specific function for each data type used.
Templates are a powerful feature in C++ that enable generic programming.
Example: template <typename T> void print(T value...read more
Q12. Memory allocation in struct? Why it is like that….why continuous memory is not allocated to struct variables?
Memory allocation in struct is not continuous because of alignment requirements and padding for efficient memory access.
Struct variables may contain different data types with different memory alignment requirements
Padding is added to ensure each variable is aligned properly for efficient memory access
Example: struct with int, char, and double variables may have padding between them for alignment
Q13. Implement your own malloc function such that it will allocate memory of 16 bytes and starting address will always be divisible by 16…..was told to write code
Implement a custom malloc function to allocate memory of 16 bytes with starting address divisible by 16.
Allocate memory using malloc function
Adjust the starting address to be divisible by 16
Return the adjusted memory address
Q14. How was apti, coding test, and entire selection procedure?
The apti, coding test, and entire selection procedure were challenging but well-structured.
The aptitude test covered a wide range of topics and required logical thinking.
The coding test involved solving complex problems using programming languages.
The selection procedure included multiple rounds of interviews and assessments.
The overall process was rigorous but fair, allowing candidates to showcase their skills and abilities.
Q15. Can you find maximum stack memory available using above data structure
The maximum stack memory available cannot be determined using the given data structure.
The maximum stack memory available depends on the hardware and operating system.
It is not possible to determine the maximum stack memory based on the given data structure alone.
To determine the maximum stack memory, one would need to consider the hardware limitations and the operating system's stack size limit.
The data structure provided does not contain information about the maximum stack ...read more
Q16. Find whether no. is even or odd…(I gave mod2 solution)
The solution to determine whether a number is even or odd is to use the modulus operator with 2.
Use the modulus operator (%) to find the remainder when the number is divided by 2.
If the remainder is 0, the number is even. Otherwise, it is odd.
Example: 7 % 2 = 1, so 7 is an odd number.
Example: 10 % 2 = 0, so 10 is an even number.
Q17. What exactly happens as we free up dynamically allocated memory using free()
Q18. What is the difference between mealy and Moore state machine?
Mealy and Moore state machines are two types of finite state machines used in hardware programming.
Mealy state machine outputs depend on both the current state and the inputs
Moore state machine outputs depend only on the current state
Mealy machines have more flexibility but are more complex to design and analyze
Moore machines are simpler but less flexible
Mealy machines are often used when the output depends on the input
Moore machines are often used when the output depends onl...read more
Q19. What are sockets, pipes, inter-process communication?
Sockets, pipes, and inter-process communication are mechanisms used for communication between processes.
Sockets are endpoints for sending and receiving data across a network. They enable communication between processes running on different machines.
Pipes are a form of inter-process communication that allows communication between processes running on the same machine. They provide a unidirectional flow of data.
Inter-process communication (IPC) refers to various methods used by...read more
Q20. What happens in recursive function calls? What are the drawbacks?
Q21. Uses of function pointer…(I said to send a function as argument)….he asked more…(I told that I know only one)
Function pointers are used to pass functions as arguments to other functions, allowing for dynamic behavior and flexibility in programming.
Function pointers can be used for callback functions in event handling systems.
They can be used to implement polymorphism in object-oriented programming.
Function pointers are commonly used in sorting algorithms to specify custom comparison functions.
Q22. Thread scheduling….difference between process and thread scheduling
Process scheduling manages execution of processes, while thread scheduling manages execution of threads within a process.
Process scheduling involves allocating CPU time to different processes, while thread scheduling involves allocating CPU time to different threads within a process.
Process scheduling is typically handled by the operating system, while thread scheduling can be managed by the application itself.
Examples of process scheduling algorithms include Round Robin, Fir...read more
Q23. What is process, Thread? What is multi-threading?
Q24. WAP to determine whether your system is little endian or big endian?
Q25. What is little endian and big endian?
Little endian and big endian are two ways of storing multi-byte data types in computer memory.
Little endian: least significant byte is stored first
Big endian: most significant byte is stored first
Example: In little endian, the number 0x1234 is stored as 0x34 0x12
Example: In big endian, the number 0x1234 is stored as 0x12 0x34
Q26. Convert little endian to big endian in constant time
Q27. Design data structure to implement multi-threading
Q28. What do you understand by AI?
Q29. What is malloc, calloc function?
Q30. How does AI content writing differ from academic writing?
AI content writing focuses on generating engaging and optimized content for online platforms, while academic writing is more formal and research-based.
AI content writing uses algorithms to create content that is tailored for online audiences and optimized for search engines.
Academic writing is more formal, structured, and research-based, focusing on presenting arguments and supporting evidence.
AI content writing may prioritize readability, SEO, and engagement metrics, while a...read more
Q31. What is sequential logic?
Sequential logic refers to a type of digital circuit design that uses memory elements to store and process data sequentially.
Sequential logic circuits are used to build memory units, counters, shift registers, and other devices.
They rely on memory elements like flip-flops or latches to store and propagate data.
The output of a sequential logic circuit depends not only on the current inputs but also on the previous inputs and the current state of the memory elements.
Sequential ...read more
Q32. ds implementation in python
Data structure implementation in Python
Use built-in data structures like lists, dictionaries, sets, etc.
Implement custom data structures like linked lists, stacks, queues, trees, etc.
Utilize libraries like NumPy for efficient array operations
Practice implementing algorithms using data structures
More about working at Nvidia

Top HR Questions asked in Nvidia for Freshers
Interview Process at Nvidia for Freshers

Top Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

