Self Studies

Computer Science Test - 23

Result Self Studies

Computer Science Test - 23
  • Score

    -

    out of -
  • Rank

    -

    out of -
TIME Taken - -
Self Studies

SHARING IS CARING

If our Website helped you a little, then kindly spread our voice using Social Networks. Spread our word to your readers, friends, teachers, students & all those close ones who deserve to know what you know now.

Self Studies Self Studies
Weekly Quiz Competition
  • Question 1
    5 / -1

    Which kind of data has been that is not arranged according to a pre-set data model or schema?

    Solution

    The correct answer is option B.

    Concept:

    Data come from different sources, they can be in different formats.

    Unstructured Data:

    Unstructured data is information that is not arranged according to a pre-set data model or schema, and therefore cannot be stored in a traditional relational database or RDBMS. Text and multimedia are two common types of unstructured content.

    Example:

    A newspaper contains a variety of news pieces, often known as data. However, a newspaper's placement of news pieces follows no set pattern. On any given day, a page may have three photos of various sizes, five news articles, and one or more adverts. On another day, one large image with three written news pieces may be displayed.

    Structured Data:

    Data that is organized and can be recorded in a well-defined format is called structured data. Structured data is often kept in a tabular (rows and columns) format on a computer, with each column representing distinct data for a specific parameter called an attribute, characteristic, or variable, and each row representing data from observation for several attributes.

    Example:

    Data related to an inventory of kitchen items maintained by a shop.

    Hence the correct answer is Unstructured Data.

  • Question 2
    5 / -1

    Statement 1: A program cannot be executed until all errors are rectified.

    Statement 2: A program cannot be executed until all exceptions are handled.

    Solution

    Syntax errors (compile-time) must be fixed before execution (Statement 1 true).

    Exceptions (runtime) don’t prevent execution but may crash if unhandled (Statement 2 false).

  • Question 3
    5 / -1

    Consider a list where we have to search for 2 different values using hashing. One of the numbers, ‘a’ is present at index = 3, and the other one, ‘b’ is present at index = 7.

    How many comparisons will have to be made to search for ‘a’ and ‘b’?

    Solution

    In ideal hashing with no collisions, searching for ‘a’ and ‘b’ takes 1 comparison each, as the hash function directly locates the index.

  • Question 4
    5 / -1

    Which of the following is not a digital storage device?

    Solution

    The correct answer is option D.

    Concept:

    Data Storage:

    Data storage is the process of storing data on storage devices so that data can be retrieved later. Large amounts of data are being created at an alarming rate these days. As a result, storing data has become a difficult undertaking. However, as the cost of digital storage devices has decreased, this work has become easier.
    There are numerous digital storage devices available in the market like,

    • Hard Disk Drive (HDD),
    • Solid State Drive (SSD),
    • CD/DVD,
    • Tape Drive,
    • Pen Drive,
    • Memory Card, etc.

    Hence the correct answer is None of the above.

  • Question 5
    5 / -1

    In which case is the Name Error exception raised in Python?

    Solution
    • When a requested module definition is not found, the ImportError exception is raised.
    • When a keyword or a reserved word is used as a variable name, it leads to a syntax error.
    • When a statement accessed a variable that is not found in the local or global scope, then the program raises a NameError.
    • When a specified file cannot be opened by a program, it causes an exception of IOError type.
  • Question 6
    5 / -1

    Which of the following statements are true?

    S1:Reports are used to give the summary data.

    S2: Forms are used to collect data, display results of the queries, perform computations, etc.

    Solution

    The correct answer is option 3.

    Concept:

    Forms and reports are an important part of the database application. Decision makers and clerical workers use forms and reports often. Designers use them to create an integrated application . Users can perform their tasks easily by using forms and reports.

    S1:Reports are used to give the summary data. 

    True, Reports are used to give the summary data. The report may be given in a graphical manner. Generally, it would occupy one page. Applications are built as a collection of related Forms and reports. All the users access the database using forms and reports. 

    S2: Forms are used to collect data, display results of the queries, perform computations, etc.

    True, Forms are used to collect data, display results of the queries, perform computations, etc.  Forms have several things in common. They have properties that are used to control the look and style of the form. Forms also have controls which include labels and textboxes.

    Hence the correct answer is Both S1 and S2.

  • Question 7
    5 / -1

    Consider the list of data [56, 80, 39, 41, 29, 61] and the hash function h[i] = i % 7 where i is each element of the list. What will be the index value of the element 39?

    Solution
    • The hash function is modulo 7. This means, that each element is divided by 7 and the number is positioned at the index equal to the remainder.
    • 39 % 7 = 4 and so the element is located at index position 4.
  • Question 8
    5 / -1

    What will be the output of the following code?

    myobject=open("myfile.txt",'r')

    myobject.readline(10)

    myobject.close()

    Solution

    The code has no print(), so no output. If print(myobject.readline(10)) were used, it would print the first 10 characters of the first line (or until newline).

    Important Point:

    Even if the value passed to the function exceeds the number of characters till the newline character, the control does not move on to the next line.

  • Question 9
    5 / -1

    Consider a list of 10 elements:

    Array = [7, 11, 3, 10, 17, 23, 1, 4, 21, 5]

    Determine the partially sorted list after three complete passes of insertion sort, in descending order.

    Solution
    • Array: [7, 11, 3, 10, 17, 23, 1, 4, 21, 5], descending order.
    • Pass 1: [11, 7, 3, 10, 17, 23, 1, 4, 21, 5] (11 > 7, swap).
    • Pass 2: [11, 7, 3, 10, 17, 23, 1, 4, 21, 5] (3 < 7, no change in sorted part yet).
    • Pass 3: [11, 10, 7, 3, 17, 23, 1, 4, 21, 5] (10 inserted: 11 > 10 > 7).
    • Solution misdescribes Pass 2 (3 isn’t "placed," it shifts earlier elements).
    • Correction: After 3 passes (considering elements 7, 11, 3, 10), sorted part is [11, 10, 7, 3], unsorted remains [17, 23, 1, 4, 21, 5]. Answer A is correct.
    • Solution: "Pass 1: [11, 7, 3, ...]. Pass 2: [11, 7, 3, ...]. Pass 3: [11, 10, 7, 3, ...]. After 3 passes, result is [11, 10, 7, 3, 17, 23, 1, 4, 21, 5]
  • Question 10
    5 / -1

    The module _________ is used for serializing and de-serializing any Python object structure.

    Solution
    • The Pickle module is used for storing any Python object as a byte stream. When required, the byte stream is reconstructed into an object.
    • The dump() and load() are methods of the Pickle module for serializing and de-serializing objects.
Self Studies
User
Question Analysis
  • Correct -

  • Wrong -

  • Skipped -

My Perfomance
  • Score

    -

    out of -
  • Rank

    -

    out of -
Re-Attempt Weekly Quiz Competition
Self Studies Get latest Exam Updates
& Study Material Alerts!
No, Thanks
Self Studies
Click on Allow to receive notifications
Allow Notification
Self Studies
Self Studies Self Studies
To enable notifications follow this 2 steps:
  • First Click on Secure Icon Self Studies
  • Second click on the toggle icon
Allow Notification
Get latest Exam Updates & FREE Study Material Alerts!
Self Studies ×
Open Now