Question

1. True or False: The selection sort cannot be used to sort strings. A. True B....

1. True or False: The selection sort cannot be used to sort strings.

A. True

B. False

2. The __________ search is most efficient for large amounts of data.

A. binary

B. serial

C. selection

D. bubble

3. What will be displayed after the following code is executed?

var chips = new Array("plain", "onion", "tuna", "barbecue", "cheddar");

document.write("There are " + chips.length + 1 + " types of chips.");

document.write("My favorite is " + chips[2] + ".");

A. There are 4 types of chips.

My favorite is barbecue.

B. There are 5 types of chips.

My favorite is onion.

C. There are 51 types of chips.

My favorite is tuna.

D. There are 6 types of chips.

My favorite is tuna.

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

1. false.

2. binary.

3. c. there are 51 types of chips. My favorite is tuna.

because + is acting as concatenation operator. If you will place bracket then (5+1) will act as 6 .

DON'T FORGET TO HIT LIKE.

THANKS BY HEART.

Add a comment
Know the answer?
Add Answer to:
1. True or False: The selection sort cannot be used to sort strings. A. True B....
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. True or False: The selection sort cannot be used to sort strings. A. True B....

    1. True or False: The selection sort cannot be used to sort strings. A. True B. False 2. The __________ search is most efficient for large amounts of data. A. binary B. serial C. selection D. bubble 3. What will be displayed after the following code is executed? var chips = new Array("plain", "onion", "tuna", "barbecue", "cheddar"); document.write("There are " + chips.length + 1 + " types of chips."); document.write("My favorite is " + chips[2] + "."); A. There are...

  • 1. True or False: The selection sort cannot be used to sort strings. A. True B....

    1. True or False: The selection sort cannot be used to sort strings. A. True B. False 2. The __________ search is most efficient for large amounts of data. A. binary B. serial C. selection D. bubble

  • THESE ARE TRUE/FALSE The best-time complexity for insertion sort is O(nlogn). The worst-time complexity for bubble...

    THESE ARE TRUE/FALSE The best-time complexity for insertion sort is O(nlogn). The worst-time complexity for bubble sort is O(nlogn). A linked structure consists of nodes. Each node is dynamically created to hold an element. All the nodes are linked together to form a list. The time complexity for searching an element in a binary search tree is O(logn) The time complexity for inserting an element into a binary search tree is O(logn). In an AVL tree, the element just inserted...

  • C++ Sorting and Searching 1. Mark the following statements as true or false. a. A sequential...

    C++ Sorting and Searching 1. Mark the following statements as true or false. a. A sequential search of a list assumes that the list elements are sorted in ascending order. b. A binary search of a list assumes that the list is sorted. 2. Consider the following list: 63 45 32 98 46 57 28 100 Using a sequential search, how many comparisons are required to determine whether the following items are in the list or not? (Recall that comparisons...

  • please Type your answer! thanks ting a true false. You (1) Mark the following assertions about...

    please Type your answer! thanks ting a true false. You (1) Mark the following assertions about sorting at need to explain your answers. (a) (2 points) BubbleSort can be implemente time in N(n). Semented to have a better (b) (2 points) Selection Sort has a worst-case as a worst-case running time in Oslo (e) (2 points) The recursive version or benary search than the non-recursive version. (d) (2 points) The worst-case time complexity of NergeSortising ( a s ( points)...

  • Interfaces 1. What is inside an interface definition? What does a class do to an interface...

    Interfaces 1. What is inside an interface definition? What does a class do to an interface and what keyword is involved? How does a class do this to an interface (what should we find in the class)? Can an interface have a generic parameter? How do you instantiate an interface as an object? What methods can’t you use on an interface type? Abstract Data Types 2. What does an ADT define? Does an ADT specify programming language and/or data structures...

  • Can you please help with the below? 1)   Which of the following is true about using...

    Can you please help with the below? 1)   Which of the following is true about using a 2-3-4 tree? a.   It is designed to minimize node visits while keeping to an O(log n) search performance b.   It is designed to self-balance as new values are inserted into the tree c.   As soon as a node becomes full, it performs the split routine d.   None of the above 2)   Which of the following is true about a binary search tree? a.  ...

  • C. 7. True/False Questions. (2 points each) a. Applying Horner's Rule, an n-degree polynomial can be...

    C. 7. True/False Questions. (2 points each) a. Applying Horner's Rule, an n-degree polynomial can be evaluated at a given point using only n multiplications and n additions. b. Quick Sort and Merge Sort are comparison-based sorting algorithms. Heap Sort and Distribution Counting Sort are not comparison-based sorting algorithms. An AVL tree applies four types of rotations: RIGHT, LEFT, RIGHT-LEFT, and LEFT-RIGHT. d. When an AVL tree's left sub-tree is left-heavy, a LEFT rotation is needed. e. When an AVL...

  • SHORT ANSWER QUESTIONS Part 1 Classes Abstraction: What is Abstraction in terms of representation? Specifically what...

    SHORT ANSWER QUESTIONS Part 1 Classes Abstraction: What is Abstraction in terms of representation? Specifically what choices does one make when creating a class that is an example of Abstraction? Encapsulation: What is encapsulation? What is information hiding? What does a public interface to a class consist of (not in the sense of actual java interfaces but what the client uses to manipulate objects of the class) What is an object of a class? What is the constructor? How do...

  • Question 1 An array is NOT: A - Made up of different data types. B - Subscripted by integers. C -...

    Question 1 An array is NOT: A - Made up of different data types. B - Subscripted by integers. C - A consecutive group of memory chunks. D - None of the choices. Question 2 How many times is the body of the loop executed? int i=1; while(true) { cout << i; if(++i==5) break; } A - Forever B - 4 C - 5 D - 6 E - 0 Question 3 What is wrong with the following piece of...

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
ADVERTISEMENT