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)?
What is the time complexity of a binary search algorithm?
What is the time complexity of a binary search algorithm?
How is an interface different from an abstract class in Java?
How is an interface different from an abstract class in Java?
How is a Python 'dictionary' different from a 'set'?
How is a Python 'dictionary' different from a 'set'?
What is the purpose of the 'this' keyword in Java?
What is the purpose of the 'this' keyword in Java?
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?
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?
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?
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?
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
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?
Find the output
String s1 = "Java";
String s2 = "Java";
StringBuilder sb1 = new StringBuilder();
sb1.append("Ja").append("va");
System.out.println(s1 == s2);
System.out.println(s1.equals(s2));
System.out.println(sb1.toString() == s1);
System.out.println(sb1.toString().equals(s1));
Find the output
String s1 = "Java";
String s2 = "Java";
StringBuilder sb1 = new StringBuilder();
sb1.append("Ja").append("va");
System.out.println(s1 == s2);
System.out.println(s1.equals(s2));
System.out.println(sb1.toString() == s1);
System.out.println(sb1.toString().equals(s1));
Consider the following question to guess the answer:
public class Test {
public static void main(String args[]) {
int i=20+ +9- -12+ +4- -13+ +19;
System.out.println(i);
}
}
Consider the following question to guess the answer:
public class Test {
public static void main(String args[]) {
int i=20+ +9- -12+ +4- -13+ +19;
System.out.println(i);
}
}
Which one of these lists contains only Java programming language keywords?
Which one of these lists contains only Java programming language keywords?
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?
Find the output (Python)
a = 4.5
b = 2
print (a//b)
Find the output (Python)
a = 4.5
b = 2
print (a//b)
What is an abstraction in object-oriented programming?
What is an abstraction in object-oriented programming?
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?
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?
Instance of which type of class can’t be created?
Instance of which type of class can’t be created?
Which feature can be implemented using encapsulation?
Which feature can be implemented using encapsulation?
Which feature of OOP is indicated by the following code?
class student{ int marks; };
class topper:public student{ int age; topper(int age){ this.age=age; } };
Which feature of OOP is indicated by the following code?
class student{ int marks; };
class topper:public student{ int age; topper(int age){ this.age=age; } };
Identify the correct example for a pre-increment operator.
Identify the correct example for a pre-increment operator.
Identify the logical AND operator.
Identify the logical AND operator.
char p;
p = (char) malloc(100);
char p; p = (char) malloc(100);
Flashcards are hidden until you start studying