Skip to content
Gblog Master the Coding Interview – Contest Series Based On Real Interviews
“If you want to clear your next Coding Interview, practice as many programming questions as you can!” – An obvious advice that a guy who’s… Read More
20 Objective type questions (Technical: OS, Java, Networking) and 2 programs. Time given was 90 minutes. 1) Longest Remaining Rime Scheduling 2) Threads 3) subnetmask… Read More
What does the following C statement mean? scanf("%4s", str); (A) Read exactly 4 characters from console. (B) Read maximum 4 characters from console. (C) Read… Read More
What does the following function do? int fun(unsigned int n) {     if (n == 0 || n == 1)         return n;        if (n%3 !=… Read More
Output of following program #include <stdio.h> int fun(char *p) {     if (p == NULL || *p == '\0') return 0;     int current = 1, i… Read More
#include <stdio.h>    char *c[] = {"GeksQuiz", "MCQ", "TEST", "QUIZ"}; char **cp[] = {c+3, c+2, c+1, c}; char ***cpp = cp;    int main() {… Read More
Output of following program? #include<stdio.h> void print(int n) {     if (n > 4000)         return;     printf("%d ", n);     print(2*n);     printf("%d ", n); }    int main()… Read More
What does fun2() do in general? int fun(int x, int y) {     if (y == 0)   return 0;     return (x + fun(x, y-1)); }   … Read More
What does the following function do? int fun(int x, int y) {     if (y == 0)   return 0;     return (x + fun(x, y-1)); } (A)… Read More
Which of the following is true about constructors. 1) They cannot be virtual. 2) They cannot be private. 3) They are automatically called by new… Read More
Output of following program? #include <iostream> using namespace std;    int fun(int=0, int = 0);    int main() {   cout << fun(5);   return 0; }… Read More
Predict the output? #include <iostream> using namespace std;    class Test  {   int x;   Test() { x = 5;} };    int main() {    Test… Read More
Which of the following is true about new when compared with malloc. 1) new is an operator, malloc is a function 2) new calls constructor,… Read More
How to create a dynamic array of pointers (to integers) of size 10 using new in C++? Hint: We can create a non-dynamic array using… Read More
Oracle Interview-Server Tech. ========== Round 1: ========== 1. Explain Tree traversals. Given a inorder and postorder construct a tree 2. What is fork? How many… Read More
In C++, const qualifier can be applied to 1) Member functions of a class 2) Function arguments 3) To a class data member which is… Read More