Q.28. What is the use of check constraint in MySQL? Explain using an example.
Ans: Check constraint checks for the validity or condition of a given field..
Example..
create table student
(Age int check (age>4));
Above example will check whether the age entered is more than 4 or not..and allows an entry only if the condition is true.
Ravi Coaching Centre
Institution with a vision of providing efficient and effective education to promote students in all We are serving the education fraternity since june 26, 2013.
This page is for the promotion of an educational institute - "RAVI COACHING CENTRE". We believe in quality education and will also wish to collaborate with some organizations who believe in providing quality education to all.
Q.27. Name the keyword used to (i) assign a value as no data (ii) avoid duplicate rows in SQL query.
Ans: (I) NULL (ii) UNIQUE
This video will provide help for class xi and xii informatics practices students to find output.
14/11/2017
28/10/2017
Q.25. Identify the errors and write corrected code after underlining errors:
Q.24. What will be the value of j and k after the ex*****on of following code:
int i=10,j=12;
if(i
CBSE results declared....100% result for all of my students...congrates to them...
Q.23. How may times, the following loop will execute?
int x=1, y=5;
x=x%y;
while(x>=0)
{
x++;
}
Ans. Infinite times.
Tip: if a number divided by another number, its remainder can never be negative, thus "x=x%y" will always results to 0 or more than 0 and because of this value of x in while loop, loop will always remains true and this loop will never end.
New batches starting....register those who want to and those who can give information to others....kindly share..
Click here to claim your Sponsored Listing.
Location
Category
Contact the school
Telephone
Address
M 197 IInd Floor Vikaspuri
New Delhi
110018
Opening Hours
| Monday | 3pm - 8pm |
| Tuesday | 3pm - 8pm |
| Wednesday | 3pm - 8pm |
| Thursday | 3pm - 8pm |
| Friday | 3pm - 8pm |
| Saturday | 3pm - 8pm |