Professional Documents
Culture Documents
Final QB
Final QB
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
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
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:
<!DOCTYPE html>
<html>
<body>
<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
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>
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>
</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 = ___________;
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();
(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
(iii)Alert the number of items in an array, using the correct Array property.
const cars = ["Volvo", "Jeep", "Mercedes"];
alert( ___________ );
Answer
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");
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
Answer
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'
);
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'
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
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;
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