Advertisements
Advertisements
प्रश्न
What is the difference between the else and elif construct of the if statement?
उत्तर
‘Else’ is used along with ‘if’ to define the alternative path if the condition mentioned in the ‘if’ statement is incorrect. This means that only one statement can be evaluated using the if..else statement.
If more than one statements need to be evaluated, the ‘elif’ construct is used. There is no limit on the number of ‘elif’ constructs that should be used in a statement. However, the conditions mentioned in each ‘elif’ construct should be mutually exclusive i.e. if one of the conditions in if..elif is correct it should imply that all the other conditions are false.
APPEARS IN
संबंधित प्रश्न
______ is a negative process.
Explain any three steps of the Selection process.
Write a program that takes the name and age of the user as input and displays a message about whether the user is eligible to apply for a driving license or not. (the eligible age is 18 years).
Write a program to find the grade of a student when grades are allocated as given in the table below.
Percentage of Marks | Grade |
Above 90% | A |
80% to 90% | B |
70% to 80% | C |
60% to 70% | D |
Below 60% | E |
The percentage of the marks obtained by the student is input into the program.
______ is the process of carefully screening the candidates to choose the most suitable persons for the job.
Justify the following:
Selection is a negative process.
Selection means assigning suitable jobs to the selected candidates in the organisation and choosing the most appropriate candidates.
It is the process of carefully screening the candidates to choose the most suitable persons for the job vacancies to be filled in.
What is selection?
How is recruitment different from selection?
Selection is a negative process. Explain.
______ is an elimination process.
Selection is a negative process. Give two reasons for or against.
Selection is a process of elimination. Justify