Algorithm Ultimate Exam Quiz!

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Kay Stibbs
K
Kay Stibbs
Community Contributor
Quizzes Created: 4 | Total Attempts: 1,891
| Attempts: 604 | Questions: 8
Please wait...
Question 1 / 8
0 %
0/100
Score 0/100
1. Which of the following would instruct a robot to draw a square of side 3 units?

Explanation

The correct answer is a series of instructions that tells the robot to move forward 3 units, then make a right turn of 90 degrees, repeat this sequence three more times. This set of instructions will result in the robot drawing a square with sides of length 3 units.

Submit
Please wait...
About This Quiz
Algorithm Ultimate Exam Quiz! - Quiz

The 'Algorithm Ultimate Exam Quiz!' assesses understanding of basic algorithmic operations. It includes tasks like instructing a robot, unloading cargo, grouping by age, calculating sales, and organizing tasks... see moreefficiently. This quiz is crucial for learners to test their practical and theoretical knowledge in algorithms. see less

2. The sum of the first 5 whole numbers is 15 Which is the most accurate statement?

Explanation

All of the above statements are accurate because there are multiple ways to solve the problem. The sum of the first 5 whole numbers can be obtained by adding the numbers in any order, as addition is commutative. Therefore, all three statements are correct ways to express the sum of the first 5 whole numbers as 15.

Submit
3. A year 7 class of 20 pupils are going to make 2000 bookmarks. The bookmarks are made from Ice-lolly sticks. Each bookmark will have some sequins a pom ball and a bow. The teacher must make sure the bookmarks are finished. Which way should the teacher organize the class to make the greatest number of bookmarks in the least amount of time?

Explanation

Dividing the pupils into teams, with each team responsible for a specific task, will allow for simultaneous work and efficient use of time. By assigning one team to stick pom poms, one team to stick sequins, and one team to stick bows, the tasks can be completed concurrently, maximizing productivity. This method ensures that all bookmarks are being worked on simultaneously, leading to the greatest number of bookmarks being made in the least amount of time.

Submit
4. Display "please enter a number" Number = what the user types in If Number >=100       sales = number x 2 else        sales = number x 3 endif display sales If you enter 50 what is displayed?

Explanation

If you enter 50, the code will check if the number is greater than or equal to 100. Since 50 is less than 100, the code will execute the else statement. Therefore, the sales will be calculated by multiplying the number (50) by 3, resulting in 150. So, the output displayed will be 150.

Submit
5. A teacher is separating a class into groups by age, those 12 or above, and those less than 12. Which of the four algorithms might do this?

Explanation

The correct answer is the first algorithm: WHILE THERE ARE MORE PUPILS, IF PUPIL AGE>= 12, PUT INTO THE ABOVE GROUP, ELSE PUT INTO THE BELOW GROUP, ENDIF, ENDWHILE. This algorithm uses a loop to iterate through each pupil and checks their age. If the age is 12 or above, the pupil is put into the above group. Otherwise, the pupil is put into the below group. This algorithm ensures that all pupils are properly separated into the appropriate age groups.

Submit
6. A crane is unloading a cargo from a ship the options available to the driver are (PU) pick up container (SC) if there are still containers on the ship (MF) Move crane over free space ( LP) loop to check again (MC) move crane over the container (PD) put down container which of these will unload the ship?

Explanation

The correct sequence of options to unload the ship is: SC MC PU MF PD LP. First, the driver needs to check if there are still containers on the ship (SC). If there are, the driver should move the crane over the container (MC). Then, the driver should pick up the container (PU) and move the crane over a free space (MF). Next, the driver should put down the container (PD) and loop to check again (LP) if there are still containers on the ship. This sequence ensures that the cargo is unloaded systematically and efficiently.

Submit
7. This is a train track. The train goes from station A through the pedestrian crossing to station B and back to station A. There is a signal on the crossing. When it is green the train can go. When it is red the train must stop for pedestrians. The train must stop at all stations. It does this all day & all night long. Which is the correct algorithm?

Explanation

The correct algorithm is W= Is the light Red?X = Is the train at Station A?Y = Is the light Green?Z = Is the train at Station B? This algorithm correctly represents the conditions and actions required for the train to operate safely. It checks if the light is red and if the train is at Station A, indicating that the train must stop for pedestrians. It also checks if the light is green and if the train is at Station B, indicating that the train can proceed.

Submit
8. These animals are arranged in a pattern : scorpion, rattlesnake, penguin, octopus, monkey, lion, jaguar, iguana which would be next on the list?

Explanation

The animals in the given list are arranged in alphabetical order. Starting from "scorpion," each animal is in alphabetical order with the next one. Following this pattern, "giraffe" would be the next animal on the list as it comes after "monkey" alphabetically.

Submit
View My Results

Quiz Review Timeline (Updated): Mar 21, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jun 14, 2017
    Quiz Created by
    Kay Stibbs
Cancel
  • All
    All (8)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Which of the following would instruct a robot to draw a square of...
The sum of the first 5 whole numbers is 15...
A year 7 class of 20 pupils are going to make 2000 bookmarks....
Display "please enter a number"...
A teacher is separating a class into groups by age, those 12 or above,...
A crane is unloading a cargo from a ship the options available to the...
This is a train track....
These animals are arranged in a pattern : scorpion, rattlesnake,...
Alert!

Advertisement