You execute the following code.How many times will the word Hello be printed?

  • Post author:
  • Post category:Uncategorized
  • Post comments:0 Comments
  • Post last modified:August 17, 2021
  • Reading time:1 mins read
 

Last Updated on August 17, 2021 by InfraExam

You execute the following code.

98-361 Part 03 Q04 007
98-361 Part 03 Q04 007

How many times will the word Hello be printed?

  • 49
  • 50
  • 51
  • 100
Explanation:

The % operator computes the remainder after dividing its first operand by its second. All numeric types have predefined remainder operators.
In this case the reminder will be nonzero 50 times (for i with values 1, 3, 5,..,99).

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments