Comp Sci unit 3 #10

Comp Sci unit 3 #10

11th Grade

10 Qs

quiz-placeholder

Similar activities

SDLC Quiz

SDLC Quiz

7th - 11th Grade

10 Qs

Prototypes

Prototypes

5th - 11th Grade

10 Qs

Modelling and Microprocessors in control ICT plications

Modelling and Microprocessors in control ICT plications

11th Grade

10 Qs

SLR6 Software Development  L2

SLR6 Software Development L2

11th - 12th Grade

15 Qs

NETWORK DEVICES

NETWORK DEVICES

9th - 11th Grade

10 Qs

Robotics Q1W1 Vocab

Robotics Q1W1 Vocab

6th - 12th Grade

15 Qs

Unit 4 Vocab Quiz

Unit 4 Vocab Quiz

9th - 12th Grade

10 Qs

Universal System Model

Universal System Model

6th - 12th Grade

10 Qs

Comp Sci unit 3 #10

Comp Sci unit 3 #10

Assessment

Quiz

Computers

11th Grade

Easy

Created by

Nick Nessralla

Used 10+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

A researcher wrote a program to simulate the number of mice in an environment that contains predators. The program uses the following procedures.


Based on the code, which of the following assumptions is made in the simulation?

The number of mice increases by 1 each day.

The number of mice does not change from day to day.

The number of predators increases by 1 each day.

The number of predators does not change from day to day.

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following is a benefit of using a simulation instead of an experiment to make a prediction?

Select two answers.

response - correct

Responses


A simulation allows investigation of a phenomenon without the real-world limitations on time, safety, or budget.


A simulation can be used to model real-world events that are impractical for experiments.

A simulation always produces the same output, so its results can be verified.

A simulation produces results that are more accurate than experimental results.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Flight simulation software, which imitates the experience of flying, is often used to train airline pilots. Which of the following is LEAST likely to be an advantage of using flight simulation software for this purpose?

Flight simulation software allows pilots to practice landing in a variety of different terrains and weather conditions without having to physically travel.


Flight simulation software could save money due to the cost of maintenance and fuel for actual training flights.

Flight simulation software provides a more realistic experience for pilots than actual training flights.

Flight simulation software allows for the testing of emergency air situations without serious consequences.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A city planner is using simulation software to study crowd flow out of a large arena after an event has ended. The arena is located in an urban city. Which of the following best describes a limitation of using a simulation for this purpose?

Responses


The model used by the simulation software cannot be modified once the simulation has been used.

The model used by the simulation software often omits details so that it is easier to implement.

Running a simulation requires more time to generate data from trials than observing the crowd exiting the arena at various events.

Running a simulation requires a large number of observations to be collected before it can be used to explore a problem.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following code segment, which is intended to store ten consecutive even integers, beginning with 2, in the list evenList. Assume that evenList is initially empty.

i ← 1

REPEAT 10 TIMES

{

<MISSING CODE>

}

Which of the following can be used to replace <MISSING CODE> so that the code segment works as intended?

APPEND(evenList, i)

i ← i + 2

i ← i + 2

APPEND(evenList, i)

APPEND(evenList, 2 * i)

i ← i + 1

i ← i + 1

APPEND(evenList, 2 * i)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Shoppers at a mall were asked whether they preferred wearing gloves or mittens in cold weather. Shoppers’ preferences were stored in the list voteList as strings, with the string "Gloves" representing a preference for gloves and the string "Mittens" representing a preference for mittens.

The following code segment is intended to traverse the list and display the number of shoppers who chose gloves and the number of shoppers who chose mittens.

numGlovesVotes ← 0

numMittensVotes ← 0

<MISSING CODE>

{

IF(vote = "Gloves")

{

numGlovesVotes ← numGlovesVotes + 1

}

ELSE

{

numMittensVotes ← numMittensVotes + 1

}

}

DISPLAY(numGlovesVotes)

DISPLAY(" shoppers chose gloves and")

DISPLAY(numMittensVotes)

DISPLAY(" shoppers chose mittens.")

Which of the following should replace <MISSING CODE> so that the code segment works as intended?

Responses


IF(vote ≤ LENGTH(voteList))

FOR EACH vote IN voteList

REPEAT LENGTH(voteList) TIMES

REPEAT UNTIL(vote > LENGTH(voteList))

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A group of planners are using a simulation to examine whether or not a park that they are designing is going to affect foot traffic in the area. The simulation uses a model that includes input variables for the park such as the number of entrances, sidewalks, and bike trails and the square footage of open space (grassy areas). The simulation can then be run multiple times using different values for the input variables to represent different park designs.

However, the simulation takes a very long time to run. The planners update the model by removing some variables they consider less important than others. Of the following, which is the most likely effect the updated model will have on the simulation?

The updated model is likely to decrease the runtime of the simulation because the time required for simulations generally depends on the complexity of the model used.

The updated model is likely to decrease the runtime of the simulation because simulations that use older models tend to require more time to run than simulations that use newer models.

The updated model is unlikely to decrease the runtime of the simulation because the simulation is computationally complex, regardless of the model used.

The updated model is unlikely to provide any benefit because removing details from a model will compromise the accuracy of the simulation.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?