Skip to content
All Basic Articles
A sender uses the Stop-and-Wait ARQ protocol for reliable transmission of frames. Frames are of size 1000 bytes and the transmission rate at the sender… Read More
Consider the transition diagram of a PDA given below with input alphabet ∑ = {a, b}and stack alphabet Γ = {X, Z}. Z is the initial… Read More
A queue is implemented using an array such that ENQUEUE and DEQUEUE operations are performed efficiently. Which one of the following statements is CORRECT (n… Read More
Scanner is a class in java.util package used for obtaining the input of the primitive types like int, double, etc. and strings. It is the… Read More
In Python, we can return multiple values from a function. Following are different ways 1) Using Object: This is similar to C/C++ and Java, we… Read More
Click here for Set 1 and Set 2 of Vectors.    Vector – upper_bound and lower_bound Iterator lower_bound (Iterator first, Iterator last, const val) Iterator upper_bound… Read More
How to print floating point numbers with a specified precision? Rounding is not required. For example, 5.48958123 should be printed as 5.4895 if given precision… Read More
A data structure is a particular way of organizing data in a computer so that it can be used effectively. The idea is to reduce… Read More
Written round: There were questions related to quantitative,logical and verbal.(Not of very high level,but speed should be good enough). Technical PI: 1. C:Basic topics of… Read More
In Java, following are two different ways to create an array. Array: Simple fixed sized arrays that we create in Java, like below int arr[]… Read More
Linked List is a part of the Collection framework present in java.util package. This class is an implementation of the LinkedList data structure which is… Read More
  Java Collection framework provides a Stack class that models and implements a Stack data structure. The class is based on the basic principle of… Read More
Prerequisite: Arrays in Java A jagged array is an array of arrays such that member arrays can be of different sizes, i.e., we can create… Read More
1. Strings are Immutable Once a string is defined, it cannot be changed. # Python3 program to show that  # string cannot be changed   … Read More
Foreach loop is used to access elements of an array quickly without performing initialization, testing and increment/decrement. The working of foreach loops is to do… Read More
What is the output of the following code : print 9//2 (A) 4.5 (B) 4.0 (C) 4 (D) Error Answer: (C) Explanation: The ‘//’ operator… Read More
What is called when a function is defined inside a class? (A) Module (B) Class (C) Another Function (D) Method Answer: (D) Explanation: Quiz of… Read More
Consider the below statements in Python.  Python3 # A Python program to demonstrate the use of # "//" for integers print (5//2) print (-5//2) Output:… Read More
How would you solve below problems in C/C++? What is the smallest representable positive floating point number in C/C++? What is the largest representable negative… Read More
Consider below C program. The program has extra bracket around function name. // C program to show that extra brackets with function // name work… Read More