Answer:
The answer to this question is option 1,2 and 4.
Explanation:
Some html elements does not contain anything or having no content are called empty html elements.for ex:- <br>,<hr> etc.
HTML elements are of two types block and inline.block elements starts with new line for ex:-div,body etc.Inline elements does not starts with new line.for ex:-<style>,<meta>,<head>etc.
Html elements also contains attributes that modify the element for ex:-
<body style="background-color:blue;">
where style is an attribute.
Answer:
CREATE FUNCTION exam_eligible_students
RETURN NUMBER AS
num_students NUMBER(15);
BEGIN
SELECT COUNT(STUDENT_ID)
INTO num_students
FROM STUDENT_ATTENDANCE
WHERE ELIGIBILITY_FOR_EXAMS = 'Y';
RETURN (num_students);
END;
Explanation:
exam_eligible_students is a made of name for the FUNCTION to be called.
num_students is a made up name for the RETURN to be called. The RETURN name is referenced in the INTO statement and as the name of the the return in the RETURN line in ().
I pretty sure it's a form but don't count me on it.
Answer:
#include <bits/stdc++.h>
using namespace std;
int main() {
int A[3][3],B[3][3],res[3][3],i,j;
srand(time(0));//for seed.
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
int val=rand()%100+1;//generating random values in range 1 to 100.
int val2=rand()%100+1;
A[i][j]=val;
B[i][j]=val2;
}
cout<<endl;
}
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
res[i][j]=0.5*A[i][j]+3*B[i][j];//storing the result in matrix res.
}
}
cout<<"Matrix A is"<<endl;
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
cout<<A[i][j]<<" ";//printing matrix A..
}
cout<<endl;
}
cout<<"Matrix B is"<<endl;
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
cout<<B[i][j]<<" ";//printing matrix B..
}
cout<<endl;
}
cout<<"The result is"<<endl;
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
cout<<res[i][j]<<" ";//printing the result..
}
cout<<endl;
}
return 0;
}
Output:-
Matrix A is
13 95 83
88 7 14
24 22 100
Matrix B is
11 13 95
48 35 20
68 100 18
The result is
39.5 86.5 326.5
188 108.5 67
216 311 104
Explanation:
I have created 2 matrices A and B and storing random numbers int the matrices A and B.Then after that storing the result in res matrix of type double to store decimal values also.Then printing the res matrix.