Tag: Programming
-
Python Questions and Answers – Bitwise – 1
Q 1. What will be the output of the following Python code snippet if x=1? x<<2 A. 8B. 1C. 2D. 4 Show Answer Answer:-D. 4 Explanation Explanation:- The binary form of 1 is 0001. The expression x<<2 implies we are performing bitwise left shift on x. This shift yields the value: 0100, which is the…
-
Java Programming
Q 1. Who invented Java Programming?A. Guido van RossumB. Bjarne StroustrupC. Dennis RitchieD. James Gosling Show Answer Answer:-D. James Gosling Explanation Java programming was developed by James Gosling at Sun Microsystems in 1995. James Gosling is well known as the father of Java. Q 2. Which statement is true about Java?A. Java is a platform-independent…
-
C Programming
Q 1. Who is the father of C language?A. Steve JobsB. Dennis RitchieC. James GoslingD. Rasmus Lerdorf Show Answer Answer:-B. Dennis Ritchie Explanation Dennis Ritchie is the father of C Programming Language. C programming language was developed in 1972 at American Telephone & Telegraph Bell Laboratories of USA. Q 2. Which of the following is…