Which of the following function returns a list containing all the matches.? a. matches() b. find() c. findall() d. search() Clear my choice
Q: In python which of the following functions as used to add a value to the end of the list? A. add B.…
A: The answer is
Q: Cruise(sid, name, number of days. price, number of_stops) Port(pid, city, country, gumber. of stars,…
A: Procedure is a subprogram which is responsible for performing a particular task. A procedure is…
Q: Which of the following is true about both a_list and a_dict? Select all that apply. The type…
A: The problem is based on the basics of lists and dictionary in programming languages.
Q: Python command line menu-driven application that allows a user to display, sort and update, a List…
A: # define an empty list which will carry all the datastate = []# state.append inserts the contents to…
Q: By using the C language, generate a computerized student record consisting of name, matric number…
A: Coded in c language.
Q: A sorted list of numbers contains 200 elements. Which of the following is closest to the maximum…
A: The worst case time complexity of binary search algorithm is ceil (log 2 n) Here n=200
Q: Question 12: Which argument is optional for the HLOOKUP function? Answer: A. B. C. D. O Lookup value…
A: 1.) Range lookup It is an optional argument for the HLOOKUP function. If it is omitted then HLOOKUP…
Q: Create a list to save the elements and sort the element in ascending or descending order. void…
A: What is sorting? Sorting is any process of arranging items systematically. In computer science,…
Q: Which of the following print the last element in the list?
A: List indexing starts from 0 and thus last element is at index length-1 Here grocery_list is having a…
Q: Which of the following are true of Python lists? There is no conceptual limit size to a list O A…
A: Task :- Choose the correct options about python.
Q: A function to create a two dimensional list of size n*m (n rows, m columns). Fill the list with…
A: import random# Function to create a random 2D listdef create(n, m): myList = [[0]*m]*n for i…
Q: At the interactive prompt define a list named L that contains four strings or…
A: Index out of bounds exception is defined as the error that causes it there is a buffer overflow like…
Q: Create a code for the bank transaction record using linked list
A: As, it is not stated i have used Java for this question. For the bank transaction, we need the…
Q: Which of the basic data structures is the most suitable if you only need to insert the elements in…
A: The answer is given below:-
Q: Which of the following dictionary functions returns a few consisting of two element Tuples? In…
A: Ans : the following dictionary functions that returns a few consisting of two element Tuples is :…
Q: Sort the list E, X, A, M, P, L, E in alphabetical order by selection sort (refer to photo) How…
A: SInce you have not asked for the code in any particular language so i will be providing the code in…
Q: List is a mutable data type a. True b. False Clear my choice
A: List is a mutable data type is true or false is in step2.
Q: Which Python data structure is constructed using the code below? a = (1,2,3) a. Dictionary O b.…
A: NOTE - As per our guidelines we are supposed to answer only one question, please repost other…
Q: The user then gets to choose options from the following menu: 1. Remove adjacent duplicate…
A: 4 search for substring in the input string To search the substring in the given input string, a…
Q: Which of the following statements a), b) or c) is false? a. A list comprehension's expression can…
A: The answer to this question is All of the above statements are true.
Q: In this lab we will create three functions. The first will be called main. Main will simply be the…
A: Python used to answer this question
Q: A function that returns non-zero if char is one of the following: a space, tab, vertical tab, form…
A: Defined the given statements
Q: en the following: d = {'hello' : 'goodbye'} %3D d is Choose the following below: 1. Dictionary 2.…
A: Explanation: syntax of python dictionary is dictionary_name = {key: value};
Q: Before adding a new term to a dictionary you should A. Make it a tuple. B. Make it a list C. Make…
A: Question about dictionary in python
Q: If you perform the following sequence of operations on a list that contains items [2, 4, 6, 8], what…
A: Here all operation are performed on a Queue. Queue follows FIFO strategy ie element inserted first…
Q: Question 20 ) Listen Write a PHP function that accepts two arguments - one integer and one string…
A: We need to write a PhP code for the given scenario.
Q: Which one of the following options best describes the purpose of indexing a string? a. To iterate…
A: Please find the answer below
Q: Help me fix all the error in this programme #include #include #include #include using…
A: The solution to the given problem is below.
Q: 5. Which operator has more precedence in below list? (A) + (B) - (C) ++ (D) *
A: The given operators are + , - , ++ and *. In all the above operators the '++' i.e. increment…
Q: Define a function named create_usernames_dictionary (usernames_list) which takes a list of usernames…
A: The complete program source code is given below: #method to create a dictionary from the user…
Q: named A. Consider the two lines of code below: temp=df.A temp=df.[A] Select the option that explain…
A: Option: The first returns a series and the second return a list. The first returns a list and the…
Q: Inserting Nodes into the List: In the following code (The Code is written By C) : there are 3…
A: Code :- #include<stdio.h> #include<stdlib.h> struct node { int data;…
Q: List to Dictionary Function for Fantasy Game Inventory Imagine that a vanquished dragon's loot is…
A: Python program for game inventory.
Q: Which of the following statement is not correct? O a. A list is mutable O b. A tuple is…
A: I have given an answer in step 2.
Q: Which of the following structure allows to access data randomly? O a. Graph O b. List O c. Table o…
A: The different data structure are List, Array, graph. They all store data differently into memory.
Q: You were hired to create a registration system for the athletes of Oman Sports Association. The…
A: Required: The program will start by asking the team name, the game name, and the number of players.…
Q: how to write a function that calls a list of files and organizes them by the assigned numeric order…
A: The Python list sort() method may be used to sort a List in any order, including ascending,…
Q: What happens where you replace the entry in position 4 from a List? Select one: a. Position 4 will…
A: Consider the sample program code: #creating a list samp_list = ['a','b','c', 'd'] #replacing 'c'…
Q: Which of the following statements create a dictionary? a) d = {} b) d = {“john”:40, “peter”:45} c) d…
A: Question. Which of the following statements create a dictionary? a) d = {} b) d = {“john”:40,…
Q: C. d. ne: ID: A 7. A summer camp offers a morning session and an afternoon session. The list…
A: Correct answer is option a
Q: Which statement from below is correct to initialize a List to include 5 subject names of a week…
A: List is a generic class in c# which can contain list of objects. In the above question we have to…
Q: estion 2: Please write html code to show the concept of nested list. Write code for all three type…
A: Three types of Html lists are: Ordered list Unordered list Description List
Q: In which of the following data structures you can use the union() method ? Tuples Sets Dictionaries…
A: In mathematics generally, we use Union() method in the set data structures. In Set, we have…
Q: Create a function that sorts words by a given string. Examples sortBystring(["apple", "banana",…
A: Algorithm - Take input from user. To solve this problem we will be using the below logic for…
Q: Create a list named fruits with the following items: 'apple', 'cherry', 'pear' 2) Add "orange" at…
A: A list is a collection of elements enclose between '[' and ']', separated each elements by ','. A…
Q: Which of the following function is not used to add elements in a list ? a. extend() O b. insert()
A: Option (d) is correct option
Q: USING C# Write a console app that inserts 30 random letters into a List. Perform the following…
A: I have mentioned answer in step below, please find in below //C # a programme that generates 30…
Q: Which one of the following is no
A: Solution - In the given question, we have to select which is not a python's predefined data type…
Q: The first parameter represents an inner list index and the second parameter represents converted…
A: In the code here we have defined some constant integers that will be used as index to find the sum…
Q: Write a code for a simple text editor/Nodepad. Use fully connected linked list, with four pointers…
A: Given a 2D matrix, the task is to convert it into a doubly-linked list with four pointers that are…
Step by step
Solved in 2 steps
- Which Python list function returns an item? sorted() Ⓒitemgetter() all() Osum()Which of the following lines of code finds the number of characters in String list and assigns the value to count? a) count =list.count(); b)list = list.count(); c)count = list.length(); d)count = length.list(); e) None of the aboveWhich of the following statements DOES NOT delete the last value in the list lst? a) 1st.pop( b) 1st.remove(-1) c) 1st = lst[:-1] d) 1st.pop(len(lst)-1)
- Which of the following dictionary functions returns a few consisting of two element Tuples? In python. A.get() B.keys() C.values() D.items()Which statement from below is correct to initialize a List to include 5 subject names of a week using C#? A.List<string> subjects = new List<string>() B.List<double> subjects=new List<double> C.string subjects = new double[7] D.int[] subjects = new string[8]Which Python list function returns a list item? each Osum() sorted() Citemgetter()
- If the following is a pointer based list, give the correct commands that change the list from BEFORE to AFTER. BEFORE Plane Bike Pickup Caddy Truck Motorbike Van Ship AFTER Plane Bike Caddy Truck Motorbike Van Scooter Ship Select one: A.insert (5, "Scooter"); delete ("Pickup") B.insert (6, "Scooter"); delete ("Pickup") C.delete ("Scooter"); insert(2, "Pickup") D.delete ("Pickup"); insert (6, "Scooter")make a list with names and ages. then compute and display how many people are in the file, what is the youngest age in the file and who is the oldest.Create Trigger for When a student marks are being inserted, if the marks that are inserted are greater than 50, allow the insertion, but update marks to 50. Marks(Id , Marks) -> Table Fill in the blanks: ___ triggerName Before ___ ON Marks REFERENCING _____ AS nrow FOR EACH ROW WHEN (nrow.marks>50) _____ nrow SET nrow.marks = 50;