Which of the following is a ternary operator


Asked by admin @ in Computer Science viewed by 303 People


E. Which of the following is a ternary operator?(i) %(ii) ? :(iii) !​

Answered by admin @



Answer:

In computer programming, ?: is a ternary operator that is part of the syntax for basic conditional expressions in several programming languages. It is commonly referred to as the conditional operator, inline if (iif), or ternary if. An expression a ? b : c evaluates to b if the value of a is true, and otherwise to c. One can read it aloud as "if a then b otherwise c".

It originally comes from CPL, in which equivalent syntax for e1 ? e2 : e3 was e1 → e2, e3.[1][2]

Although many ternary operators are possible, the conditional operator is so common, and other ternary operators so rare, that the conditional operator is commonly referred to as the ternary operator.

Hope it helps you

thanks

take care of yourself and your family

be at home be safe


Similar Questions

Which of the following operating systems is most commonly used

Asked by admin @ in Computers and Technology viewed by 339 persons

Which of the following two operating systems are used most frequently on tablets? Select one: A. Android and iOS B. BlackBerry and Windows C. Windows and iOS D. Windows and …

Which of the following is an example of operant conditioning

Asked by admin @ in Health viewed by 279 persons

Which of the following is an example of operant conditioning?a. when a cat and a dog share the same water bowl b. when a cat learns to drool at the …

Which of the following best describes the operational period briefing

Asked by admin @ in Advanced Placement (AP) viewed by 553 persons

Which of the following best describes the Operational Period Briefing? A. Provides an orientation to individual resources at the beginning of their assignments B. Sets forth the specific tasks, reporting …

An operational system is which of the following

Asked by admin @ in Computer Science viewed by 304 persons

An operational system is which of the following? A.A system that is used to run the business in real time and is based on historical data. B.A system that is …

Which of the following is not operating system

Asked by admin @ in English viewed by 359 persons

Which of the following is not a operating system answer

Which of the following are so called short-circuit operators

Asked by admin @ in English viewed by 348 persons

15: Which of the following are so called "short circuit"logical operators​

Which of the following is comparison operator in sql

Asked by admin @ in Computer Science viewed by 369 persons

Which of the following is a comparison operator in SQL? A) LIKE B) BETWEEN C) = D) All of the above

Which of the following is single user operating system

Asked by admin @ in Computer Science viewed by 323 persons

Which of the following is Single User Operating System? Windows 10 Windows Vista Windows 95 Windows XP

Which of the following is not a operating system

Asked by admin @ in English viewed by 335 persons

Which of the following is not a operating system answer

Which of the following is not a relational operator

Asked by admin @ in Computer Science viewed by 336 persons

Which of the following is not a relational operator? A)! B)!= C)>= D)

Which of the following is not an arithmetic operator

Asked by admin @ in Computer Science viewed by 346 persons

Which of the following is not a Arithmetic Operator? + % & *

Which of the following is not a bitwise operator

Asked by admin @ in Computer Science viewed by 304 persons

Which of the following is not a bitwise operator? a) |b) ^c) .d) <<​

Which of the following is a surface finishing operation

Asked by admin @ in Chemistry viewed by 409 persons

Which of the following is a surface finishing operation

Which of the following is abstracted by operating system

Asked by admin @ in Computer Science viewed by 357 persons

Which of the following is abstracted by an operating system? HardwareUsersApplicationsAll of the above​

Which of the following is not an arithmetic operation

Asked by admin @ in Computer Science viewed by 288 persons

Which of the following is not a Arithmetic Operator? + % & *

Most viewed questions in Computer Science


A programmer mistakenly writes gor instead of for

Asked by admin @ in Computer Science viewed by 19033 persons


Domestic data entry operator ncert book class 9 solutions

Asked by admin @ in Computer Science viewed by 15819 persons


Information technology code 402 class 9 solutions chapter 1

Asked by admin @ in Computer Science viewed by 10979 persons



Ncert solutions for class 8 computer chapter 1 computer system

Asked by admin @ in Computer Science viewed by 10411 persons


A scrum team works on a 4 weeks sprint

Asked by admin @ in Computer Science viewed by 8725 persons


Which of the following occupies more memory in c

Asked by admin @ in Computer Science viewed by 8147 persons



A database of motor vehicles has the base entity

Asked by admin @ in Computer Science viewed by 7848 persons


The network architecture can be termed as a mcq

Asked by admin @ in Computer Science viewed by 6495 persons


Cat5 and cat6 cabling refer to which reference model layer

Asked by admin @ in Computer Science viewed by 5798 persons



Class 7 computer chapter 3 questions and answers

Asked by admin @ in Computer Science viewed by 5700 persons


Choose the correct options about usability and user experience

Asked by admin @ in Computer Science viewed by 5482 persons


Which advocates daily team meetings for coordination and integration

Asked by admin @ in Computer Science viewed by 4988 persons



Which three security features match the database security level

Asked by admin @ in Computer Science viewed by 4978 persons


Which of the dbms package is not available

Asked by admin @ in Computer Science viewed by 4692 persons


________ aid a business grow and attain its objectives

Asked by admin @ in Computer Science viewed by 4494 persons