Skip to content
Gblog SDE SHEET – A Complete Guide for SDE Preparation
What is SDE Sheet? SDE Sheet is a list of the most important topics or the most popular questions that are asked in the Software… Read More
Four jobs to be executed on a single processor system arrive at time 0 in the order A, B, C, D. Their burst CPU time… Read More
A solution to the Dining Philosophers Problem which avoids deadlock is: (A) ensure that all philosophers pick up the left fork before the right fork… Read More
There are many points in two-dimensional space which need to be visited in a specific sequence. Path from one point to other is always chosen… Read More
Given n integers, which form a circle. Find the minimal absolute value of any adjacent pair. If there are many optimum solutions, output any of… Read More
Given an array of size n containing equal number of odd and even numbers. The problem is to arrange the numbers in such a way… Read More
In C++, we can quickly find array sum using accumulate() // C++ program to demonstrate working of accumulate() #include <iostream>  #include <numeric>      using namespace std;… Read More
Given an encoding of a binary string of length k, the task is to find if the given encoding uniquely identifies a binary string or… Read More
A 1000 Kbyte memory is managed using variable partitions but no compaction. It currently has two partitions of sizes 200 Kbytes and 260 Kbytes respectively.… Read More
Given an unsorted array of n integers which can contains n integers. Count frequency of all elements that are present in array. Examples: Input :… Read More
The correct matching for the following pairs is A. Activation record 1. Linking loader B. Location counter 2. Garbage collection C. Reference counts 3. Subroutine… Read More
Which of the following macros can put a micro assembler into an infinite loop? (i) .MACRO M1 X .IF EQ, X ;if X=0 then M1… Read More
Given two strings ‘s’ and ‘q’, check if all characters of q are present in ‘s’. Examples:   Example: Input: s = "abctd" q = "cat" Output:… Read More
Given an array, a[], and an element x, find a number of occurrences of x in a[].Examples:   Input : a[] = {0, 5, 5, 5,… Read More
Prerequisite : Structure padding, integer promotion and sequence points. Q1. Consider the following code:   C #include<stdio.h> struct geeks{   int i;   char c; } obj;   int… Read More
A state diagram is used to represent the condition of the system or part of the system at finite instances of time. It’s a behavioral… Read More

Start Your Coding Journey Now!