The following pseudocode is executed using the **"Library"** dataset.
What will the
dictionary represent at the end of execution?
6406537457951.
Dictionary with authors as keys mapped to the span of years (difference
between latest and earliest publication year) between their first and most recent book.
6406537457952.
Dictionary with authors as keys mapped to the year of their most recent
publication.
6406537457953.
Dictionary with authors as keys mapped to the total number of books they
have published.
6406537457954.
Dictionary with authors as keys mapped to the year of their first publication.
A published solution is not available for this question yet.
The following flowchart is executed using the **"Scores"** dataset. Assume that Rida and Siddharth
both have scored the lowest total marks across the whole dataset which is 173. Let cards are
arranged in such a way that Rida's card is below Siddharth's card, what will the values of **A** and **B**
be at the end of the execution?
The following table contains information regarding books in a library. Each row in the table
corresponds to a book and is authored by exactly two authors, with equal contributions from both.
There is a pool of
authors, each author being assigned a unique index between 0 and
.
There are
books in total.
The table is represented by a dictionary named
, with the keys as serial numbers and values
as the corresponding lists of authors. Assume that
has already been computed. For
example:
Given a pair of authors
, with
, what does the value
represent at the
end of the execution of the following pseudocode?
6406537457955.
It represents the number of books published by authors
or
6406537457956.
It represents the number of books in which authors
and
have
collaborated
6406537457957.
It represents the number of books published by author
plus the number of
books published by author
6406537457958.
It represents the number of books published by author
in which they have
not collaborated with author
A published solution is not available for this question yet.
Consider the implementation of the following procedure **getDictionary**.
Assume that the procedure **absolute** takes an integer as parameter and returns the absolute
value. For example, absolute(-2) = 2 and absolute(3) = 3.
Let **D** be the value returned by **getDictionary([10, 20, 5, 10, 40, 15, 23, 7, 16])**. Answer the given
subquestions based on **D**.
What is the value of **D[10]** ?
6406537457959.
7
6406537457960.
10
6406537457961.
30
6406537457962.
20
A published solution is not available for this question yet.
Consider the implementation of the following procedure **getDictionary**.
Assume that the procedure **absolute** takes an integer as parameter and returns the absolute
value. For example, absolute(-2) = 2 and absolute(3) = 3.
Let **D** be the value returned by **getDictionary([10, 20, 5, 10, 40, 15, 23, 7, 16])**. Answer the given
subquestions based on **D**.
What is the value of **length(keys(D))** ?
A published solution is not available for this question yet.
A teacher stores the scores obtained by students in a list
.
The teacher wants to create a list called
containing only those scores that are
greater than or equal to 75. The scores must appear in
in the same order in which
they appear in
.
Answer the given subquestions based on this information
is a recursive procedure that accepts
as an argument and returns
which is a list containing only those scores that are greater than or equal to 75, in
their original order.
Select the correct implementation(s) of the procedure
is a list of strings containing information about the outcomes of cricket matches played
by India in a tournament. Assume that each element in the list is either
or
.
For example, if five matches have been played,
could be:
We call a list of outcomes a blank slate if the number of wins is equal to the number of losses.
is a procedure that accepts
as input and returns
if it is a blank slate
and
otherwise.
Select the correct code fragment(s) to complete the pseudocode.