Ask questions which are clear, concise and easy to understand.
Ask QuestionPosted by Ajay Kumar 3 years, 10 months ago
- 1 answers
Posted by Badboy Gaming 3 years, 10 months ago
- 2 answers
Posted by Ziyana Sharma 3 years, 10 months ago
- 1 answers
Muddabbir Hussain 3 years, 10 months ago
Posted by Soumik Kayari 3 years, 10 months ago
- 3 answers
Posted by Anushree Swain 3 years, 10 months ago
- 1 answers
Sia ? 3 years, 5 months ago
Posted by Ankit Singh 3 years, 10 months ago
- 2 answers
Milind Pandey 3 years, 10 months ago
Milind Pandey 3 years, 10 months ago
Posted by Samiha.H Sam 3 years, 10 months ago
- 1 answers
Pooja Verma 3 years, 10 months ago
Posted by Aditya Kumar Shrivastava 3 years, 10 months ago
- 0 answers
Posted by Vishwambhar Singh 3 years, 10 months ago
- 1 answers
Posted by Badboy Gaming 3 years, 10 months ago
- 1 answers
Posted by Khushi Ghangas 3 years, 10 months ago
- 1 answers
Kamna Rana 3 years, 10 months ago
Posted by Arjun Arjun 3 years, 10 months ago
- 0 answers
Posted by Badboy Gaming 3 years, 10 months ago
- 0 answers
Posted by Rickey Gaming 3 years, 10 months ago
- 0 answers
Posted by Badboy Gaming 3 years, 11 months ago
- 4 answers
Badboy Gaming 3 years, 10 months ago
Posted by Arati Patanaik 3 years, 11 months ago
- 2 answers
Student Of The Year 3 years, 11 months ago
Posted by Sharvesh Kumar 3 years, 11 months ago
- 0 answers
Posted by Deepak . 3 years, 11 months ago
- 1 answers
Yogita Ingle 3 years, 11 months ago
A namespace is a way of grouping identifiers so that they don’t clash. Using a class implies that you can create an instance of that class, not true with namespaces.
A namespace cannot be created as an object; think of it more as a naming convention. It is used as additional information to differentiate similar functions, classes, variables etc. with the same name available in different libraries.
Posted by Kunal Johari 3 years, 11 months ago
- 1 answers
Posted by Navin Sahu 3 years, 7 months ago
- 1 answers
Sia ? 3 years, 7 months ago
Posted by Sakshi Yadav 3 years, 11 months ago
- 2 answers
Sakshi Yadav 3 years, 11 months ago
Harsh Mishra 3 years, 11 months ago
Posted by Khushi Rawat 3 years, 11 months ago
- 0 answers
Posted by Ritika Thakur 3 years, 11 months ago
- 1 answers
Posted by Gajendra Singh 2 years, 10 months ago
- 2 answers
Gaurav Seth 3 years, 11 months ago
Consider the following table named “GARMENT”. Write command of SQL for (i) to (iv) and output for (v) to (vii).
Table: GARMENT
GCODE |
GNAME |
SIZE |
COLOUR |
PRICE |
111 |
T-shirt |
XL |
Red |
1400.00 |
(i) To display names of those garments that are available in ‘XL’ size. (1)
(ii) To display codes and names of those garments that have their names starting with ’Ladies’. (1)
(iii) To display garment names, codes and prices of those garments that have price in the range 1000.00 to 1500.00 (both 1000.00 and 1500.00 included). (1)
(iv) To change the color of garments with code as 116 to “Orange”. (1)
(v) SELECT COUNT (DISTINCT (SIZE)) FROM GARMENT; (1)
(vi) SELECT AVG (PRICE) FROM GARMENT; (1)
(vii) SELECT NAME FROM GARMENT (1)
(c) What is the degree and cardinally of ‘Garment’ table? (1)
6. (a) Write MySql command to create the table DEPARTMENT with given constraints (2)
TABLE: DEPARTMENT
COLUM_NAME | DATATYPE(SIZE) | CONSTRAINT |
Department ID DepName Manager ID Location |
Int(4) varchar(50) char (40) varchar (30) |
Primary Key Not Null |
(b) In a Database, there are two tables given below:
Table: EMPLOYEE
EMPLOYEEID | NAME | SALES | OBID |
E1 | SAMIT SINHA | 1100000 | 102 |
E2 | IJAY SINGH TOMAR | 1300000 | 101 |
E3 | JAY RAJPAL | 1400000 | 103 |
E4 | OHIT RAMNANI | 1250000 | 102 |
E5 | SHAILJA SINGH | 1450000 | 103 |
Table: JOB
JOBID | JOB TITLE | SALARY |
101 102 103 104 105 106 |
President Vice President Administration Assistant Accounting Manager Accountant Sales Manager |
200000 125000 80000 70000 65000 80000 |
Posted by Haneen Mohammed 3 years, 11 months ago
- 1 answers
Gaurav Seth 3 years, 11 months ago
C program to find roots of a quadratic equation: Coefficients are assumed to be integers, but roots may or may not be real.
For a quadratic equation ax2+ bx + c = 0 (a≠0), discriminant (b2-4ac) decides the nature of roots. If it's less than zero, the roots are imaginary, or if it's greater than zero, roots are real. If it's zero, the roots are equal.
For a quadratic equation sum of its roots = -b/a and product of its roots = c/a. Let's write the program now.
Roots of a Quadratic equation in C
#include <stdio.h>
#include <math.h>
int main()
{
int a, b, c, d;
double root1, root2;
printf("Enter a, b and c where a*x*x + b*x + c = 0\n");
scanf("%d%d%d", &a, &b, &c);
d = b*b - 4*a*c;
if (d < 0) { // complex roots, i is for iota (√-1, square root of -1)
printf("First root = %.2lf + i%.2lf\n", -b/(double)(2*a), sqrt(-d)/(2*a));
printf("Second root = %.2lf - i%.2lf\n", -b/(double)(2*a), sqrt(-d)/(2*a));
}
else { // real roots
root1 = (-b + sqrt(d))/(2*a);
root2 = (-b - sqrt(d))/(2*a);
printf("First root = %.2lf\n", root1);
printf("Second root = %.2lf\n", root2);
}
return 0;
}
Output of program:
Posted by Jai Karnani 3 years, 11 months ago
- 0 answers
myCBSEguide
Trusted by 1 Crore+ Students
Test Generator
Create papers online. It's FREE.
CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
Badboy Gaming 3 years, 10 months ago
3Thank You