Programming Languages

WhatsApp Channel Join Now
Telegram Group Join Now

36. What is the output of the following code snippet in C++: cout << (5 > 3 && 2 < 4) << endl;

    a) 0

    b) 1

    c) true

    d) false

View Answer >

37. Which programming language uses indentation for code blocks?

    a) Java

    b) C++

    c) Python

    d) JavaScript

View Answer >

38. What is the purpose of the “switch” statement in programming?

    a) Looping

    b) Decision making

    c) Code reusability

    d) Error handling

View Answer >

39. What is the output of the following code snippet in Python: print(“Hello” * 3)?

    a) Hello

    b) HelloHelloHello

    c) Hello 3

    d) Error

View Answer >

40. Which programming language is used for developing Windows applications?

    a) Java

    b) C++

    c) Python

    d) C#

View Answer >

WhatsApp Channel Join Now
Telegram Group Join Now
                                                   

Leave a Comment

telegram Join Telegram
Join Now Join Now