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
GATE | GATE CS 2018 | Question 29
Consider the following two tables and four queries in SQL.Book (isbn, bname), Stock (isbn, copies)Query 1:SELECT B.isbn, S.copiesFROM Book B INNER JOIN Stock SON B.isbn = ...
Read More
GATE
GATE-GATE CS 2018
GATE CS 2018
GATE | GATE CS 2018 | Question 28
The set of all recursively enumerable languages is (A) closed under complementation.(B) closed under intersection.(C) a subset of the set of all recursive languages.(D) an...
Read More
GATE
GATE-GATE CS 2018
GATE CS 2018
GATE | GATE CS 2018 | Question 27
Two people, P and Q, decide to independently roll two identical dice, each with 6 faces, numbered 1 to 6. The person with the lower number wins, In case of a tie, they rol...
Read More
GATE
GATE-GATE CS 2018
GATE CS 2018
GATE | GATE CS 2018 | Question 26
Let N be an NFA with n states. Let k be the number of states of a minimal DFA which is equivalent to N. Which one of the following is necessarily true? (A) k ≥ 2n(B) k ≥ n...
Read More
GATE
GATE-GATE CS 2018
GATE CS 2018
Hewlett-Packard Recruitment Process
This article will give you information about the company, its recruitment process, sample questions that have been asked previously, lots of experiences shared by other as...
Read More
Misc
Interview Experiences
HP
Recruitment Process
Experiences
Interview Preparation
Recruitment Process
GATE | GATE CS 2018 | Question 25
The value of [TEX]\int_{0}^{\pi / 4} x \cos(x^2) dx[/TEX] correct to three decimal places (assuming that [TEX]\pi = 3.14[/TEX]) is _______ .Note -This was Numerical Type q...
Read More
GATE
GATE-GATE CS 2018
GATE CS 2018
GATE | GATE CS 2018 | Question 24
In an Entity-Relationship (ER) model, suppose R is a many-to-one relationship from entity set E1 to entity set E2. Assume that E1 and E2 participate totally in R and that ...
Read More
GATE
GATE-GATE CS 2018
GATE CS 2018
Sort on the basis of number of factors using STL
Given an array of positive integers. Sort the given array in decreasing order of a number of factors of each element, i.e., an element having the highest number of factors...
Read More
Arrays
Sorting
STL
prime-factor
DSA
GATE | GATE CS 2018 | Question 23
The following are some events that occur after a device controller issues an interrupt while process L is under execution.(P) The processor pushes the process status of L ...
Read More
GATE
GATE-GATE CS 2018
GATE CS 2018
GATE | GATE CS 2018 | Question 22
Consider the following statements regarding the slow start phase of the TCP congestion control algorithm. Note that cwnd stands for the TCP congestion window and MSS denot...
Read More
GATE
GATE-GATE CS 2018
GATE CS 2018
GATE | GATE CS 2018 | Question 21
Let ⊕ and ⊙ denote the Exclusive OR and Exclusive NOR operations, respectively. Which one of the following is NOT CORRECT?(A) A(B) B(C) C(D) D Answer: (D) Explanation: (A)...
Read More
GATE
GATE-GATE CS 2018
GATE CS 2018
GATE | GATE CS 2018 | Question 20
The postorder traversal of a binary tree is 8, 9, 6, 7, 4, 5, 2, 3, 1. The inorder traversal of the same tree is 8, 6, 9, 4, 7, 2, 5, 1, 3. The height of a tree is the len...
Read More
GATE
GATE-GATE CS 2018
GATE CS 2018
Longest prefix which is also suffix
Given a string s, find the length of the longest prefix, which is also a suffix. The prefix and suffix should not overlap.Examples:Input : S = aabcdaabcOutput : 4Explanati...
Read More
Misc
Strings
Pattern Searching
Searching
strings
DSA
GATE | GATE CS 2018 | Question 19
Which one of the following statements is FALSE?(A) Context-free grammar can be used to specify both lexical and syntax rules.(B) Type checking is done before parsing.(C) H...
Read More
GATE
GATE-GATE CS 2018
GATE CS 2018
GATE | GATE CS 2018 | Question 18
Which one the following is a closed form expression for the generating function of the sequence {an}, where an = 2n + 3 for all n = 0, 1, 2,...?(A) A(B) B(C) C(D) D Answer...
Read More
GATE
GATE-GATE CS 2018
GATE CS 2018
1
...
11169
11170
11171
...
11293