Skip to content
Gblog GEEK-O-LYMPICS 2022 – May The Geeks Force Be With You!
Is it possible to have tons of fun while maintaining your competitive spirit? Totally! It is 100% possible. For the geeks who code hard and… Read More
The product of the non-zero eigenvalues of the matrix 1 0 0 0 1 0 1 1 1 0 0 1 1 1 0 0… Read More
In the Newton-Raphson method, an initial guess of x0 = 2 is made and the sequence x0, x1, x2 … is obtained for the function… Read More
The value of a float type variable is represented using the single-precision 32-bit floating point format IEEE-754 standard that uses 1 bit for sign, 8… Read More
If the associativity of a processor cache is doubled while keeping the capacity and block size unchanged, which one of the following is guaranteed to… Read More
In designing a computer’s cache system, the cache block (or cache line) size is an important parameter. Which one of the following statements is correct… Read More
Consider the C function given below. int f(int j) {   static int i = 50;   int k;   if (i == j)   {     printf(“something”);     k =… Read More
Suppose implementation supports an instruction REVERSE, which reverses the order of elements on the stack, in addition to the PUSH and POP instructions. Which one… Read More
Consider the following function double f(double x){   if (abs(x*x - 3) < 0.01) return x;   else return f(x/2 + 1.5/x); } Give a value q… Read More
Consider the expression tree shown. Each leaf represents a numerical value, which can either be 0 or 1. Over all possible choices of the values… Read More
Suppose P, Q, R, S, T are sorted sequences having lengths 20, 24, 30, 35, 50 respectively. They are to be merged into a single… Read More
Consider two strings A = “qpqrr” and B = “pqprqrp”. Let x be the length of the longest common subsequence (not necessarily contiguous) between A… Read More
Let be the encoding of a Turing machine as a string over ∑= {0, 1}.  Let L = { |M is a Turing machine that accepts… Read More
Let L1 = {w ∈ {0,1}∗ | w has at least as many occurrences of (110)’s as (011)’s}. Let L2 = { ∈ {0,1}∗ |… Read More
For a C program accessing X[i][j][k], the following intermediate code is generated by a compiler. Assume that the size of an integer is 32 bits… Read More
A computer has twenty physical page frames which contain pages numbered 101 through 120. Now a program accesses the pages numbered 1, 2, …, 100… Read More

Start Your Coding Journey Now!