Фильтр публикаций


Why does the name of JavaScript and Java are similar?
Опрос
  •   JavaScript is a stripped-down version of Java.
  •   The syntax of JavaScript is loosely based on the syntax of Java.
  •   JavaScript and Java both are originated on the island of Java.
  •   None of the above
13 голосов


Explanation:
Advance the pointers in such a way that the fast pointer advances two nodes at a time and slow pointer advances one node at a time and check to see if at any given instant of time if the fast pointer points to slow pointer or if the fast pointer’s ‘next’ points to the slow pointer. This is applicable for smaller lists.


Consider a small circular linked list. How to detect the presence of cycles in this list effectively?
Опрос
  •   Keep one node as head and traverse another temp node till end to check if its ‘next points to head
  •   Have fast and slow pointers with fast pointer advancing two nodes at a time
  •   Cannot determine, you have to pre-define if the list contains cycles
  •   Circular linked list itself represents a cycle. So no new cycles cannot be generated
2 голосов


API Architecture Styles


Choosing the Right API Style Today

APIs come in many flavors, each suited for different needs. SOAP, though reliable for enterprise apps, feels outdated with its XML complexity. RESTful APIs are still the go-to for simplicity and wide adoption, but they can suffer from over- or under-fetching data.

GraphQL is the modern favorite, perfect for getting exactly the data you need—great for front-end flexibility. gRPC shines in high-performance, microservices-heavy environments, while WebSockets handle real-time, low-latency communication brilliantly. Finally, Webhooks are ideal for event-driven applications with asynchronous needs.

In today’s world, GraphQL or RESTful APIs often dominate, but your choice should depend on your app’s specific requirements.


Which of the following is not a JavaScript framework or library?
Опрос
  •   Polymer
  •   Meteor
  •   jQuery
  •   Cassandra
2 голосов


Which of the following is false about a circular linked list?
Опрос
  •   Every node has a successor
  •   Time complexity of inserting a new node at the head of the list is O(1)
  •   Time complexity for deleting the last node is O(n)
  •   We can traverse the whole circular linked list by starting from any point
4 голосов


Structure of JWT (JSON Web Token)


Which of the following syntax can be used to write "Hello World" in an alert box?
Опрос
  •   alertBox("Hello World");
  •   msgBox("Hello World");
  •   alert("Hello World");
  •   msg("Hello World");
90 голосов


Which of the following syntax is correct to refer to an external script called "LFC.js"?
Опрос
  •  
  •  
  •  
  •  
80 голосов


Explanation:
Generally, round robin fashion is employed to allocate CPU time to resources which makes use of the circular linked list data structure. Recursive function calls use stack data structure. Undo Operation in text editor uses doubly linked lists. Hash tables uses singly linked lists.


Which of the following application makes use of a circular linked list?
Опрос
  •   Undo operation in a text editor
  •   Recursive function calls
  •   Allocating CPU to resources
  •   Implement Hash Tables
76 голосов


Which of the following function of the Array object is used to add one or more elements to the front of an array and returns the new length of the array?
Опрос
  •   splice()
  •   unshift()
  •   sort()
  •   toString()
97 голосов


What is the time complexity of searching for an element in a circular linked list?
Опрос
  •   O(n)
  •   O(nlogn)
  •   O(1)
  •   O(n2)
118 голосов


7 Top Hacking Gadgets


18 Most Used Linux Commands


Cloud Database Cheat Sheet


SQL Bite


Coding interview preparation cheat sheet


Which of the following is not a JavaScript Data Types?
Опрос
  •   Boolean
  •   Undefined
  •   Float
  •   Number
158 голосов


#meme

Показано 20 последних публикаций.