1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Zarrin [17]
3 years ago
13

If you create a keyIterator and a valueIterator for the same dictionary,a. the number of items in keyIterator is smaller than th

e number of items in valueIteratorb. the number of items in keyIterator is equal to the number of items invalueIteratorc. the number of items in keyIterator is larger than the number of items in valueIteratord. there is no relationship between the number of items in keyIterator and valueIteratore. The dictionary interface supports keyIterator but not valueIterator
Computers and Technology
1 answer:
irga5000 [103]3 years ago
5 0

Answer:

b. the number of items in keyIterator is equal to the number of items invalueIterator

Explanation:

A dictionary in python is an unordered and unindexed data structure. It stores data in key-value pairs, this means that for every key in a dictionary, there must be a value. A keys() method is used to create an iterator of dictionary keys. The items of this iterator can be used in a list comprehension, using the dictionary name and the item key to get the values of the dictionary, creating a list of the dictionary values. The values attribute can also be used for this purpose but cannot be used to get the keys.

You might be interested in
What kind of information can be found in a ROM:
tester [92]
The answer is C, ROM often stores the basic instructions a computer needs when powering on, part if the BIOS.
3 0
3 years ago
Traditionally, remote administrative access on routers was configured using Telnet on TCP port 23. However, Telnet was developed
FinnZ [79.3K]

<u>Explanation</u>:

It is an all-too-often used technology today in connecting several computers together via a network.

Routing simple terms means the action of selecting the path taken by the traffic of data in a network of computers. The routing systems involve the use of both wireless and cable based architectures. Some common example of routing systems includes:

  1. Dynamic Routing
  2. Static routing
  3. Default Routing
5 0
3 years ago
I will give brainiest to the person that is right. What is change management?
Serggg [28]

Answer:

Umm I think it's A I am not sure tho

3 0
3 years ago
A friend of Alex has gifted a movie collection, and Alex is excited to watch them all as quickly as possible. The duration of th
marishachu [46]

To find out the duration of alex's movies, you can use the code in C++ to make this calculation, where you will only need the number of movies and their duration, as well:

<h3>Writing code in C++:</h3>

<em>#include<bits/stdc++.h></em>

<em>using namespace std;</em>

<em>struct Movie {</em>

<em>   int timeBegin, duration, timeEnd;</em>

<em>   bool operator<(const Movie& another) const {</em>

<em>      return timeEnd < another.timeEnd;</em>

<em>   }</em>

<em>};</em>

<em>struct Festival {</em>

<em>   int count;</em>

<em>   vector<Movie> movies;</em>

<em>};</em>

<em>Festival* initialize(int timeBegin[], int duration[], int count) {</em>

<em>   Festival* filmFestival = new Festival;</em>

<em>   filmFestival->count = count;</em>

<em>   for (int i = 0; i < count; i++) {</em>

<em>      Movie temp;</em>

<em>      temp.timeBegin = timeBegin[i];</em>

<em>      temp.duration = duration[i];</em>

<em>      temp.timeEnd = timeBegin[i] + duration[i];</em>

<em>      filmFestival->movies.push_back(temp);</em>

<em>   }</em>

<em>   return filmFestival;</em>

<em>}</em>

<em>int solve(Festival* fest) {</em>

<em>   int res = 0;</em>

<em>   sort(fest->movies.begin(), fest->movies.end());</em>

<em>   int timeEnd = -1;</em>

<em>   for (int i = 0; i < fest->count; i++) {</em>

<em>      if (fest->movies[i].timeBegin >= timeEnd) {</em>

<em>         res++;</em>

<em>            timeEnd = fest->movies[i].timeEnd;</em>

<em>      }</em>

<em>   }</em>

<em>   return res;</em>

<em>}</em>

<em>int main(int argc, char *argv[]) {</em>

<em>int timeBegin[] = {1, 3, 0, 5, 5, 8, 8};</em>

<em>int duration[] = {3, 2, 2, 4, 3, 2, 3};</em>

<em>Festival * fest;</em>

<em>fest = initialize(timeBegin,duration, 7);</em>

<em>cout << solve(fest) << endl;</em>

<em>return 0;</em>

<em>}</em>

See more about C Code at brainly.com/question/17544466

#SPJ1

8 0
2 years ago
Im doing a computer project and I would need some help
lisabon 2012 [21]
- Tons of celebrities live in California. You have the kardashians, youtubers and internet stars, musicians, millionaires, etc.

-California is known for gold, silicon, etc.

-Some words that describe California are "economic", "melting pot", "adventurous" "beaches" "Hollywood" "sunny" etc.
6 0
3 years ago
Other questions:
  • Explain how abstraction is used in a GPS system
    12·2 answers
  • Describe data center technology and its relevance to modern-day cloud computing
    14·1 answer
  • What does "scanf(\"%d\" mean?
    13·2 answers
  • In a _______ format, the date line and the signature block are centered.
    6·1 answer
  • 1. Who was able to complete the puzzle the fastest in Trial 1?
    15·1 answer
  • Match each method of communication with its intended purpose.
    14·1 answer
  • Need answer ASAP!!!!
    7·1 answer
  • What are the 3 rules of music<br><br> ps: there is no music subject so i had to put something else
    15·2 answers
  • What is humanity’s greatest invention?
    13·1 answer
  • 49 points!
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!