IMG-LOGO

Câu hỏi:

14/10/2022 35

In the following program how long will the for loop get executed?
Media VietJack

A. The for loop would not get executed at all

B. The for loop would get executed only once

C. The for loop would get executed 5 times

D. The for loop would get executed infinite times

Đáp án chính xác

Trả lời:

verified Giải bởi Vietjack

Chọn D

Câu trả lời này có hữu ích không?

0

CÂU HỎI HOT CÙNG CHỦ ĐỀ

Câu 1:

Usually recursion works slower than loops

Xem đáp án » 14/10/2022 82

Câu 2:

Which of the following statements are correct about the program?
Media VietJack

Xem đáp án » 14/10/2022 78

Câu 3:

Will the following functions work?
Media VietJack

Xem đáp án » 14/10/2022 77

Câu 4:

There is a error in the below program. Which statement will you add to remove it
Media VietJack

Xem đáp án » 14/10/2022 74

Câu 5:

What will be the output of the program?
Media VietJack

Xem đáp án » 14/10/2022 73

Câu 6:

Every function must return a value

Xem đáp án » 14/10/2022 72

Câu 7:

In a function two return statements should never occur.

Xem đáp án » 14/10/2022 71

Câu 8:

What is output ?
Media VietJack

Xem đáp án » 14/10/2022 70

Câu 9:

Maximum number of arguments that a function can take is 12

Xem đáp án » 14/10/2022 70

Câu 10:

What will be the output of the program?
Media VietJack

Xem đáp án » 14/10/2022 66

Câu 11:

Functions can not return a floating point number

Xem đáp án » 14/10/2022 64

Câu 12:

What is output?
Media VietJack

Xem đáp án » 14/10/2022 61

Câu 13:

What is output of program?
Media VietJack

Xem đáp án » 14/10/2022 59

Câu 14:

What is output of program?
Media VietJack

Xem đáp án » 14/10/2022 59

Câu 15:

What is output ?
Media VietJack

Xem đáp án » 14/10/2022 58