Question
Differentiate between: Local variable and global variables

Answer

Get the step-by-step solution for this question inside the Vidyadip app.

Get the answer in the app

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free

Similar questions

A text file “Quotes.Txt” has the following data written in it: "Living a life you can be proud of Doing your best Spending your time with people and activities that are important to you Standing up for things that are right even when it’s hard Becoming the best version of you." Write a user defined function to display the total number of words present in the file.












Write definition of a Method COUNTNOW(PLACES) to find and display those place names, in which there are more than 5 characters.

For example:If the list PLACES contains [''DELHI'', ''LONDON'', ''PARIS'', ''NEW YORK'', ''DUBAI'']The following should get displayedLONDONNEW YORK

With the help of the program, explain the different ways to accept the elements of the list and display all the elements.


Python program to check whether the list is empty or not.


Input principal and time. Then calculate simple interest. If time is more than 10 years, calculate the simple interest at rate of 8% p.a. Otherwise calculate it at rate of 12% p.a.
Write the python script that read the whole data from the table emp and display all the records.
Distinguish between MAC address and IP address with the help of example of each.
Consider the table: CLUB as given below:

Table: CLUB

MEMBER_ID MEMBER_NAME ADDRESS AGE FEE
M002 NISHA GURGAON 19 3500
M003 NIHARIKA NEW DELHI 21 2100
M004 SACHIN FARIDABAD 18 3500

(a) What is the cardinality and degree of the above given table?

(b) If a new column contact_no has been added and three more members have joined the club then how these changes will affect the degree and cardinality of the above given table.

Expand the following: GPRS, CDMA