Programming Languages

WhatsApp Channel Join Now
Telegram Group Join Now

16. What is the output of the following code snippet in Java: System.out.println(5 / 2)?

    a) 2.5

    b) 2

    c) 3

    d) Error

    Answer: b) 2
View Answer >

17. Which operator is used for exponentiation in most programming languages?

    a) +

    b) –

    c) *

    d) ^

    Answer: d) ^
View Answer >

18. Which programming language was developed by Guido van Rossum?

    a) Java

    b) C++

    c) Python

    d) JavaScript

    Answer: c) Python
View Answer >

19. What is the output of the following code snippet in Python: print(“Hello” + ” ” + “World”)?

    a) Hello

    b) World

    c) HelloWorld

    d) Hello World

    Answer: d) Hello World
View Answer >

20. Which programming language uses curly braces {} to define code blocks?

    a) Java

    b) C++

    c) Python

    d) JavaScript

    Answer: b) C++
View Answer >

WhatsApp Channel Join Now
Telegram Group Join Now
                                                   

Leave a Comment

telegram Join Telegram
Join Now Join Now