Courses
Tutorials
Jobs
Practice
Contests
Data Structure
Java
Python
HTML
Interview Preparation
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
GBlog
Frontend Developer Roadmap 2024
Frontend development means to design the face of a website or application. It involves working on the appearance of the website. Building interactive buttons, using images...
Read More
UGC-NET | NTA UGC NET 2019 June - II | Question 30
What is the output of the following JAVA program?public class Good{Private int m;Public Good(int m){this.m=m;}public Boolean equals(Good n){return n.m=m;}public static voi...
Read More
UGC-NET
UGC-NET | NTA UGC NET 2019 June - II | Question 29
K-mean clustering algorithm has clustered the given 8 observations into 3 clusters after 1st iteration as follows:C1 : {(3,3), (5,5), (7,7)}C2 : {(0,6), (6,0), (3,0)}C3 : ...
Read More
UGC-NET
UGC-NET | NTA UGC NET 2019 June - II | Question 28
For a statement, " A language L ⊆ Σ* is recursive if there exists some Turing machine M Which of the following conditions is satisfied for any string w"?(A) If ω∈L, then M...
Read More
UGC-NET
UGC-NET | NTA UGC NET 2019 June - II | Question 27
Shift-reduce parser consists of (a) input buffer(b) stack(c) parse tablechoose the correct option from those given below:(A) (a) and (b) only(B) (a) and (c) only(C) (c) on...
Read More
UGC-NET
UGC-NET | NTA UGC NET 2019 June - II | Question 26
Software validation mainly checks for inconsistencies between(A) Use cases and user requirements(B) Implementation and system design blueprints(C) Detailed specifications ...
Read More
UGC-NET
UGC-NET | NTA UGC NET 2019 June - II | Question 25
At a particular time of computation, the value of a counting semaphore is 7. Then 20 P(wait) operations and 15 V(signal) operations are completed on this semaphore. What i...
Read More
UGC-NET
UGC-NET | NTA UGC NET 2019 June - II | Question 24
Consider double hashing of the formh(k,i)=(h 1 (k)+ih 2 (k)) mod mWhere h 1 (k)=k mod mh 2 (k)=1+(k mod n)Where n=m-1and m=701for k=123456, what is the difference ...
Read More
UGC-NET
UGC-NET | NTA UGC NET 2019 June - II | Question 23
Consider the Euler’s phi function given byϕ(n)=nΠp/n(1–1p)where p runs over all the primes dividing n. What is the value of ϕ(45)?(A) 3(B) 12(C) 6(D) 24 Answer: (D) Explan...
Read More
UGC-NET
Python Program For Finding Length Of A Linked List
Write a function to count the number of nodes in a given singly linked list.For example, the function should return 5 for linked list 1-3-1-2-1.Recommended: Please solve i...
Read More
Linked List
Linked Lists
Python
Python Programs
Python-Data-Structures
DSA
Java Program For Finding Length Of A Linked List
Write a function to count the number of nodes in a given singly linked list.For example, the function should return 5 for linked list 1-3-1-2-1.Recommended: Please solve i...
Read More
Linked List
Linked Lists
Java
Java Programs
DSA
C Program For Finding Length Of A Linked List
Write a function to count the number of nodes in a given singly linked list.For example, the function should return 5 for linked list 1-3-1-2-1.Recommended: Please solve i...
Read More
Linked List
Linked Lists
C Language
C Programs
DSA
C++ Program For Finding Length Of A Linked List
Write a function to count the number of nodes in a given singly linked list.For example, the function should return 5 for linked list 1-3-1-2-1.Recommended: Please solve i...
Read More
Linked List
Linked Lists
C++
C++ Programs
DSA
UGC-NET | NTA UGC NET 2019 June - II | Question 22
Which of the following problems is/are decidable problem(s) (recursively enumerable) on a Turing machine M?(a) G is a CFG with L(G)=∅(b) There exist two TMs M1 and M2 s...
Read More
UGC-NET
C++ Program For Writing A Function To Get Nth Node In A Linked List
Write a C++ Program to GetNth() function that takes a linked list and an integer index and returns the data value stored in the node at that index position.Example:Input: ...
Read More
Linked List
GetNth
Linked Lists
C++
C++ Programs
DSA
UGC-NET | NTA UGC NET 2019 June - II | Question 21
Consider a disk system with 100 cylinders. The requests to access the cylinders occur in the following sequence:4,34,10,7,19,73,2,15,6,20 Assuming that the head is current...
Read More
UGC-NET
1
...
5019
5020
5021
...
11320