Total Pageviews

Tuesday, September 15, 2026

C++ • SORTING ALGORITHM Quick Sort

C++ • SORTING ALGORITHM

Quick Sort

ALGORITHM
Quick Sort
TIME COMPLEXITY
O(n log n)
SPACE COMPLEXITY
O(log n)
ORDER
Ascending

C++ Implementation

quick_sort.cpp
#include <iostream>
using namespace std;

class ArraySort
{
    int n;
    int a[100];

    // Partition function to place pivot at correct position
    int partition(int low, int high)
    {
        int pivot = a[high];
        int i = (low - 1);

        for (int j = low; j <= high - 1; j++)
        {
            if (a[j] < pivot)
            {
                i++;
                swap(a[i], a[j]);
            }
        }
        swap(a[i + 1], a[high]);
        return (i + 1);
    }

    // Helper recursive function for Quick Sort
    void quickSortHelper(int low, int high)
    {
        if (low < high)
        {
            int pi = partition(low, high);
            quickSortHelper(low, pi - 1);
            quickSortHelper(pi + 1, high);
        }
    }

public:

    // Constructor
    ArraySort()
    {
        n = 0;
    }

    // Input function
    void input()
    {
        cout << "Enter length of array: ";
        cin >> n;

        cout << "Enter array elements: ";

        for(int i = 0; i < n; i++)
        {
            cin >> a[i];
        }
    }

    // Quick Sort interface function
    void quickSort()
    {
        quickSortHelper(0, n - 1);
    }

    // Output function
    void output()
    {
        cout << "Sorted Array: ";

        for(int i = 0; i < n; i++)
        {
            cout << a[i] << " ";
        }
    }
};

int main()
{
    ArraySort obj;

    obj.input();
    obj.quickSort();
    obj.output();

    return 0;
}

Sample Input

Enter length of array: 5
Enter array elements:
5 3 4 1 2

Output

Sorted Array:
1 2 3 4 5

Line-by-Line Explanation

Code
Meaning
#include <iostream>
Includes standard input/output stream functions.
class ArraySort
Creates a class named ArraySort containing the array and sorting methods.
int n;
Stores the total number of elements in the array.
int a[100];
Declares an integer array capable of holding up to 100 elements.
int partition(int low, int high)
Picks a pivot element and rearranges the array so smaller elements go left and larger elements go right.
void quickSortHelper(...)
Recursively applies the partition logic to the left and right sub-arrays.
ArraySort()
Class constructor that initializes object properties when instantiated.
n = 0;
Initializes the array size variable to zero.
void input()
Reads the array size and elements from the user.
void quickSort()
Public interface function that initiates recursive sorting from index 0 to n - 1.
void output()
Displays the final sorted array to the console.
ArraySort obj;
Instantiates the ArraySort object and triggers the constructor.
return 0;
Signals successful program execution.
How quick sort works: Quick Sort is a Divide and Conquer algorithm. It picks an element as a pivot (in this case, the last element) and partitions the given array around the picked pivot by placing all smaller elements before it and all larger elements after it. This process is then recursively repeated on the sub-arrays.

C++ • SORTING ALGORITHM Heap Sort

C++ • SORTING ALGORITHM

Heap Sort

ALGORITHM
Heap Sort
TIME COMPLEXITY
O(n log n)
SPACE COMPLEXITY
O(1)
ORDER
Ascending

C++ Implementation

heap_sort.cpp
#include <iostream>
using namespace std;

class ArraySort
{
    int n;
    int a[100];

    // To heapify a subtree rooted with node i
    void heapify(int n, int i)
    {
        int largest = i;
        int left = 2 * i + 1;
        int right = 2 * i + 2;

        if (left < n && a[left] > a[largest])
            largest = left;

        if (right < n && a[right] > a[largest])
            largest = right;

        if (largest != i)
        {
            swap(a[i], a[largest]);
            heapify(n, largest);
        }
    }

public:

    // Constructor
    ArraySort()
    {
        n = 0;
    }

    // Input function
    void input()
    {
        cout << "Enter length of array: ";
        cin >> n;

        cout << "Enter array elements: ";

        for(int i = 0; i < n; i++)
        {
            cin >> a[i];
        }
    }

    // Heap Sort function
    void heapSort()
    {
        // Build max heap
        for (int i = n / 2 - 1; i >= 0; i--)
            heapify(n, i);

        // Extract elements from heap one by one
        for (int i = n - 1; i > 0; i--)
        {
            swap(a[0], a[i]);
            heapify(i, 0);
        }
    }

    // Output function
    void output()
    {
        cout << "Sorted Array: ";

        for(int i = 0; i < n; i++)
        {
            cout << a[i] << " ";
        }
    }
};

int main()
{
    ArraySort obj;

    obj.input();
    obj.heapSort();
    obj.output();

    return 0;
}

Sample Input

Enter length of array: 5
Enter array elements:
5 3 4 1 2

Output

Sorted Array:
1 2 3 4 5

Line-by-Line Explanation

Code
Meaning
#include <iostream>
Includes standard input/output stream functions.
class ArraySort
Creates a class named ArraySort containing the array and sorting methods.
int n;
Stores the total number of elements in the array.
int a[100];
Declares an integer array capable of holding up to 100 elements.
void heapify(int n, int i)
Maintains the max-heap property for a subtree rooted at index i.
ArraySort()
Class constructor that initializes object properties when instantiated.
n = 0;
Initializes the array size variable to zero.
void input()
Reads the array size and elements from the user.
for (int i = n / 2 - 1; ...)
Builds a max-heap from the bottom up starting from the last non-leaf node.
swap(a[0], a[i]);
Moves the largest element (root) to the end of the current unsorted portion.
heapify(i, 0);
Restores the max-heap property on the reduced heap of size i.
void output()
Displays the final sorted array to the console.
ArraySort obj;
Instantiates the ArraySort object and triggers the constructor.
return 0;
Signals successful program execution.
How heap sort works: Heap sort is a comparison-based sorting technique based on a Binary Heap data structure. It divides its workspace into a sorted and an unsorted region, and iteratively shrinks the unsorted region by extracting the largest element from the heap and placing it at the end of the array.

C++ • SORTING ALGORITHM Iterative Merge Sort

C++ • SORTING ALGORITHM

Iterative Merge Sort

ALGORITHM
Iterative Merge Sort
TIME COMPLEXITY
O(n log n)
SPACE COMPLEXITY
O(n)
ORDER
Ascending

C++ Implementation

iterative_merge_sort.cpp
#include <iostream>
#include <algorithm>
using namespace std;

class ArraySort
{
    int n;
    int a[100];

    // Helper function to merge two sorted halves
    void merge(int low, int mid, int high)
    {
        int temp[100];
        int left = low;
        int right = mid + 1;
        int k = 0;

        while (left <= mid && right <= high)
        {
            if (a[left] <= a[right])
            {
                temp[k++] = a[left++];
            }
            else
            {
                temp[k++] = a[right++];
            }
        }

        while (left <= mid)
        {
            temp[k++] = a[left++];
        }

        while (right <= high)
        {
            temp[k++] = a[right++];
        }

        for (int i = low; i <= high; i++)
        {
            a[i] = temp[i - low];
        }
    }

public:

    // Constructor
    ArraySort()
    {
        n = 0;
    }

    // Input function
    void input()
    {
        cout << "Enter length of array: ";
        cin >> n;

        cout << "Enter array elements: ";

        for(int i = 0; i < n; i++)
        {
            cin >> a[i];
        }
    }

    // Iterative Merge Sort function
    void mergeSort()
    {
        for (int curr_size = 1; curr_size <= n - 1; curr_size = 2 * curr_size)
        {
            for (int left_start = 0; left_start < n - 1; left_start += 2 * curr_size)
            {
                int mid = min(left_start + curr_size - 1, n - 1);
                int right_end = min(left_start + 2 * curr_size - 1, n - 1);

                merge(left_start, mid, right_end);
            }
        }
    }

    // Output function
    void output()
    {
        cout << "Sorted Array: ";

        for(int i = 0; i < n; i++)
        {
            cout << a[i] << " ";
        }
    }
};

int main()
{
    ArraySort obj;

    obj.input();
    obj.mergeSort();
    obj.output();

    return 0;
}

Sample Input

Enter length of array: 5
Enter array elements:
5 3 4 1 2

Output

Sorted Array:
1 2 3 4 5

Line-by-Line Explanation

Code
Meaning
#include <iostream>
Includes standard input/output stream functions.
#include <algorithm>
Includes std::min function used for boundary calculations.
class ArraySort
Creates a class named ArraySort containing the array and sorting methods.
int n;
Stores the total number of elements in the array.
int a[100];
Declares an integer array capable of holding up to 100 elements.
void merge(int low, int mid, int high)
Merges two sorted sub-arrays into a single sorted range using a temporary array.
ArraySort()
Class constructor that initializes object properties when instantiated.
n = 0;
Initializes the array size variable to zero.
void input()
Reads the array size and elements from the user.
for (int curr_size = 1; ...)
Iterates bottom-up, doubling the size of sub-arrays to be merged in each pass (1, 2, 4, 8, ...).
for (int left_start = 0; ...)
Iterates through the array to pick pairs of sub-arrays of size curr_size to merge.
int mid = min(...)
Calculates the ending index of the first sub-array.
int right_end = min(...)
Calculates the ending index of the second sub-array.
void output()
Displays the final sorted array to the console.
ArraySort obj;
Instantiates the ArraySort object and triggers the constructor.
return 0;
Signals successful program execution.
How iterative merge sort works: Instead of using recursion (top-down), iterative merge sort works in a bottom-up manner. It starts by merging sub-arrays of size 1 into sorted pairs of size 2, then merges pairs of size 2 into sorted blocks of size 4, and continues doubling the block size until the entire array is sorted.

C++ • SORTING ALGORITHM Merge Sort

C++ • SORTING ALGORITHM

Merge Sort

ALGORITHM
Merge Sort
TIME COMPLEXITY
O(n log n)
SPACE COMPLEXITY
O(n)
ORDER
Ascending

C++ Implementation

merge_sort.cpp
#include <iostream>
using namespace std;

class ArraySort
{
    int n;
    int a[100];

    // Helper function to merge two sorted halves
    void merge(int low, int mid, int high)
    {
        int temp[100];
        int left = low;
        int right = mid + 1;
        int k = 0;

        while (left <= mid && right <= high)
        {
            if (a[left] <= a[right])
            {
                temp[k++] = a[left++];
            }
            else
            {
                temp[k++] = a[right++];
            }
        }

        while (left <= mid)
        {
            temp[k++] = a[left++];
        }

        while (right <= high)
        {
            temp[k++] = a[right++];
        }

        for (int i = low; i <= high; i++)
        {
            a[i] = temp[i - low];
        }
    }

    // Helper recursive function for Merge Sort
    void mergeSortHelper(int low, int high)
    {
        if (low >= high) return;
        int mid = low + (high - low) / 2;
        mergeSortHelper(low, mid);
        mergeSortHelper(mid + 1, high);
        merge(low, mid, high);
    }

public:

    // Constructor
    ArraySort()
    {
        n = 0;
    }

    // Input function
    void input()
    {
        cout << "Enter length of array: ";
        cin >> n;

        cout << "Enter array elements: ";

        for(int i = 0; i < n; i++)
        {
            cin >> a[i];
        }
    }

    // Merge Sort interface function
    void mergeSort()
    {
        mergeSortHelper(0, n - 1);
    }

    // Output function
    void output()
    {
        cout << "Sorted Array: ";

        for(int i = 0; i < n; i++)
        {
            cout << a[i] << " ";
        }
    }
};

int main()
{
    ArraySort obj;

    obj.input();
    obj.mergeSort();
    obj.output();

    return 0;
}

Sample Input

Enter length of array: 5
Enter array elements:
5 3 4 1 2

Output

Sorted Array:
1 2 3 4 5

Line-by-Line Explanation

Code
Meaning
#include <iostream>
Includes the input/output library required for cin and cout.
using namespace std;
Allows us to use standard C++ features without writing std:: repeatedly.
class ArraySort
Creates a class named ArraySort containing the array and sorting methods.
int n;
Stores the number of elements in the array.
int a[100];
Declares an integer array capable of storing up to 100 elements.
void merge(...)
Merges two sorted sub-arrays into a single sorted range within a temporary array.
void mergeSortHelper(...)
Recursively divides the array into two halves until single elements remain.
int mid = low + ...
Finds the middle index of the current array range to prevent integer overflow.
ArraySort()
This is the class constructor. It runs automatically when the object is created.
n = 0;
Initializes the array length to zero.
void input()
Defines a function that accepts the array length and array elements from the user.
void mergeSort()
Public interface function that initiates the recursive merge sort process from index 0 to n - 1.
void output()
Defines the function that displays the sorted array.
ArraySort obj;
Creates an object named obj of the ArraySort class. The constructor runs automatically.
obj.input();
Calls the input function to read the array.
obj.mergeSort();
Calls the merge sort function to arrange the elements in ascending order.
obj.output();
Calls the output function to display the sorted array.
return 0;
Indicates that the program has completed successfully.
How merge sort works: It follows a Divide and Conquer approach. It recursively divides the array into two halves until each sub-array contains a single element, and then merges those sub-arrays back together in sorted order.

Insertion Sort in C++ (using class , constructor)

C++ • SORTING ALGORITHM

Insertion Sort


ALGORITHM
Insertion Sort
TIME COMPLEXITY
O(n²)
SPACE COMPLEXITY
O(n)
ORDER
Ascending

C++ Implementation

insertion_sort.cpp
#include <iostream>
using namespace std;

class ArraySort
{
    int n;
    int a[100];

public:

    // Constructor
    ArraySort()
    {
        n = 0;
    }

    // Input function
    void input()
    {
        cout << "Enter length of array: ";
        cin >> n;

        cout << "Enter array elements: ";

        for(int i = 0; i < n; i++)
        {
            cin >> a[i];
        }
    }

    // Insertion Sort function
    void insertionSort()
    {
        for(int i = 1; i < n; i++)
        {
            int key = a[i];
            int j = i - 1;

            while(j >= 0 && a[j] > key)
            {
                a[j + 1] = a[j];
                j--;
            }

            a[j + 1] = key;
        }
    }

    // Output function
    void output()
    {
        cout << "Sorted Array: ";

        for(int i = 0; i < n; i++)
        {
            cout << a[i] << " ";
        }
    }
};

int main()
{
    ArraySort obj;

    obj.input();
    obj.insertionSort();
    obj.output();

    return 0;
}

Sample Input

Enter length of array: 5
Enter array elements:
5 3 4 1 2

Output

Sorted Array:
1 2 3 4 5

Line-by-Line Explanation

Code
Meaning
#include <iostream>
Includes the input/output library required for cin and cout.
using namespace std;
Allows us to use standard C++ features without writing std:: repeatedly.
class ArraySort
Creates a class named ArraySort containing the array and sorting functions.
int n;
Stores the number of elements in the array.
int a[100];
Declares an integer array capable of storing up to 100 elements.
ArraySort()
This is the class constructor. It runs automatically when the object is created.
n = 0;
Initializes the array length to zero.
void input()
Defines a function that accepts the array length and array elements from the user.
cin >> n;
Reads the length of the array.
cin >> a[i];
Reads each element and stores it inside the array.
void insertionSort()
Defines the function responsible for sorting the array using insertion sort.
int key = a[i];
Stores the current element that needs to be inserted into the sorted portion.
int j = i - 1;
Points to the element immediately before the current element.
while(j >= 0 && a[j] > key)
Checks whether the previous element is larger than the key. If it is, that element must move right.
a[j + 1] = a[j];
Shifts the larger element one position to the right.
j--;
Moves the index one position toward the beginning of the array.
a[j + 1] = key;
Places the key into its correct sorted position.
void output()
Defines the function that displays the sorted array.
ArraySort obj;
Creates an object named obj of the ArraySort class. The constructor runs automatically.
obj.input();
Calls the input function to read the array.
obj.insertionSort();
Calls the insertion sort function to arrange the elements in ascending order.
obj.output();
Calls the output function to display the sorted array.
return 0;
Indicates that the program has completed successfully.
How insertion sort works: It divides the array into a sorted and an unsorted portion. Each new element is picked from the unsorted portion and inserted into its correct position in the sorted portion.

solution

WEST BENGAL COUNCIL OF HIGHER SECONDARY EDUCATION

PYTHON PROGRAMMING — MCQ QUESTION PAPER

Subject: Computer Science / Computer Application

Total Questions: 70   |   Full Marks: 70

Type: Multiple Choice Questions (MCQ)

Student Information

Name: Class: Roll No.:

📋 General Instructions

  1. There are 70 multiple-choice questions.
  2. Each question carries 1 mark.
  3. Select the most appropriate answer from the four options.
  4. All questions are compulsory.
  5. Questions cover Python fundamentals, operators, control statements, strings, lists, tuples, dictionaries, functions and basic programming concepts.
SECTION A — PYTHON FUNDAMENTALS
1. Who developed the Python programming language?
2. Which symbol is used for a single-line comment in Python?
3. Which function is used to display output in Python?
4. Which function is used to take input from the keyboard?
5. Which of the following is a valid Python identifier?
6. Python is primarily a ______ language.
7. Which extension is normally used for Python source files?
8. Which of the following represents the Boolean value True?
9. What is the type of 10 in Python?
10. What is the output of print(2 + 3 * 4)?
SECTION B — OPERATORS AND EXPRESSIONS
11. Which operator is used for exponentiation?
12. What is the result of 17 // 5?
13. What is the result of 17 % 5?
14. Which operator checks equality?
15. Which operator means "not equal to"?
16. Which is a logical AND operator in Python?
17. Which is the logical OR operator?
18. What is the output of 10 > 5?
19. Which operator is used for assignment?
20. What is the result of 2 ** 3?
SECTION C — CONDITIONAL STATEMENTS
21. Which keyword is used for decision making?
22. Which keyword is used when the if condition is false and another condition must be checked?
23. Which keyword executes when all previous conditions are false?
24. What is the output?
if 5 > 2: print("Yes")
25. Python uses ______ to define blocks of code.
26. Which statement is useful when a block is syntactically required but no action is needed?
27. What is the output of: print("A" if 10>5 else "B")?
28. Which statement can be nested inside another if statement?
SECTION D — LOOPS
29. Which loop is commonly used to iterate over a sequence?
30. Which loop continues while a condition is True?
31. What does range(5) generate?
32. Which statement terminates a loop immediately?
33. Which statement skips the current iteration?
34. What does pass do?
35. What is the output of:
for i in range(3): print(i)
36. Which loop can become an infinite loop if its condition never becomes false?
SECTION E — STRINGS
37. Which data type is used to represent text?
38. Which symbol can be used to create a string?
39. What is the output of len("Python")?
40. What is the first index of a Python string?
41. What is the output of "Python"[0]?
42. Which method converts a string to uppercase?
43. Which method removes leading and trailing whitespace?
SECTION F — LISTS, TUPLES AND DICTIONARIES
44. Which brackets are used to create a list?
45. Which data structure is mutable?
46. Which brackets are normally used to create a tuple?
47. Which data structure stores key-value pairs?
48. Which brackets are used for a dictionary?
49. Which method adds an element at the end of a list?
50. What is the output of len([10,20,30,40])?
51. Which method removes and returns the last element of a list by default?
52. Which method sorts a list in place?
SECTION G — FUNCTIONS
53. Which keyword is used to define a function?
54. Which keyword sends a value back from a function?
55. What is a parameter?
56. What is the output?
def add(a,b): return a+b
print(add(2,3))
57. A function can have:
58. Which type of variable is defined inside a function?
SECTION H — OUTPUT-BASED AND CONCEPTUAL QUESTIONS
59. What is the output of: print(10 - 3)?
60. What is the output of: print(4 * 5)?
61. What is the output of: print(10 / 2)?
62. What is the output of: print("Py" + "thon")?
63. What is the output of: print("Hi" * 3)?
64. What is the output of: x=[1,2,3]; print(x[1])?
65. Which value represents the absence of a value in Python?
66. Which function returns the data type of an object?
67. Which function converts a string containing an integer to an integer?
68. Which of the following is immutable?
69. Which keyword is used to import a module?
70. Which of the following is NOT a Python built-in data type?

✅ ANSWER KEY

1. C
2. B
3. C
4. B
5. C
6. B
7. C
8. C
9. B
10. B
11. B
12. B
13. A
14. B
15. B
16. B
17. A
18. A
19. B
20. B
21. A
22. C
23. A
24. B
25. B
26. B
27. A
28. A
29. A
30. B
31. B
32. B
33. C
34. C
35. B
36. C
37. B
38. A
39. B
40. A
41. A
42. A
43. B
44. C
45. C
46. B
47. C
48. C
49. B
50. B
51. C
52. A
53. C
54. B
55. A
56. C
57. C
58. B
59. B
60. B
61. B
62. B
63. B
64. B
65. B
66. C
67. D
68. C
69. B
70. D

WEST BENGAL COUNCIL OF HIGHER SECONDARY EDUCATION CLASS 12 MCQ PYTHON PROGRAMMING

WEST BENGAL COUNCIL OF HIGHER SECONDARY EDUCATION

PYTHON PROGRAMMING — MCQ QUESTION PAPER

Subject: Computer Science / Computer Application

Total Questions: 70   |   Full Marks: 70

Type: Multiple Choice Questions (MCQ)

Student Information

Name: Class: Roll No.:

📋 General Instructions

  1. There are 70 multiple-choice questions.
  2. Each question carries 1 mark.
  3. Select the most appropriate answer from the four options.
  4. All questions are compulsory.
  5. Questions cover Python fundamentals, operators, control statements, strings, lists, tuples, dictionaries, functions and basic programming concepts.
SECTION A — PYTHON FUNDAMENTALS
1. Who developed the Python programming language?
2. Which symbol is used for a single-line comment in Python?
3. Which function is used to display output in Python?
4. Which function is used to take input from the keyboard?
5. Which of the following is a valid Python identifier?
6. Python is primarily a ______ language.
7. Which extension is normally used for Python source files?
8. Which of the following represents the Boolean value True?
9. What is the type of 10 in Python?
10. What is the output of print(2 + 3 * 4)?
SECTION B — OPERATORS AND EXPRESSIONS
11. Which operator is used for exponentiation?
12. What is the result of 17 // 5?
13. What is the result of 17 % 5?
14. Which operator checks equality?
15. Which operator means "not equal to"?
16. Which is a logical AND operator in Python?
17. Which is the logical OR operator?
18. What is the output of 10 > 5?
19. Which operator is used for assignment?
20. What is the result of 2 ** 3?
SECTION C — CONDITIONAL STATEMENTS
21. Which keyword is used for decision making?
22. Which keyword is used when the if condition is false and another condition must be checked?
23. Which keyword executes when all previous conditions are false?
24. What is the output?
if 5 > 2: print("Yes")
25. Python uses ______ to define blocks of code.
26. Which statement is useful when a block is syntactically required but no action is needed?
27. What is the output of: print("A" if 10>5 else "B")?
28. Which statement can be nested inside another if statement?
SECTION D — LOOPS
29. Which loop is commonly used to iterate over a sequence?
30. Which loop continues while a condition is True?
31. What does range(5) generate?
32. Which statement terminates a loop immediately?
33. Which statement skips the current iteration?
34. What does pass do?
35. What is the output of:
for i in range(3): print(i)
36. Which loop can become an infinite loop if its condition never becomes false?
SECTION E — STRINGS
37. Which data type is used to represent text?
38. Which symbol can be used to create a string?
39. What is the output of len("Python")?
40. What is the first index of a Python string?
41. What is the output of "Python"[0]?
42. Which method converts a string to uppercase?
43. Which method removes leading and trailing whitespace?
SECTION F — LISTS, TUPLES AND DICTIONARIES
44. Which brackets are used to create a list?
45. Which data structure is mutable?
46. Which brackets are normally used to create a tuple?
47. Which data structure stores key-value pairs?
48. Which brackets are used for a dictionary?
49. Which method adds an element at the end of a list?
50. What is the output of len([10,20,30,40])?
51. Which method removes and returns the last element of a list by default?
52. Which method sorts a list in place?
SECTION G — FUNCTIONS
53. Which keyword is used to define a function?
54. Which keyword sends a value back from a function?
55. What is a parameter?
56. What is the output?
def add(a,b): return a+b
print(add(2,3))
57. A function can have:
58. Which type of variable is defined inside a function?
SECTION H — OUTPUT-BASED AND CONCEPTUAL QUESTIONS
59. What is the output of: print(10 - 3)?
60. What is the output of: print(4 * 5)?
61. What is the output of: print(10 / 2)?
62. What is the output of: print("Py" + "thon")?
63. What is the output of: print("Hi" * 3)?
64. What is the output of: x=[1,2,3]; print(x[1])?
65. Which value represents the absence of a value in Python?
66. Which function returns the data type of an object?
67. Which function converts a string containing an integer to an integer?
68. Which of the following is immutable?
69. Which keyword is used to import a module?
70. Which of the following is NOT a Python built-in data type?