163k views
0 votes
1. Predict the output of the following code.

void main() {
3>5?printf("Welcome"): printf("Bye");
printf("\t%d", 3>5);
}
a) Welcome1
b) Bye1
c)Welcome0
d)Bye1

2.Which of the following is not an OS?
a)DOS
b)DB2
c) Unix
d)MINIX

3.Which one is not a paired tag in HTMI?
a)<br>
b)<hr>
c)<img>
d)all of the above

3.Which is not an audio format?
a) MP3. b) WAV. c) AVI. d) ACC.​

User Venus
by
8.7k points

1 Answer

4 votes
1. The output of the code will be "Bye 0" because the condition "3>5" is false, so the code will execute the second part of the ternary operator, which is "printf("Bye")". The value of the expression "3>5" is false, which is represented by 0 in C, so the second printf statement will output "0".

2. DB2 is not an OS. It is a relational database management system developed by IBM.

3. The tag is not a paired tag in HTML. It is a standalone tag that creates a horizontal line.

4. AVI is not an audio format. It is a video file format developed by Microsoft. The other options - MP3, WAV, and ACC - are audio formats.
User Kiax
by
8.7k points