Skip to content

Interview Sansar

Software jobs interview preparation source

  • Home
  • Interview Questions
    • C Interview Questions
    • C++ Advanced Interview Questions
    • C++ Basic Interview Questions
    • Core Java Interview Questions
    • Java Collections Interview Questions
    • Java Multithreading Interview Questions
    • C# Basic Interview Questions
    • C# Advanced Interview Questions
    • C# Multi-threading Interview Questions
  • MCQs
    • MCQ-C++
    • MCQ-Java
    • MCQ-SQL
    • MCQs Algorithms and Data Structure
  • Programming Examples
    • C Programming Examples
    • C++ Programming Examples
    • C# Programming Examples
    • SQL Examples
    • Oracle PL SQL Examples
    • Time Complexity
  • Blog
    • C++ interview questions
    • C# interview questions
    • Java Interview Questions
    • Short Interview Questions
    • Behavioural / HR Interview
  • You-Tube
  • About
    • Why Visit
    • Sitemap
    • Contact Us
    • e-author
Mathematical Puzzles

Pair of Socks puzzle – Number of socks to pick for matching pair

August 18, 2024June 7, 2017 rsingh

Pair of Socks puzzle: You have 100 black socks and 100 white socks mixed up in a drawer. You must pick socks blindly from the

Read More
Mathematical Puzzles

Burning ropes puzzle to measure time

August 18, 2024June 6, 2017 rsingh

Burning ropes Puzzle: You have two ropes and a lighter. Each rope takes exactly 60 minutes to burn completely. Given ropes burn inconsistently (for example,

Read More
C++ Programming Examples

C++ map::insert – Adding Key Value pair

August 18, 2024June 6, 2018 rsingh

C++ std::map::insert – Simple program example to add key value pair in a map. The map data structure stores key value pair. Here is how

Read More
Mathematical Puzzles

Number of Handshakes interview puzzle with formula

August 18, 2024June 2, 2017 rsingh

Interview puzzle: If you have 20 people in a party and each shakes everyone else’s hand only once, how many handshakes take place? Use the

Read More
Mathematical Puzzles

Bridge crossing with torch interview puzzle

August 18, 2024May 29, 2017 rsingh

Interview Puzzle: There are four persons A, B, C and D who wants to cross a weak bridge in the night. They have one torch

Read More
C++ Programming Examples

C++ map update example

August 18, 2024June 5, 2018 rsingh

C++ map update – Simple program example to update value in map. To update an existing value in the map, first we will find the

Read More
Mathematical Puzzles

3 Jugs interview puzzle – 12, 8 and 5 liter Jug

August 18, 2024May 26, 2017 rsingh

PUZZLE: You have three jugs. They can hold 12 liters, 8 liters, and 5 liters of milk or say water respectively. 12-liter jug is full

Read More
C++ Programming Examples

C++ map::find – Search Element | Check if key exists

August 18, 2024June 5, 2018 rsingh

C++ map :: find() function – Example to find an element by key into a map. Also, check if key exists into a map in

Read More
C++ Basic Interview Questions

State a runtime polymorphism example program in C++

August 18, 2024January 29, 2023 rsingh

Answer includes runtime polymorphism example program in C++ OOPs and about virtual and pure virtual function in C++. Example of run time polymorphism in C++

Read More
C++ Basic Interview Questions

Print numbers from 1 to 100 without using loops in C++ code

August 18, 2024May 15, 2017 rsingh

Logic is simple to print numbers from 1 to 100 without using loops in C++ code. Note that recursion and goto statements are also not

Read More

Posts pagination

Previous 1 … 37 38 39 … 66 Next

My Unique Books for YOU

All Rights Reserved 2023: Interview Sansar.
Proudly powered by WordPress | Theme: Fairy Blog by Candid Themes.