Types Of Functions
12 previous year questions.
High-Yield Trend
Chapter Questions 12 MCQs
The SELECT statement when combined with clause, returns records without repetition.
DISTINCT
DESCRIBE
UNIQUE
NULL
Differentiate between 'w' and 'a' file modes in Python.
Table: Transport
- Display the student name and their stop name from the tables Admin and Transport.
- Display the number of students whose S_type is not known.
- Display all details of the students whose name starts with 'V'.
- Display student ID and address in alphabetical order of student name, from the table Admin.
Write a function, c_words(), in Python that separately counts and displays the number of uppercase and lowercase alphabets in a text file, Words.txt
Ms. Veda created a table named Sports in a MySQL database, containing columns Game_id, P_Age, and G_name.
After creating the table, she realized that the attribute Category has to be added.
Help her to write a command to add the Category column.
Thereafter, write the command to insert the following record in the table: Game_id: G42 P\_Age: Above 18 G_name: Chess Category: Senior
Write a user-defined function in Python named Puzzle(W, N) which takes the argument W as an English word and N as an integer and returns the string where every Nth alphabet of the word W is replaced with an underscore ("_").
Example: If W contains the word "TELEVISION" and N is 3, then the function should return the string "TE_EV_SI_N". Likewise, for the word "TELEVISION" if N is 4, the function should return "TEL_VIS_ON".
Define the term web hosting.
Name any two web browsers.
Assertion (A): CSV file is a human-readable text file where each line has a number of fields, separated by a comma or some other delimiter.
Reason (R): writerow() method is used to write a single row in a CSV file.
Mark the correct choice:
DROP
CREATE
UPDATE
ALTER
KB
Bit
Hz
Km
myStr = "MISSISSIPPI" print(myStr[:4] + "#" + myStr[-5:])
MISSI#SIPPI
MISS#SIPPI
MISS#IPPIS
MISSI#IPPIS
In SQL, the aggregate function which will display the cardinality of the table is .
sum()
count(*)
avg()
sum(*)