Home

Designed for school students & undergraduate entrance aspirants preparing for board exams, NEET, JEE and more.

JEE (Mains & Adv)NEET (UG)CBSE BoardISC BoardUP BoardCUET

Built for graduates & professionals targeting competitive exams — UPSC, CAT, GMAT, GRE, IELTS, banking & more.

GREGMATCATUPSCIBPSIELTSTOEFLSATACT

Core school & undergraduate subjects aligned with CBSE, ISC, UP Board, NEET and JEE syllabi.

PracticeMock TestsResources
Back to Categories
Question 1 of 5

Computer Science (Python) > Database Management > Interface Of Python With Sql

Progress: 0%
Success Rate: 0%
Question 1

(i) Give one difference between CHAR and VARCHAR datatype in MySQL.

(ii) Rahim wants to write a program in Python to insert the following record in the table named

Bank_Account
in MySQL database,
Bank
:

Accno
- integer

Cname
- string

Atype
- string

Amount
- float

Note the following to establish connectivity between Python and MySQL:

Username - admin

Password - root

Host - localhost

The values of fields

Accno
,
Cname
,
Atype
and
Amount
have to be accepted from the user. Help Rahim to write the program in Python.

0 of 5 answered

Current Session

Questions Answered0
Correct Answers0
Session Success Rate0%
Ready to Start! 🚀

Community Stats

Active Learners31
Questions Attempted604
Community Success Rate70%

Track Your Progress

Sign up to save your practice progress and get personalized insights across all topics.

We Value Your Privacy

Edvaya uses cookies to enhance your learning experience, analyze platform usage, and provide personalized content. You can customize your preferences or accept all cookies to continue.

By continuing, you agree to our Cookie Policy and Privacy Policy