Add office photos
Employer?
Claim Account for FREE

CodeQuotient

4.3
based on 28 Reviews
Filter interviews by

Verizon Interview Questions and Answers

Updated 17 Feb 2025

Q1. What are the differences between linked lists and arrays based on various criteria?

Ans.

Linked lists and arrays differ in terms of memory allocation, insertion/deletion efficiency, and random access.

  • Arrays have contiguous memory allocation, while linked lists have non-contiguous memory allocation.

  • Arrays have constant time access to elements, while linked lists have linear time access.

  • Linked lists are more efficient for insertion/deletion operations, as they do not require shifting elements like arrays.

  • Arrays are better for random access, as elements can be acces...read more

Add your answer

Q2. Evaluate the output of the following: #include int main(){ int a=8; if(a) printf("Hello"); else printf("World"); }

Ans.

The output will be 'Hello' as the condition 'if(a)' will evaluate to true since 'a' is not equal to 0.

  • The condition 'if(a)' will evaluate to true if 'a' is not equal to 0.

  • In this case, 'a' is equal to 8 which is not equal to 0, so 'Hello' will be printed.

Add your answer

Q3. Predict the output of the following: #include int main() { int i; for(i=1;i<=5;printf("%d",i)) { i++; } }

Ans.

The program will print numbers from 1 to 5 continuously without spaces.

  • The for loop increments i by 1 each iteration

  • The printf statement prints the value of i without a newline character

  • The loop continues until i is greater than 5

Add your answer

Q4. Banker's algorithm

Ans.

Banker's algorithm is a resource allocation and deadlock avoidance algorithm used in operating systems.

  • Used to avoid deadlock in a system by ensuring that resources are allocated safely

  • Consists of multiple algorithms including safety algorithm and resource request algorithm

  • Requires information about available resources, maximum resources, allocated resources, and need of each process

  • Example: If a process requests additional resources, the banker's algorithm checks if the syst...read more

Add your answer
Discover Verizon interview dos and don'ts from real experiences

Q5. Seggregate odd and even in array

Ans.

Segregate odd and even numbers in an array

  • Iterate through the array and move odd numbers to one side and even numbers to the other

  • Use two pointers, one starting from the beginning and the other from the end

  • Time complexity: O(n)

Add your answer

Q6. Find middle node of a Linkedlist.

Add your answer

Q7. reverse linked list.

Ans.

Reverse a linked list by changing the direction of its pointers.

  • Create a new pointer to keep track of the previous node.

  • Iterate through the linked list, changing the direction of the pointers.

  • Return the new head of the reversed linked list.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Verizon

based on 6 interviews
Interview experience
4.8
Excellent
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.7
 • 419 Interview Questions
3.3
 • 308 Interview Questions
3.9
 • 211 Interview Questions
3.9
 • 209 Interview Questions
4.3
 • 138 Interview Questions
4.0
 • 134 Interview Questions
View all
Top CodeQuotient Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter