Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
C C-Operators C

A comma operator question

Consider the following C programs. // PROGRAM 1 #include<stdio.h>    int main(void) {     int a = 1, 2, 3;  &#x...
C++ interview-preparation placement preparation

Commonly Asked OOP Interview Questions Set 1

What is Object Oriented Programming? Object Oriented Programming (OOP) is a programming paradigm where the complete software operates as a bunch of objects talking to...
C++ interview-preparation placement preparation

Commonly Asked C++ Interview Questions Set 1

What are the differences between C and C++? 1) C++ is a kind of superset of C, most of C programs except few exceptions (See this and this) work in C++ as well. 2) C...
Java interview-preparation placement preparation

Java Interview Questions on Constructors

What is a Constructor? Constructors are used to initialize the object’s state. Like methods, a constructor also contains collection of statements(i.e. instruc...
Computer Networks GATE CS Computer Networks

Computer Network Sliding Window protocols Summary With Questions

Prerequisites – Stop & Wait, Go Back N, Selective Repeat Summary of all the protocols – Before starting with the questions a quick recap for all t...
Operating Systems Memory Management Operating Systems

Virtual Memory Questions

Advantages Large virtual memory. More efficient use of memory. Unconstrained multiprogramming. There is no limit on degree of multiprogramming. Disadvantages Numbe...

A Time Complexity Question

What is the time complexity of following function fun()? Assume that log(x) returns log value in base 2. void fun() {    int i, j;  &...

Performance of loops (A caching question)

Consider below two C language functions to compute sum of elements in a 2D array. Ignoring the compiler optimizations, which of the two is better implementation of su...
Graph Dijkstra Shortest Path

Some interesting shortest path questions Set 1

Question 1: Given a directed weighted graph. You are also given the shortest path from a source vertex ‘s’ to a destination vertex ‘t’. &#...
Algorithms interview-preparation placement preparation

Commonly Asked Algorithm Interview Questions Set 1

What is an algorithm? Informally, an algorithm is any well-defined computational procedure that takes some value, or set of values, as input and produces some value, ...

Subscribe to Our Newsletter