Class 11 Computer Science Chapter 4 Conditional And Iterative Statements Quiz 14 (25 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the output of the following code snippet?var age = 18;if (age >= 18) \{console.log("You are eligible to vote");\} else \{System.out.println("You are not eligible to vote");\}
2. "The set of integers consist of negative and positive numbers." is an example of a false conjecture. Which of the following is a counterexample to the given conjecture?
3. The following statements represent p and qp:the sea is calmq:the sun is upwhich worded statement below represents ~p $\rightarrow$ q
4. Conditional Statement:If a doctor suspects her patient has a broken bone, then she should take an X-ray."If a doctor takes an X-ray, then she suspects her patient has a broken bone" is the??? of the conditional.
5. Rani ..... (come) early, if Rita ..... (want).
6. Which number is a counterexample to the following statement?:All numbers that are divisible by 2 are divisible by 4
7. If you purchase two bags of chips, then you will get one bag free.If you did not get one bag for free, then you did not purchase two bags of chips.
8. Which of the following is a conditional statement?
9. Disjunction means
10. Read the statement, then the phrase. Determine whether the phrase is the hypothesis or conclusion of the conditional statement."If you build it, then they will come."you build it
11. Which statement is the converse of the given statement?If you make an insurance claim, then your rates will go up.
12. An educated guess that may be a true or false statement is called .....
13. What letter will be printed on the screen after running this code:team = "Manchester United" letter = name[5] print(letter)
14. Suppose you have two variables x and y defined. Write a stub if statement to evaluate whether x is less than y. The statement should not do anything, even if the condition is true.
15. Rewrite the statement "A quadrilateral is a figure with four sides" in the if-then form.
16. Which of the following is a major component of any thesis in an argumentative essay?
17. What is the conditional statement form of the statement "All iPhones are phones?"
18. Consider the statement:If Julie eats tomatoes, then she likes salad.What is the hypothesis?
19. What is the first part of creating a thesis statement?
20. Read the statement, then the phrase. Determine whether the phrase is the hypothesis or conclusion of the conditional statement."If you are a fish with no eyes, then you are a fsh."you are a fish with no eyes
21. What is the output of the following code snippet? var x = 5; var y = 10; if (x > y) \{\{ console.log("x is greater than y"); \} else \{ console.log("x is less than or equal to y"); \}
22. Which alternative complete correctly the sentence?They'll come here (a)
23. Conditional:If Maria gets married, then the reception will be at the country club.What is this statement:If the reception is at the country club, then Maria will be getting married.
24. Write the conditional statements as a biconditional statement:1) If B is between A and C, then AB+BC=AC.2) If AB+BC=AC, then B is between A and C.
25. If I study, then I will do well on my Geometry test.If I did not do well on my Geometry test, then I did not study.