# Java MCQs - Control Statements

Control statements are the set of statements which can be controlled of execution flow on the behalf of conditions. Conditions like IF Condition, IF ELSE Condition, SWITCH Condition. One can run the set of statement or skip the set of statements where conditions are met. In this list of MCQs you will cover all possible mcqs for Control Statements.

A. If

B. Switch

C. If and Switch

A. true

B. false

## 3. If condition is false then ?

A. Block of If condition will be executed

B. Block of If condition will not be executed

C. Block of Else will be executed (If exists)

D. Both B & A

## 4. What is the correct output of this program ?

A. Compile time Error

B. Run time Error

C. If condition true

## 5. What is the correct output of this program ?

A. If condition true

B. Else true

C. Both of above

## 6. What is the correct output of this program ?

A. A greater than B

B. A less than B

C. Both of above

## 7. What is the correct output of this program ?

A. A greater than B

B. A less than B

C. A greater than B OR A less than B

D. Invalid Condition

## 8. What is the correct output of this program ?

A. A greater than B

B. A less than B

C. A greater than B OR A less than B

D. Valid Condition

## 9. What is the correct output of this program ?

A. Compile time Error

B. A equals to B

C. A is not equals to B

## 10. What is the correct output of this program ?

A. A less than B

B. A greater than B

C. Compile time error
{"ft_lang_label":"__label__en","ft_lang_prob":0.83268404,"math_prob":0.85562617,"size":1640,"snap":"2022-27-2022-33","text_gpt3_token_len":434,"char_repetition_ratio":0.16687042,"word_repetition_ratio":0.32326284,"special_character_ratio":0.24939024,"punctuation_ratio":0.15183246,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9959982,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-08-16T23:22:54Z\",\"WARC-Record-ID\":\"<urn:uuid:a57f8314-eda7-4445-bf78-f3d94a4cfaaf>\",\"Content-Length\":\"68260\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2845717d-e294-48e4-ae62-47b3dd818a98>\",\"WARC-Concurrent-To\":\"<urn:uuid:0b51775a-bbde-4153-bfee-9e13d157428e>\",\"WARC-IP-Address\":\"64.31.43.226\",\"WARC-Target-URI\":\"https://sindhitutorials.com/mcqs/java/control-statements\",\"WARC-Payload-Digest\":\"sha1:IREJZFJSAUW3HLG3BDEIVK372UO7QE7E\",\"WARC-Block-Digest\":\"sha1:KKENZL5TJTEWF3J7LLEY57RQ5CAO5VFT\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-33/CC-MAIN-2022-33_segments_1659882572581.94_warc_CC-MAIN-20220816211628-20220817001628-00686.warc.gz\"}"}