Self Studies

Computer Scienc...

TIME LEFT -
  • Question 1
    5 / -1

    Directions For Questions

    Radha Shah is a programmer, who has recently been given a task to write a python code to perform the following CSV file operations with the help of two user defined functions/modules:

    a. CSVOpen() : to create a CSV file called BOOKS.CSV in append mode containing information of books – Title, Author, and Price.
    b. CSVRead() : to display the records from the CSV file called BOOKS.CSV where the field title starts with 'R'.

    She has succeeded in writing partial code and has missed out certain statements, so she has left certain queries in comment lines.
    import csv
    def CSVOpen():
    with open('books.csv','______',newline='') as csvf:
    #Statement-1
    cw=______ #Statement-2
    ______ #Statement-3
    cw.writerow(['Rapunzel','Jack',300])
    cw.writerow(['Barbie','Doll',900])
    cw.writerow(['Johnny','Jane',280])
    def CSVRead():

    ...view full instructions

    Fill in the appropriate statement to check the field Title starting with 'R' for Statement 3 in the above program.

  • Question 2
    5 / -1

    Directions For Questions

    Radha Shah is a programmer, who has recently been given a task to write a python code to perform the following CSV file operations with the help of two user defined functions/modules:

    a. CSVOpen() : to create a CSV file called BOOKS.CSV in append mode containing information of books – Title, Author, and Price.
    b. CSVRead() : to display the records from the CSV file called BOOKS.CSV where the field title starts with 'R'.

    She has succeeded in writing partial code and has missed out certain statements, so she has left certain queries in comment lines.
    import csv
    def CSVOpen():
    with open('books.csv','______',newline='') as csvf:
    #Statement-1
    cw=______ #Statement-2
    ______ #Statement-3
    cw.writerow(['Rapunzel','Jack',300])
    cw.writerow(['Barbie','Doll',900])
    cw.writerow(['Johnny','Jane',280])
    def CSVRead():

    ...view full instructions

    Which statement will be used to create a CSV writer object in Statement 2?

  • Question 3
    5 / -1

    Directions For Questions

    Radha Shah is a programmer, who has recently been given a task to write a python code to perform the following CSV file operations with the help of two user defined functions/modules:

    a. CSVOpen() : to create a CSV file called BOOKS.CSV in append mode containing information of books – Title, Author, and Price.
    b. CSVRead() : to display the records from the CSV file called BOOKS.CSV where the field title starts with 'R'.

    She has succeeded in writing partial code and has missed out certain statements, so she has left certain queries in comment lines.
    import csv
    def CSVOpen():
    with open('books.csv','______',newline='') as csvf:
    #Statement-1
    cw=______ #Statement-2
    ______ #Statement-3
    cw.writerow(['Rapunzel','Jack',300])
    cw.writerow(['Barbie','Doll',900])
    cw.writerow(['Johnny','Jane',280])
    def CSVRead():

    ...view full instructions

    Which statement will be used to create a CSV writer object in Statement 2?

  • Question 4
    5 / -1

    Which of the following terms are used to protects Intellectual Property?

  • Question 5
    5 / -1

    When executing the given Python code, which of the following exceptions will occur?

    a = 10

    b = 0

    c = a/b

    print(c)

  • Question 6
    5 / -1

    Which of the following is not a built-in exceptions in Python?

  • Question 7
    5 / -1

    Consider the following array and what is the status of the array after the fourth pass when we use the insertion sort?

    Array Elements: 20, 16, 12, 8, 4, 1

  • Question 8
    5 / -1

    Let us consider a list of numbers (34, 16, 2, 93, 80, 77, 51) and has table size is 10. What is the order of elements(from index 0 to size-1) in the hash table?

  • Question 9
    5 / -1

    The elements 9, 5, 7, and 2 are in the queue and are eliminated one by one. The order of elements received is __________?

  • Question 10
    5 / -1

    Consider the following real-life example.

    If a person uses someone’s song as background music in his/her music video then could be an act a person is an example of:

Submit Test
Self Studies
User
Question Analysis
  • Answered - 0

  • Unanswered - 10

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Submit Test
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