Disk Scheduling Algorithms
Disk scheduling is is done by operating systems to schedule I/O requests arriving for disk. Disk scheduling is also known as I/O scheduling. Disk scheduling… Read More »
Disk scheduling is is done by operating systems to schedule I/O requests arriving for disk. Disk scheduling is also known as I/O scheduling. Disk scheduling… Read More »
First Round: Online coding test on Cocubes.com Q1. Given two integers m and n write the function to compute the number of bit changes required… Read More »
Given two linked lists, represented as linked lists (every character is a node in linked list). Write a function compare() that works similar to strcmp(),… Read More »
For the following declaration of a function in C, pick the best statement filter_none edit close play_arrow link brightness_4 code int [] fun(void (*fptr)(int *));… Read More »
Pick the correct statement for const and volatile. (A) const is the opposite of volatile and vice versa. (B) const and volatile can’t be used… Read More »
In a C program snippet, followings are used for definition of Integer variables? filter_none edit close play_arrow link brightness_4 code signed s; unsigned u; long… Read More »
In Must use Javascript Array Functions – Part 1, we discussed two array functions namely Array.Prototype.Every() and Array.prototype.some(). It is important to note that both… Read More »
Which of the followings is correct for a function definition along with storage-class specifier in C language? (A) int fun(auto int arg) (B) int fun(static… Read More »
Suppose a, b, c and d are int variables. For ternary operator in C ( ? : ), pick the best statement. (A) a>b ?… Read More »
For the following “typedef” in C, pick the best statement filter_none edit close play_arrow link brightness_4 code typedef int INT, *INTPTR, ONEDARR[10], TWODARR[10][10]; chevron_right filter_none… Read More »
“typedef” in C basically works as an alias. Which of the following is correct for “typedef”? (A) typedef can be used to alias compound data… Read More »
In a C program, following variables are defined: filter_none edit close play_arrow link brightness_4 code float x = 2.17; double y = 2.17; long double… Read More »
What’s the meaning of following declaration in C language? filter_none edit close play_arrow link brightness_4 code int (*p)[5]; chevron_right filter_none (A) It will result in… Read More »
Assuming int size is 4 bytes, what is going to happen when we compile and run the following program? filter_none edit close play_arrow link brightness_4… Read More »
Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from root node down to… Read More »