Please select a subject first
Advertisements
Advertisements
Enumerate any five rights of a consumer under the Consumer Protection Act, 2019.
Concept: Consumer Protection Act 1986 (COPRA)
Enumerate any five responsibilities of a Consumer Protection Act, 2019.
Concept: Consumer Protection Act 1986 (COPRA)
Mayank purchased a pack of chocolates of a renowned brand for his daughter from a shop in the nearby market. After consuming the chocolates, his daughter fell sick. He filed a case with the District forum against the renowned brand. He lost the case because of a mistake that he could not provide proof of purchase. What should be kept in mind by a consumer while purchasing, using and consuming goods and services apart from avoiding the mistake committed by Mayank, in order to enable him/her to achieve the objective of consumer protection? Enumerate any four points.
Concept: Concept of Consumer Protection
State when can a consumer complain directly in the 'State Commission' and 'National Commission'? If the consumer is not satisfied with the decision of 'The State Commission' and National Commission' where can he/she appeal?
Concept: Legal Redressal Machinery Under Consumer Protection Act 1986
As per the Consumer Protection Act, 2019, for what value of defective goods or deficient services can a complaint be filed at the State Commission?
Concept: Legal Redressal Machinery Under Consumer Protection Act 1986
Where can an appeal against the order of the National Commission be made if the aggrieved party is not satisfied by its order?
Concept: Legal Redressal Machinery Under Consumer Protection Act 1986
Which of the following is an invalid datatype in Python?
Concept: Introduction of Exception Handling in Python
Which of the following statement(s) would give an error after executing the following code?
S="Welcome to class XII" # Statement 1
print(S) #Statement 2
S="Thank you" # Statement 3
S[0]= '@' # Statement 4
S=S+"Thank you" # Statement 5Concept: Built-in Exceptions in Python
Rao has written a code to input a number and check whether it is prime or not. His code is having errors. Rewrite the correct code and underline the corrections made.
def prime():
n=int(input("Enter number to check :: ")
for i in range (2, n//2):
if n%i=0:
print("Number is not prime \n")
break
else:
print("Number is prime \n’)Concept: Built-in Exceptions in Python
Predict the output of the Python code given below:
def Diff(N1,N2):
if N1>N2:
return N1-N2
else:
return N2-N1
NUM= [10,23,14,54,32]
for CNT in range (4,0,-1):
A=NUM[CNT]
B=NUM[CNT-1]
print(Diff(A,B),'#', end=' ')Concept: Handling Exceptions in Python
Atharva is a Python programmer working on a program to find and return the maximum value from the list. The code written below has syntactical errors. Rewrite the correct code and underline the corrections made.
def max_num (L):
max=L(O)
for a in L:
if a > max
max=a
return maxConcept: Syntax Errors in Python
Which of the following operators will return either True or False?
Concept: Introduction of Exception Handling in Python
“In a Python program, if a break statement is given in a nested loop, it terminates the execution of all loops in one go.”
Concept: Handling Exceptions in Python
An exception may be raised even if the program is syntactically correct.
Concept: Exceptions in Python
The code given below accepts a number as an argument and returns the reverse number. Observe the following code carefully and rewrite it after removing all syntax and logical errors. Underline all the corrections made.
define revNumber (num) :
rev = 0
rem = 0
While num > 0:
rem ==num %10
rev = rev*10 + rem
num = num//10
return rev
print (revNumber (1234))Concept: Syntax Errors in Python
Given the following dictionaries.
dict_exam={"Exam":"AISSCE", "Year":2023}
dict_result={"Total":500, "Pass_Marks":165}
Which statement will merge the contents of both dictionaries?
Concept: The Pickle Module in Python
Which of the following mode in the file opening statement results or generates an error if the file does not exist?
Concept: Reading from a Text File in Python
The correct syntax of seek() is ______
Concept: Setting Offsets in a File in python
Assertion (A): CSV (Comma Separated Values) is a file format for data storage that looks like a text file.
Reason (R): The information is organized with one record on each line and each field is separated by a comma.
Concept: Types of Files in Python
Write a method COUNTLINES() in Python to read lines from the text file ‘TESTFILE.TXT’ and display the lines which do not start with any vowel.
Example:
If the file content is as follows:
An apple a day keeps the doctor away.
We all pray for everyone’s safety.
A marked difference will come in our country.
The COUNTLINES() function should display the output as:
The number of lines not starting with any vowel - 1
Concept: Reading from a Text File in Python
