Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

SANJIVANI COLLEGE OF ENGINEERING

(An Autonomous Institution)


(Approved by AICTE, New Delhi, Accredited by NBA, Accredited ‘A’ Grade by NAAC & Affiliated to
Savithribai Phule University)

Kopargaon - 423 603, Maharashtra.


ES1004 - IT For Engineers
Question Bank

Q.No BTL CO
Unit-1
1 How you can insert a picture in your word document? Under CO1
standing
Answer
1. Bring the cursor where you want to insert the image
2. Under INSERT tab, click the picture button.
3. Insert dialog box opens
4. Type a phrase that describes the image you want in the drive.
5. Click on the image you want to use to select it
6. Click the Insert button to insert the image
2 How you can create a custom watermark? Under CO1
Answer standing
To create your own Watermark,
1. Go to design tab in the Page Background group
2. click Watermark and select Custom Watermark.
3. Select the Picture Watermark or text watermark option and make changes
accordingly.
3 How you can create the table in Word document? Under CO1
Answer standing

1. Go to Insert Tab
2. Place the cursor where you want to insert the table of contents.
3. Choose no of rows and columns from the Insert menu
4. Select Table of Contents tab, then and select the style you want.
5. Choose OK to insert the table of contents into your document.
4 Electrical engineering is an engineering discipline concerned with the study, design, Apply CO1
and application of equipment, devices, and systems which use electricity,
electronics, and electromagnetism. It emerged as an identifiable occupation in the
latter half of the 19th century after commercialization of the electric telegraph, the
telephone, and electrical power generation, distribution, and use.

1. How did you align the above paragraph with the left margin?
2. How did you align the above paragraph with the right margin?
3. How did you distribute your text evenly between the margins?
4. How did you center your content of the page?

Answer
1. Ctrl+ L
2. Ctrl+R
3. Ctrl +J
4. Ctrl +E
5 (i). Electrical engineering is an engineering discipline concerned with the study, Apply CO1
design, and application of equipment, devices, and systems which use electricity,
electronics, and electromagnetism.
(ii). It emerged as an identifiable occupation in the latter half of the 19th century after
commercialization of the electric telegraph, the telephone, and electrical power
generation, distribution, and use.
Transmission = PGeneration + Ploss (1)
Where Pgeneration = T – L
2 2

1. How did you mark your text bold and italic in above point (i)?
2. How did you underline the text in above point (ii)?
3. How did you create the equation (1) & (2) using subscript and superscript
function?
Answer
1. Ctrl+ B
2. Ctrl+I
3. Ctrl +U
4. Ctrl += & Ctr+Shift++
6 Which shortcut key is used to start and exit from the slideshow? Remember CO1
Answer
Press the F5 key to start the slideshow of a PowerPoint presentation.
To exit from the slideshow, use Esc (Escape Key).
7 How to add a motion path in the ppt? Remember CO1

Answer
(i). Select the text or image on which you want to apply the motion path.
(ii). Go to the Animation tab in menu bar.
(iii). Click on the Add Animation with your object.
(iv). Scroll down and click on the more motion paths.
(v). Choose one of them and click on OK to apply it with your selected object.
8 How could you add Header/Footer in PowerPoint? Remember CO1

Answer

(i). Navigate to the Insert


(ii). Inside the Text section, click on the Header & Footer. A popup window
will open.
(iii). Here, you can add the footer on all slides or a single slide.
(iv). Mark the Footer checkbox and add the text you would like to display inside
the footer.
(v). In the end, click on Apply All
(vi). Footer will be added to all slides in the presentation.
9 Mention the shortcut keys used for the accessing directly to a tab on the ribbon, Remember CO1
press the following access keys.
(i) Open the Draw tab and access the drawing tools.
(ii) Open the Design tab and apply themes and customize slides.
(iii) Open the Transitions tab and add transitions between slides.
(iv) Open the Animations tab and add animations to slides.
Additional tabs might appear depending on your selection in the presentation.

Answer
(i) Alt+J, I
(ii) Alt+G
(iii) Alt+K
(iv) Alt+A
10 What are the shortcut keys used to move between the panes for the following Remember CO1
options?
(i) Cycle clockwise through panes in the Normal view.
(ii) Cycle counterclockwise through panes in the Normal view
(iii) Switch between the Thumbnail pane and the Outline View pane

Answer
(i) F6
(ii) Shift+F6
(iii) Ctrl+Shift+Tab
11 Specify the order of operations used for evaluating formulas in Excel. Remember CO1

Answer
The order of operations in Microsoft Excel is same as in standard mathematics. It’s
defined by the term “PEMDAS” or “BEDMAS”.

Parentheses or Brackets
Exponent
Multiplication
Division
Addition
Subtraction
12 How did you calculate the number of days, months and year in excel for the Apply CO1
following dates?
A B
1 My date of birth 9-Oct-2010
2 Todays Date 11-Oct-2022

Answer
 DATEDIF(B1,B2, "D")
 DATEDIF(B1,B2, "M")
 DATEDIF(B1,B2, "Y")
13 Apply the correct IF function to check whether a certain condition (or conditions) is Apply CO1
met.
A B
1 15
2 Result

If the condition is met, the function will return a predefined result “True”
If the condition is not met, the function will return a different predefined result
“false”
(i) B1 > 18
(ii) B1 <18
Write the IF function for the above two conditions.

Answer
IF(B1>18,"TRUE","FALSE")
IF(B1<18,"TRUE","FALSE")
14 Select the following columns in the excel. Apply CO1

A
1 smaRt
2 BeautiFul
3 Dashing
4 GorgeOus
5 PerfEct
6 ExcellEnt
7 AwesOme
Apply the text function to lower text, UPPER text, Proper text.

Answer
LOWER(TEXT) = lower(a1)
UPPER(TEXT) = upper(a1)
PROPER(TEXT)= proper(a1)
Drag the column accordingly

15 Select the following columns in the excel. Apply CO1

A
1 smaRt
2 BeautiFul
3 Dashing
4 GorgeOus
5 PerfEct
6 ExcellEnt
7 AwesOme

Apply the text functions in above column to select the left number characters=2,
right number characters = 3, middle number characters (3,2)

Answer
LEFT(TEXT, NUM_CHARS) = left(a1,2)
RIGHT(TEXT,NUM_CHARS) = right(a1,3)
MID(TEXT, STARTNUM, NUM_CHAR) = mid(a1,3,2)

Unit-2
16 Describe HTML layout structure with sample code. Remember CO2
Every webpage has the layout structure of
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>

</body>
</html>
17 How many types of heading does an HTML contain? Remember CO2
The HTML contains six types of headings which are defined with the <h1> to <h6>
tags. Each type of heading tag displays different text size from another. So, <h1> is
the largest heading tag and <h6> is the smallest one. For example:

<h1>Heading no. 1</h1>


<h2>Heading no. 2</h2>
<h3>Heading no. 3</h3>
<h4>Heading no. 4</h4>
<h5>Heading no. 5</h5>
<h6>Heading no. 6</h6>
18 How to control the line breaks and spaces with the <pre> tag? Explain with Apply CO2
examples

<!DOCTYPE html>
<html>
<body>

<p>The pre tag preserves both spaces and line breaks:</p>

<pre>
I love myself
I am masterpiece
</pre>

</body>
</html>
19 <p> My Bonnie lies over the ocean. My Bonnie lies over the sea.My Bonnie lies Apply CO2
over the ocean.</p>

Consider the above paragraph lines and apply the proper style formatting tag to set
the font size to 100 px, font family to verdana, text alignment to center, text color to
blue.

Answer

<p style= "font-size:300%; font-family:verdana;text-align:center;color:blue;" > My


Bonnie lies over the ocean. My Bonnie lies over the sea.My Bonnie lies over the
ocean.</p>

20 Create the navigation tab for the given items using HTML as follows: Create CO2
About, Advantages and Disadvantages, Types of Cyber security & Quiz and create
the href attribute for all list.

Answer
<li><a href="#about">About</a></li>
<li><a href="#Adv">Advantages and Disadvantages</a></li>
<li><a href="#Types">Types of Cyber Security</a></li>
<li><a href="#quiz">Quiz</a></li>
21 1. <p> Engineering is a discipline dedicated to problem solving. </p> Apply CO2
2. <p> Our built environment and infrastructure, the devices we use to
communicate, the processes that manufacture our medicines, have all been
designed, assembled or managed by an engineer.</p>
3. <p> Find solutions to some of the world's most complex challenges.</p>
4. <p> Find solutions to some of the world's most complex challenges problems
</p>

Apply the correct formatting tag to above paragraph


1. Apply proper tag to mark the text to bold given in point 1
2. Apply proper tag to mark the text to italic given in point 2
3. Apply proper tag to highlight the text given in point 3.
4. Apply proper tag to strikeout the given text given in point 4.

Answer
<p><b>This text is bold.</b></p>
<p><i>This text is italic.</i></p>
<p> <mark> Find solutions to some of the world's most complex challenges
</mark>.</p>
<p>Find solutions to some of the world's most complex <del>challenges</del>
problems</p>

22 Explain the external CSS with example coding using href attribute. Under CO2
standing
Answer

External
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="mystyle.css">
</head>
<body>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

Mystyle.css
body {
background-color: lightblue;
}

h1 {
color: navy;
margin-left: 20px;
}
23 Explain the internal CSS with example coding. Under CO2
standing
Answer

<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: linen;
}

h1 {
color: left;
margin-left: 40px;
}
</style>
</head>
<body>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>
24 Apply the CSS Padding properties to generate space around the text “Hello Word!” Create CO2
to obtain the below figure 1.

Figure1:

Answer
<style>
div {
border: 1px solid black;
background-color: Yellow;
padding-top: 50px;
padding-right: 30px;
padding-bottom: 50px;
padding-left: 80px;
}
</style>

25 Create the box model shown in Fig.2 using CSS styling Create CO2
Answer

<html>
<head>
<style>
div {
background-color: white;
width: 300px;
border: 15px solid green;
padding: 20px;
margin: 0px;
}
</style>
</head>
<body>

<h2>Creating the Box Model</h2>


<p> Engineering is a discipline dedicated to problem solving. </p>

<div> Our built environment and infrastructure, the devices we use to


communicate, the processes that manufacture our medicines, have all been
designed, assembled or managed by an engineer <div>

</body>
</html>

26 Create the given table and Set the border to "2px solid green" for table, th and td Create CO2
elements
First name Lastname
Peter Griffin
Lois Griffin

Answer
<style>
table, th, td
{
border: 2px solid green;
}
</style>

<body>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>Peter</td>
<td>Griffin</td>
</tr>
<tr>
<td>Lois</td>
<td>Griffin</td>
</tr>
</table>
</body>

27 (i)Create a variable called carName, assign the value Volvo to it. Create CO2
(ii)
Create a variable called x, assign the value 50 to it.
(iii)
Display the sum of 5 + 10, using two variables: x and y.
(iv)
Create a variable called z, assign x + y to it, and display the result in an
alert box.
Apply the correct JS code for above mentioned functions.

Answer
(i) var carName = " Volvo ";
(ii) var x = 50;
(iii) var x = 5;
var y = 10;
document.getElementById("demo").innerHTML = x + y;
(iv) var x = 5;
var y = 10;
var z = x + y;
alert (z);

28 (i) Use comments to describe the correct data type of the following variables: Apply CO2
let length = 16;
let lastName = "Johnson";
(ii) Divide 10 by 2, and alert the result
(iii) Create a function called "myFunction" for the below statement
__________ ___________ ___
alert("Hello World!");
____
(iv) Make the function return "Hello"in the given statement
function myFunction() {
______ ________;
}
document.getElementById("demo").innerHTML = ___________;

Apply the correct JS code for above mentioned functions.

Answer
(i) let length = 16; \\numbers
let lastName = "Johnson"; \\strings
(ii) alert(10 / 2);
(iii) function myFunction() {
alert("Hello World!");
}
(iv) function myFunction() {
return " Hello ";
}
document.getElementById("demo").innerHTML = myFunction();

29 Apply the correct js code to Apply CO2


(i) Alert "John" by extracting information from the person object
const person = {
firstName: "John",
lastName: "Doe"
};
alert(______________);

(ii) Add the following js property and value to the person object: country: India.
const person = {
firstName: "John",
lastName: "Peter",
_________: _________
};

(iii) Create an js object called person with name = John, age = 50.
Then, access the object to alert("John is 50").
const person = {
Name : _____, age : ________
};
alert( ________ + " is " + ____________ );

Answer
(i) person.firstName
(ii) country: "India"
(iii) const person = {
Name : "John", age : 50
};
alert( person.name + " is " + person.age );
30 Apply the proper JS code to Apply CO2

(i) Get the value "Volvo" from the cars array.


const cars = ["Saab", "Volvo", "BMW"];
let x = ________ ;

(ii) Change the first item of cars to "Ford".


const cars = ["Volvo", "Jeep", "Mercedes"];
___________ = "Ford";

(iii)Alert the number of items in an array, using the correct Array property.
const cars = ["Volvo", "Jeep", "Mercedes"];
alert( ___________ );
Answer

(i) let x = cars[1] ;


(ii) cars[0] = "Ford";
(iii) alert( cars.length );
Unit-3
31 Create one variable named x, and one variable named y, then use the PHP echo Create CO3
statement to output the sum of x and y.

Answer
<?php
$X=5;
$Y=5;
echo $X+$Y;
?>
32 What is the correct and the most two common way to start and finish a PHP block Under CO3
of code? stand
Answer
<?php [ --- PHP code---- ] ?> and <? [--- PHP code ---] ?>
33 How can I display text with a PHP script? Under CO3
Answer standing

<!--?php
echo "Method 1";
print "Method 2";
?>
34 How are comments used in PHP? Explain with Examples. Under CO3
Answer standing

<?php
# This is a comment
echo "Single-line comment";
?>
Multi-line comments can be denoted using ‘/* */’ in PHP.

<?php
/*
This is
a
Multi-line
Comment
In PHP;
*/
echo "Multi-line comment";
?>
35 Consider the string “ Hello World!” Apply CO3
Apply the correct PHP code to
(i) count the above string
(ii) Count the no of words in given string
(iii) Reverse the string
(iv) Replace the world with Engineers

Answer
echo strlen("Hello World!");
echo str_word_count("Hello world!");
echo strrev("Hello world!");
echo str_replace("world", "Engineers", "Hello world!");
36 Create the correct PHP if-else loop statement for the following condition, if the Create CO3
current time is greater than 20hrs to echo “ have a good night” or “have a good day”

Answer
<?php
$t = date("H");

if ($t > "20") {


echo "Have a good night";
} else {
echo "Have a good day";
}
?>
37 Create a PHP switch statement that will output "Hello" if $color is "red", and Create CO3
"welcome" if $color is "green".

Answer
switch
($color) {
case "red":
echo "Hello";
break;

case "green":
echo "Welcome";
break;
}
38 The items are “tomato”, “potato” and “chilli” Create CO3
1. Create an Array named as vegetables in PHP for the above items
2. Echo the count of arrays
3. Echo the output of second item in a created array.
4. Sort Array in Ascending Order

Answer

1. $vegetables = array("tomato", "potato", "chilli");


2. echo count($vegetables);
3. echo $vegetables[1];
4. sort($vegetables);
;
39 Write the SQL code to create the table named 'employee' with following Create CO3

EmpID EmpFname EmpLname Address City

Answer

CREATE TABLE employee (


EmpID int,
EmpFname varchar(255),
EmpLname varchar(255),
Address varchar(255),
City varchar(255)
);
40 1. Apply the SQL query to create the table named “persons” with ID, LastName, Apply CO3
FirstName, City. and apply the constraints to all column to NOT accept NULL
values.
2. Apply the SQL DEFAULT value for the "City" column=pune

Answer
1. CREATE TABLE Persons (
ID int NOT NULL,
LastName varchar(255) NOT NULL,
FirstName varchar(255) NOT NULL,
City varchar(255) NOT NULL
);
2. CREATE TABLE Persons (
ID int NOT NULL,
LastName varchar(255) NOT NULL,
FirstName varchar(255) NOT NULL,
City varchar(255) DEFAULT 'PUNE'
);

41 EmployeePosition Table: Apply CO3


EmpID EmpPosition DateOfJoining Salary
1 Manager 01/05/2022 35000
2 Executive 02/05/2022 75000
3 Manager 01/05/2022 90000
4 Lead 02/05/2022 50000
5 Executive 01/05/2022 85000

1. Write SQL query to find all the employees whose salary is between 50000 to
100000.
2. Write a query to fetch top N records based on salary
3. Write the SQL code to use the MIN function to select the record with the
smallest value of the salary column.
Answer
1. SELECT * FROM EmployeePosition WHERE Salary BETWEEN '50000'
AND '100000'

2. SELECT TOP N * FROM EmployeePosition ORDER BY Salary DESC;

3. SELECT MIN(Salary) FROM EmployeePosition;

42 Consider the two tables as shown below: Create CO3


Orders
O_ID ORDER_NO C_ID
1 2253 3
2 3325 3
3 4521 2
4 8532 1

Customers
C_ID NAME ADDRESS
1 RAMESH DELHI
2 SURESH NOIDA
3 DHARMESH GURGAON
Apply the SQL code to create ‘orders’ table with mentioned column assigned to
NOT NULL constraints and Select Primary key as O_ID and Foreign key as C_ID.
43 EmployeeInfo Table: Create CO3
EmpID EmpFname EmpLname Department Address Gender
1 Sanjay Mehra HR Hyderabad M
2 Ananya Mishra Admin Delhi F
3 Rohan Diwan Account Mumbai M

1. Apply the correct SQL to Update the row 3 by following data into table :
Sonia Kulkarni HR Hyderabad F

2. Apply the correct SQL to delete the row1.

3. Apply the correct SQL code to insert the values into EmployeeInfo table
('Ankit', ‘Kapoor', 'Admin', 'Delhi', 'M');
Answer
1. UPDATE EmployeeInfo
SET EmpFname= ‘sonia’ , EmpLname= ‘Kulkarni’ , Department=
‘HR’, Address = ‘Hyderabad’ , Gender= ‘F’
WHERE EmpID = 3;

2. DELETE FROM Customers WHERE CustomerName='Sanjay'; (Apply


any column condition)

3. INSERT INTO EmployeeInfo (EmpFname, EmpLname, Department,


Address, Gender)
VALUES ('Ankit', ‘Kapoor', 'Admin', 'Delhi', 'M');

44 Create
ProductID ProductName Supplier ID Quantity Price
1 Chais 1 10 18
2 Chang 1 24 19
3 Aniseed Syrup 1 12 10
4 Cajun Seasoning 2 48 22
5 Gumbo Mix 2 36 21.35

1. Write the SQL statement to count the productID and find the output of the
statement return with the value of__.
2. Apply the correct SQL statement to get the average in price column and find
the output of the statement return with the value of__.
3. Write the SQL statement to sum the Quantity column and and find the
output of the statement return with the value of__.

Answer
SELECT COUNT(ProductID) FROM Products; (Count:5)
SELECT AVG(Price) FROM Products; (Avg:18.07)
SELECT SUM(Quantity) FROM OrderDetails; (Sum: 130)
45 EmployeeInfo Table: Apply CO3
EmpID EmpFname EmpLname Department Address Gender
1 Sanjay Mehra HR Hyderabad M
2 Ananya Mishra Admin Delhi F
3 Rohan Diwan Account Mumbai M
4 Sonia Kulkarni HR Hyderabad F
5 Ankit Kapoor Admin Delhi M

1. Write a SQL query to fetch the number of employees working in the


department ‘HR’.
2. Write a SQL query to find the names of employees that begin with ‘S’
3. Write a SQL query to fetch all the records from the EmployeeInfo table
ordered by EmpLname in descending order and Department in the ascending
order.
Answer
1. SELECT COUNT(*) FROM EmployeeInfo WHERE Department = 'HR';
2. SELECT * FROM EmployeeInfo WHERE EmpFname LIKE 'S%';
3. SELECT * FROM EmployeeInfo ORDER BY EmpFname desc,
Department asc;

You might also like