Question Set

1. Which of the following is the correct usage of conditional operators used in C?





Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

  • By: guest on 01 Jun 2017 06.01 pm
    Option A: assignment statements are always return in paranthesis in the case of conditional operator. It should be a>b? (c=30):(c=40); Option B: it is syntatically wrong. Option D: syntatically wrong, it should be return(a>b ? a:b); Option C: it uses nested conditional operator, this is logic for finding greatest number out of three numbers.
Show Similar Question And Answers
QA->A pendulum clock is set to give correct time at the sea level. This clock is moved to a hill station at an altitude of 2500m above the sea level. In order to keep correct time on the hill station, the length of the pendulum?....
QA->Which of the following is correct?....
QA->Which​ ​one​ ​of​ ​the​ ​following​ ​pairs​ ​is​ ​NOT​ ​correct?....
QA->Which of the following is a correct plural noun?....
QA->Which one of the following statement is not correct about the advocate general of the state....
MCQ->Which of the following is the correct usage of conditional operators used in C?....
MCQ->You install and run a third-party 32-bit application named Application on your Windows 2000 Server computer. After several days, the application stops responding. You open Task Manager and find that the CPU usage is at 100 percent. The normal range of CPU usage on the server is from 20 percent to 30 percent You end the application. However, you see that the CPU on the server is still at 100 percent. Task Manager shows no other applications running. You then examine the Processes page in Task Manager and confirm that the Application.exe process is no longer running. You want to return the CPU usage to its normal range. What should you do?....
MCQ->Assertion (A): C allows the use of logical operators, AND, OR, NOT.Reason (R): C has logical operators as well as bitwise operators like AND, OR etc.

....
MCQ->In a C expression using assignment operators, relational operators and arithmetic operators, the hierarchy of operations (in the absence of parenthesis) is....
MCQ->Consider the following statements about Infix and Post fix notations in Pascal In Infix notation operators appear between the operands on which they operate.In Post fix notation operators appear after the operand.The Infix expression A + B - C + D will appear as AB + C - D + in post fix notation. Which of the above are correct?....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution