At Westonci.ca, we provide clear, reliable answers to all your questions. Join our vibrant community and get the solutions you need. Join our Q&A platform and connect with professionals ready to provide precise answers to your questions in various areas. Get immediate and reliable solutions to your questions from a community of experienced professionals on our platform.

In a certain video game, the variable maxPS represents the maximum possible score a player can earn. The maximum possible score depends on the time it takes the player to complete the game. The value of maxPS should be 30 if time is greater than 120 and 50 otherwise.

Which of the following code segments correctly sets the value of maxPS based on the value of time ?

Select two answers.

The figure presents two blocks of code that consist of 3 total lines. Line 1: [begin block] maxPS ← 50 [end block] [Begin block] Line 2: IF [begin block] time is greater than 120 [end block] [begin block] Line 3: [begin block] maxPS ← 30 [end block] [end block] [End block]

Image with alt text: The figure presents two blocks of code that consist of 3 total lines. Line 1: [begin block] maxPS ← 50 [end block] [Begin block] Line 2: IF [begin block] time is greater than 120 [end block] [begin block] Line 3: [begin block] maxPS ← 30 [end block] [end block] [End block],

The figure presents two blocks of code that consist of 3 total lines. [Begin Block] Line 1: IF [begin block] time is greater than 120 [end block] [begin block] Line 2: [begin block] maxPS ← 30 [end block] [end block] [End Block] Line 3: [begin block] maxPS ← 50 [end block]

Image with alt text: The figure presents two blocks of code that consist of 3 total lines. [Begin Block] Line 1: IF [begin block] time is greater than 120 [end block] [begin block] Line 2: [begin block] maxPS ← 30 [end block] [end block] [End Block] Line 3: [begin block] maxPS ← 50 [end block],

The figure presents one block of code that consists of 4 total lines. [Begin Block] Line 1: IF [begin block] time is greater than 120 [end block] [begin block] Line 2: [begin block] maxPS ← 50 [end block] [end block] Line 3: ELSE [begin block] Line 4: [begin block] maxPS ← 30 [end block] [end block] [End block]

Image with alt text: The figure presents one block of code that consists of 4 total lines. [Begin Block] Line 1: IF [begin block] time is greater than 120 [end block] [begin block] Line 2: [begin block] maxPS ← 50 [end block] [end block] Line 3: ELSE [begin block] Line 4: [begin block] maxPS ← 30 [end block] [end block] [End block],