Podcast
Questions and Answers
Which sorting algorithm has an average time complexity of O(n log n)?
Which sorting algorithm has an average time complexity of O(n log n)?
Answer hidden
What is the time complexity of a binary search algorithm?
What is the time complexity of a binary search algorithm?
Answer hidden
How is an interface different from an abstract class in Java?
How is an interface different from an abstract class in Java?
Answer hidden
How is a Python 'dictionary' different from a 'set'?
How is a Python 'dictionary' different from a 'set'?
Answer hidden
What is the purpose of the 'this' keyword in Java?
What is the purpose of the 'this' keyword in Java?
Answer hidden
If the selling price of an item is $1750, and the profit percentage is 25%, what is the original price of the item?
If the selling price of an item is $1750, and the profit percentage is 25%, what is the original price of the item?
Answer hidden
If the population of a city is 500,000, and it increases by 10% each year, what will be the population after three years?
If the population of a city is 500,000, and it increases by 10% each year, what will be the population after three years?
Answer hidden
The sum of ages of 5 children born at the intervals of 3 years each is 50 years. What is the age of the youngest child?
The sum of ages of 5 children born at the intervals of 3 years each is 50 years. What is the age of the youngest child?
Answer hidden
Look at this series: 58, 52, 46, 40, 34, ... What number should come next?
Look at this series: 58, 52, 46, 40, 34, ... What number should come next?
Answer hidden
Blueberries cost more than strawberries.
Blueberries cost less than raspberries.
Raspberries cost more than strawberries and blueberries.
If the first two statements are true, the third statement is
Blueberries cost more than strawberries. Blueberries cost less than raspberries. Raspberries cost more than strawberries and blueberries. If the first two statements are true, the third statement is
Answer hidden
A train running at the speed of 60 km/hr crosses a pole in 9 seconds. What is the length of the train?
A train running at the speed of 60 km/hr crosses a pole in 9 seconds. What is the length of the train?
Answer hidden
Which of the following type of class allows only one object of it to be created?
Which of the following type of class allows only one object of it to be created?
Answer hidden
Which of the following is not a type of constructor?
Which of the following is not a type of constructor?
Answer hidden
Which one of these lists contains only Java programming language keywords?
Which one of these lists contains only Java programming language keywords?
Answer hidden
Pointing to a photograph of a boy Suresh said, "He is the son of the only son of my mother." How is Suresh related to that boy?
Pointing to a photograph of a boy Suresh said, "He is the son of the only son of my mother." How is Suresh related to that boy?
Answer hidden
Find the output (Python)
a = 4.5
b = 2
print (a//b)
Find the output (Python)
a = 4.5
b = 2
print (a//b)
Answer hidden
What is an abstraction in object-oriented programming?
What is an abstraction in object-oriented programming?
Answer hidden
In which access should a constructor be defined, so that object of the class can be created in any function?
In which access should a constructor be defined, so that object of the class can be created in any function?
Answer hidden
Which type of members can’t be accessed in derived classes of a base class?
Which type of members can’t be accessed in derived classes of a base class?
Answer hidden
Instance of which type of class can’t be created?
Instance of which type of class can’t be created?
Answer hidden
Which feature can be implemented using encapsulation?
Which feature can be implemented using encapsulation?
Answer hidden
Which of the following is not the member of class?
Which of the following is not the member of class?
Answer hidden
Identify the correct example for a pre-increment operator.
Identify the correct example for a pre-increment operator.
Answer hidden
Identify the logical AND operator.
Identify the logical AND operator.
Answer hidden
char p;
p = (char) malloc(100);
char p; p = (char) malloc(100);
Answer hidden