At Westonci.ca, we connect you with the best answers from a community of experienced and knowledgeable individuals. Our platform offers a seamless experience for finding reliable answers from a network of experienced professionals. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A 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],