Practical Questions With Answer
Practical Questions With Answer
Q.2. Open MySQL workbench, create a new SQL tab, and do the following actions. Or open the
website https://onecompiler.com/mysql/
A. Use a database named “db_exam”.
B. Create a new table with your name having columns “cl_id”, “cl_name”, “cl_address”.
C. Insert 3 rows with values and show the table contents.
D. Delete the first row and sow the table contents.
Ans:
use db_exam;
Ans:
#include <iostream>
using namespace std;
int main() {
int first_number, second_number, sum;
cout << "Enter First integer: ";
cin >> first_number;
cout << "Enter Second integer: ";
cin >> second_number;
return 0;
}
Q.4. Do the following actions on the computer.
A. Open the command prompt and find the computer's IP address, subnet mask, and
gateway address using a command.
B. Go to network settings and give the manual IP address, subnet mask, and gateway
address that was obtained from the command prompt.
C. Go to the command prompt again and check the internet connection by pinging
google.com using the command prompt.
D. Now, again go to network settings and set the IP address to automatic.
Q.5. Do the following actions on the computer.
A. Go to the folder you have created in Q.1.
B. Create the sample webpage (using HTML, CSS, and JavaScript) having a form where the
user can add two numbers in two different input fields, when the user clicks on the “Add”
button it can display the sum of the number entered.
-The End-