count the number of t's in the passage!
Developer Interview Questions
270,956 developer interview questions shared by candidates
If a ping pong ball was stuck in a pipe that is cemented in the ground how would you get it out?
Interview question like that Q: 01 Given: 11. public static void parse(String str) { 12. try { 13. float f = Float.parseFloat(str); 14. } catch (NumberFormatException nfe) { 15. f = 0; 16. } finally { 17. System.out.println(f); 18. } 19. } 20. public static void main(String[] args) { 21. parse("invalid"); 22. } What is the result? A. 0.0 B. Compilation fails. C. A ParseException is thrown by the parse method at runtime. D. A NumberFormatException is thrown by the parse method at runtime. Answer: B
Given a list of people's names, organize a beer exchange such that each person is randomly assigned someone else to give a beer to, and someone to receive a beer from. Caveat: The person cannot receive a beer from the same person to whom they are gifting one.
draw a reversed T pattern which would generate on dynamic series by giving odd input * * * * * @ @ @ @ Second Question is : * * * * * *
What is the output of below program. var a = [1,2,3,4] for (var i=0; i<a.length; i++){ setTimeout(function(){ console.log(i) },1000) } ( My Ans : it will print 4 5 times as it will store the latest reference) Next They asked me : How can i print 1,2,3,4 by changing some code in above example
1.program to print 1 to 100 without using any loop
You’re writing a monitoring app that periodically checks if a website is up. Of those listed below, what is the BEST way to schedule these periodic checks? A. Register a WakeLock with PowerManager. B. Call setInexactRepeating on AlarmManager. C. Post to a Handler with postDelayed. D. Call setPeriodicTimer on TimerService.
7. Sorting of array that contains date var dates = ['1/2/2019' , '11/12/2013', '1/1/1980', '11/1/1934']
Javascript callback property is enabled by another property called closure can you explain it how?
Viewing 491 - 500 interview questions