0% found this document useful (0 votes)
209 views3 pages

Practical Questions With Answer

Uploaded by

Shuseel Baral
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
209 views3 pages

Practical Questions With Answer

Uploaded by

Shuseel Baral
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Siranchok Rural Municipality

Village Executive Office


Choprak, Gorkha
Gandaki Province, Nepal

Practical exam questions for Information Technology Officer

Q.1. Do the following actions on the computer.


A. Open the command prompt, go to drive D:
B. Create the directory with your name and list that directory.
C. Enter the directory you have created and create a .txt file with your name.
D. Type your name within the file you have created and save it.
Ans:
>D: enter
>mkdir Shuseel enter
>dir enter
>cd Shuseel enter
>copy con Shuseel.txt Type the text and press ctrl+Z
>type Shuseel.txt // to view the content

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;

CREATE TABLE shuseel(cl_id int, cl_name varchar(20), cl_address varchar(20));


INSERT INTO shuseel VALUES (1, 'Clark', 'pokhara');
INSERT INTO shuseel VALUES (2, 'Dave', 'kathmandu');
INSERT INTO shuseel VALUES (3, 'Ava', 'bbiratnagar');
SELECT * FROM Shuseel;
DELETE FROM shuseel WHERE id=’1’;
SELECT * FROM Shuseel;

Q.3. Open the website https://www.programiz.com/cpp-programming/online-compiler/ and


write a C++ program where the user can add two integers after that program displays the
sum of the number entered. The Output of the program will be as follows.
Enter the First integer: 99
Enter the Second integer: 99
The sum of the given numbers is: 99 + 99 = 198

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;

sum = first_number + second_number;


cout << "The sum of given numbers is: ";
cout << first_number << " + " << second_number << " = " << sum;

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-

You might also like