Question

Help with these computational thinking questions Question 11 (1 point) Which of the following best define...

Help with these computational thinking questions

Question 11 (1 point)

Which of the following best define the term pseudocode?

Question 11 options:

The fundamental concept in computer science

An informal notation for representing algorithms

A means of saving the result of a computation for future use

A means of producing different actions depending on a condition

Question 12 (1 point)

When searching within the list

            Lewis, Maurice, Nathan, Oliver, Pat, Quincy, Roger, Stan, Tom

which of the following entries will be found most quickly using the binary search algorithm?

PS: The Simulation of Binary Search helps to visualize the essentials of binary search. Note that even though the simulation searches an integer from a sorted integer list, the steps to search a string from a sorted string list are same.

Question 12 options:

Lewis

Pat

Tom

Question 13 (1 point)

To divide a large problem, such as designing an air traffic control system, into more manageable units, you would use _____________ to perform parts of the larger process.

Question 13 options:

procedures

selection structures

repetition structures

recursion

Question 14 (1 point)

Which of the following set of instructions defines an algorithm in the formal, strict sense? Hint: what is an essential property of an algorithm?

Question 14 options:

X = 3;

while (X < 5) do

(X <- X)

X = 3;

while (X < 5) do

X = X + 1

X = 3;

while (X < 5) do

X = X - 1

Question 15 (1 point)

Which of the following best define the term stepwise refinment?

Question 15 options:

A divide and conquer approach to problem solving

A statement that is true each time a specific point in a repetitive process is reached

A program segment isolated as a unit

The technique of applying a program segment within itself

Question 16 (1 point)

Under the assumption that N takes on only integer values, which of the following is the termination condition in the following recursive procedure?

      procedure xxx (N)

      if (N < 5) then (print the value of N)

           else (apply the procedure xxx to the value N - 1)

Question 16 options:

N < 5

N > 4

N > 5

Question 17 (1 point)

Examples of input to a program include (you may select more than one, if it's appropriate)

Question 17 options:

a file containing data

text typed by a user on a keyboard

a mouse click on a GUI control element like a button or drop down list

electrical signals produced by physical sensors such as those that respond to temperature, particles in the air or mechanical vibration

Question 18 (1 point)

Which of the following are examples of algorithms? (You may select more than one, if it's appropriate.)

Question 18 options:

The procedure for manually performing long division

The procedures NetFlix and Amazon use for trying to guess which show you might want to view or which product you might want to buy

The procedure for calculating the amount of income taxes you owe

A procedure for examining MRI images to determine whether cancer cells are present

Question 19 (1 point)

Which of the following is a representation?

Question 19 options:

Algorithm

Program

Process

Question 20 (1 point)

A procedure or function is

Question 20 options:

an alternative to using selection structures

an obsolete software development technique

an independent block of actions or statements

a means for lowering the θ

growth factor of an algorithm

0 0
Add a comment Improve this question Transcribed image text
Answer #1

11  An informal notation for representing algorithms

12pat

In binary search firstly the middle element is get compared

13 recusrion

14

X = 3;

while (X < 5) do

X = X + 1

Because rest of execution is infinite

15A divide and conquer approach to problem solving

16 N>5

Add a comment
Know the answer?
Add Answer to:
Help with these computational thinking questions Question 11 (1 point) Which of the following best define...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1. Suppose you are implementing the address book feature for a cellphone. The address book needs to be kept sorted by pe...

    1. Suppose you are implementing the address book feature for a cellphone. The address book needs to be kept sorted by person’s last name and support fast access when queried by last name. Which of the following data structures would be a good choice to use for storing the address book? Explain why. Which would be the bad choice and why? a. unsorted linked list (b) sorted linked list b. binary search tree (d) hash table. 2. Write an algorithm...

  • Q4) [5 points] Consider the following two algorithms: ALGORITHM 1 Bin Rec(n) //Input: A positive decimal...

    Q4) [5 points] Consider the following two algorithms: ALGORITHM 1 Bin Rec(n) //Input: A positive decimal integer n llOutput: The number of binary digits in "'s binary representation if n1 return 1 else return BinRec(ln/2)) +1 ALGORITHM 2 Binary(n) tive decimal integer nt io 's binary representation //Output: The number of binary digits in i's binary representation count ←1 while n >1 do count ← count + 1 return count a. Analyze the two algorithms and find the efficiency for...

  • please answer 11, 12, and 13 thanks Expert Q&A Done QUESTION 11 1. The greedy best-first...

    please answer 11, 12, and 13 thanks Expert Q&A Done QUESTION 11 1. The greedy best-first search algorithm is complete. True False 2. QUESTION 12 1. A and B are propositions, Given the equality PIAB) x and the following statements. (A means negation A) ii) B ->P(A) x (iii) P(Al-B)-1-X (iv) P(-AIB) 1-x Which of the above statements are necessarily true? a. only (i) and (ii) b.only (i) and (iii) c. only (iv) only (ii) and (iv) QUESTION 13 ....

  • Meet is an operation between zero-one matrices and uses Boolean products (C. Join is an operation...

    Meet is an operation between zero-one matrices and uses Boolean products (C. Join is an operation between zero-one matrices and uses Boolean products d. Join is an operation between zero-one matrices and uses conjunctions 29. Given set S (-2, -1, 0, 1, 2), R is a relation on S. i. R ( (x, y)| x-y 1} Write R as a set of ordered pairs. (Use roster method to write R as a set of tuples) 3pts ill. and matrix representation...

  • 8 Sorting Algorithms: Bubble, selection, insertion, quick, merge, bucket, radix, counting. 1. A..Which of the above...

    8 Sorting Algorithms: Bubble, selection, insertion, quick, merge, bucket, radix, counting. 1. A..Which of the above sorting algorithms does TimSort use? 2. Which of the above algorithms sort a REVERSE ORDER list in O(n2 ) (worst case)? 3. Which of the above algorithms sort a REVERSE ORDER list in O(nlogn) (worst case)? 4. Which of the above algorithms sort an ordered list , a reverse ordered list, and a random list (all three) in 0(nlogn) (worst case)? 5. Which of...

  • Hello I have an automata question could you help me? [1Points] Give a formal description of a Tu...

    Hello I have an automata question could you help me? [1Points] Give a formal description of a Turing Machine M  that takes two parameters: an integer and an array of integers and decides whether the given integer is an element of the array or not. You can assume that all the integers are between 0 and 9. The input string will be written on the tape of the Turing machine. The first square of the tape contains the integer, the...

  • Subject: Algorithm need this urgent please thank you. 4. Give pseudocode for an algorithm that will solve the following problem. Given an array A[1..n) that contains every number between 1 and n +...

    Subject: Algorithm need this urgent please thank you. 4. Give pseudocode for an algorithm that will solve the following problem. Given an array A[1..n) that contains every number between 1 and n +1 in order, except that one of the numbers is missing. Find the miss sorted ing mber. Your algorithm should run in time (log n). (Hint: Modify Binary search). A pseudocode means an algorithm with if statements and loops, etc. Don't just write a paragraph. Also, if your...

  • Loop Invariants. I need help on the 15 point question. The 10 point question is the...

    Loop Invariants. I need help on the 15 point question. The 10 point question is the "procedure" from the previous question. 2: (10 points) Consider the algorithm for insertion sort shown below. The input to this algorithm is an array A. You must assume that indexing begins at 1. 1: for j = 2: A.length do key = A[j] i=j-1 while i > 0) and A[i] > key do A[i+1] = A[i] i=i-1 A[i+1] = key 3: 4: 5: 6:...

  • 2. In class, we discussed the problem of searching for an item x in a sorted...

    2. In class, we discussed the problem of searching for an item x in a sorted array L with n entries. The returned value is supposed to be -1 if the value x is not in the array, and the index i such that L[i] = x if x is in the array. Assume that I does not contain duplicate values. Now consider the decision trees of algorithms for solving this problem. To make the decision tree more explicit, we...

  • 1. What is the worst case time complexity of insertion into a binary search tree with...

    1. What is the worst case time complexity of insertion into a binary search tree with n elements? You should use the most accurate asymptotic notation for your answer. 2. A binary search tree is given in the following. Draw the resulting binary search tree (to the right of the given tree) after deleting the node with key value 8. 10 3. You have a sorted array B with n elements, where n is very large. Array C is obtained...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT