MongoDB, the most popular NoSQL database, is an open-source document-oriented database. The term ‘NoSQL’ means ‘non-relational’. It means that MongoDB isn’t based on the table-like… Read More
All Basic Articles
Given a sorted array of integers and a number k, write a function that returns true if given array can be divided into pairs such… Read More
Pick the best statement for the below program: #include "stdio.h" int size = 4; int arr[size]; int main() { if(arr[0]) printf("Initialized to ZERO");… Read More
Pick the best statement for the below program: #include "stdio.h" void fun(int n) { int idx; int arr1[n] = {0}; int arr2[n]; for… Read More
Given a number as string, remove recurring digits from the given string. The changes must be made in-place. Expected time complexity O(n) and auxiliary space… Read More
Recently Zillious visited our campus and take three rounds for final selection. Written Round : 25 MCQ’s based on C & C++ output, OS, CN… Read More
Given a string, that contains special character together with alphabets (‘a’ to ‘z’ and ‘A’ to ‘Z’), reverse the string in a way that special… Read More
Hitachi consulting is a company where they want a person who is all rounder, not just a coder or a speaker. They want a person… Read More
In JavaScript, there are two types of scopes Global Scope – Scope outside the outermost function attached to window. Local Scope – Inside the function… Read More
Given a singly linked list and a position, delete a linked list node at the given position. Example: Input: position = 1, Linked List… Read More
In C, 1D array of int can be defined as follows and both are correct. int array1D[4] = {1,2,3,4}; int array1D[] = {1,2,3,4}; But given… Read More
The below program would give compile error because comma has been used after foo(). Instead, semi-colon should be used i.e. the way it has been… Read More
The following program won’t compile because there’re space between macro name and open parenthesis. #include "stdio.h" #define MYINC ( a ) ( ( a… Read More
Suppose someone writes increment macro (i.e. which increments the value by one) in following ways: #define INC1(a) ((a)+1) #define INC2 (a) ((a)+1) #define… Read More
Find out the correct statement for the following program. #include "stdio.h" int * arrPtr[5]; int main() { if(*(arrPtr+2) == *(arrPtr+4)) { printf("Equal!"); }… Read More
Find out the correct statement for the following program. #include "stdio.h" int * gPtr; int main() { int * lPtr = NULL; … Read More
Written round -90 mins There were 39 questions in this test conducted on hackerrank platform 15 aptitude questions 20 technical questions 4 coding questions Aptitude… Read More
Consider below questions. How many spanning trees can be there in a complete graph with n vertices? How many labelled Trees (please note trees, not… Read More
Find out the correct statement for the following program. #include "stdio.h" typedef int (*funPtr)(int); int inc(int a) { printf("Inside inc() %d\n",a); return (a+1);… Read More
Most of the languages including C, C++, Java and Python provide the boolean type that can be either set to False or True. Consider below… Read More


