Nokia Networks
Advenza Interview Questions and Answers
Q1. Write a pointers program and tell the diff between references and pointers.
Pointers program and differences between references and pointers
Pointers are variables that store memory addresses
References are aliases for existing variables
Pointers can be reassigned to point to different memory locations
References cannot be reassigned to refer to a different variable
Pointers require dereferencing to access the value they point to
References automatically dereference when accessed
Q2. What is shell scripting?
Shell scripting is a way to automate tasks by writing scripts in a shell language like Bash.
Shell scripting allows for automating repetitive tasks in a Unix/Linux environment.
Scripts can be written to execute commands, perform system administration tasks, and more.
Examples include writing a script to backup files, automate software installations, or monitor system resources.
Q3. Write a python code to reverse a string.
Python code to reverse a string
Use slicing to reverse the string
Example: input_string = 'hello', reversed_string = input_string[::-1]
Q4. reverse a linked list
Reverse a linked list by changing the next pointers of each node
Initialize three pointers: prev = null, current = head, next = null
Iterate through the linked list, updating next to current's next, current's next to prev, and moving prev and current pointers forward
Return the new head, which is the last node visited
Q5. create a thread in process
Creating a thread in a process involves allocating resources for a new thread to run concurrently with other threads.
Use threading libraries like pthreads in C or java.util.concurrent in Java
Create a new thread object and pass a function or method to be executed by the thread
Start the thread to begin execution
Join the thread to wait for it to finish before continuing
Q6. find a bit is set
To find if a bit is set, use bitwise AND operator with the bit position
Use bitwise AND operator (&) with the bit position to check if it is set
If the result is greater than 0, then the bit is set
Example: Check if 3rd bit is set in binary number 1010 - (1010 & 0100) = 0100 (4), so 3rd bit is set
Interview Process at Advenza
Top Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month