## Tuesday 6 February 2024

### 4. Write a program in Python to Input three numbers and display the largest number.

a=int(input("Enter First Number: "))

b=int(input("Enter Second Number: "))

c=int(input("Enter Third Number: "))

if a>=b and a>=c:

print(a," is largest number")

elif b>=a and b>=c:

print(b," is largest number")

else:

print(c," is largest number")

Output:

Enter First Number: 6

Enter Second Number: 7

Enter Third Number: 8

8  is largest number

Enter First Number: 8

Enter Second Number: 7

Enter Third Number: 4

8  is largest number

Enter First Number: 5

Enter Second Number: 9

Enter Third Number: 7

9  is largest number

Enter First Number: 7

Enter Second Number: 7

Enter Third Number: 7

7  is largest number

### 3. Write a program in Python to Input two numbers and display the smaller number.

a=int(input("Enter First Number: "))

b=int(input("Enter Second Number: "))

if a<b:

print(a," is smaller than ",b)

elif b<a:

print(b,"is smaller than ",a)

else:

print("Both numbers are equal")

Output:

Enter First Number: 5

Enter Second Number: 3

3  is smaller than  5

Enter First Number: 6

Enter Second Number: 9

6 is smaller than  9

Enter First Number: 5

Enter Second Number: 5

Both numbers are equal

### 2. Write a program in Python to Input two numbers and display the larger number.

a=int(input("Enter First Number: "))

b=int(input("Enter Second Number: "))

if a>b:

print(a," is greater than ",b)

elif b>a:

print(b,"is greater than ",a)

else:

print("Both numbers are equal")

Output:

Enter First Number: 5

Enter Second Number: 3

5  is greater than  3

Enter First Number: 6

Enter Second Number: 9

9 is greater than  6

Enter First Number: 5

Enter Second Number: 5

Both numbers are equal

### 1. Write a program in Python to Input a welcome message and display it.

msg=input("Enter a message: ")

Output:

Enter a message: Python

## HTML Phrase tag

### Abbreviation tag : <abbr>

1. <p>An <abbr title = "Hypertext Markup language">HTML </abbr>language is used to create web pages. </p>

Acronym tag: <acronym> (not supported in HTML5)

### Marked tag: <mark>

The content written between <mark> and </mark> tag will show as yellow mark on browser. This tag is used to highlight a particular text.

Strong tag: <strong>

Emphasized tag : <em>

### Definition tag: <dfn>

When you use the <dfn> and </dfn> tags, it allow to specify the keyword of the content.

1. <p><dfn>HTML </dfn> is a markup language. </p>

### Quoting tag: <blockquote>

The HTML <blockquote> element shows that the enclosed content is quoted from another source. The Source URL can be given using the cite attribute, and text representation of source can display using <cite> ..... </cite>element.

1. <blockquote cite="https://www.keepinspiring.me/famous-quotes/"><p>?The first step toward success is taken when you refuse to be a captive of the environment in which you first find yourself.?</p></blockquote>
2.  <cite>-Mark Caine</cite>

### Short quote tag : <q>

An HTML <q> ....... </q> element defines a short quotation. If you will put any content between <q> ....... </q>, then it will enclose the text in double quotes.

### Code tag: <code>

The HTML <code> </code> element is used to display the part of computer code. It will display the content in monospaced font.

1. <p>First Java program</p>
2.       <p><code>class Simple{ public static void main(String args[]){
3.        System.out.println("Hello Java"); }} </code>
4.      </p>

### Keyboard tag: <kbd>

In HTML the keyboard tag, <kbd>, indicates that a section of content is a user input from keyboard.

1. <p>Please press <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + t<kbd></kbd> to restore page on chrome.</p>

An HTML <address> tag defines the contact information about the author of the content. The content written between <address> and </address> tag, then it will be displayed in italic font.

## HTML Formatting Tags

1. Bold

2. Strong

3. Italic

4. Emphasis

5. Mark - If you want to mark or highlight a text

5. Underline

6. Strike

7. del

8. insert

9. Superscript

10. Subscript

11. Big

12. Small

13. Monospaced Font

If you want that each letter has the same width then you should write the content within <tt>.............</tt> element.

Note: We know that most of the fonts are known as variable-width fonts because different letters have different width. (for example: 'w' is wider than 'i'). Monospaced Font provides similar space among every letter.

## Saturday 4 December 2021

### Agents in Artificial Intelligence

1.     What is the function of an AI “Agent”?

A).   Mapping of goal sequence to an action

B).   Work without the direct interference of the people

C).   Mapping of precept sequence to an action

D).   Mapping of environment sequence to an action

2.     Which of the following is not a type of AI agent?

A).   Learning agent

B).   Goal-based agent

C).   Simple reflex agent

D).   Unity-based agent

3.     Which of the following is not the commonly used programming language for AI?

A).   Perl

B).   Java

C).   PROLOG

D).   LISP

4.     What is the name of the AI system developed by Daniel Bobrow?

A).   program known as BACON

B).   system known as STUDENT

C).   program known as SHRDLU

D).   system known as SIMD

5.     What is the function of the system Student?

A).   program that can read algebra word problems only

B).   system which can solve algebra word problems but not read

C).   system which can read and solve algebra word problems

D).   None of the mentioned

6.     Which of the following is not an application of artificial intelligence?

A).   Face recognition system

B).   Chatbots

C).   LIDAR

D).   DBMS

7.     Which of the following machine requires input from the humans but can interpret the outputs themselves?

A).   Actuators

B).   Sensor

C).   Agents

D).   AI system

8.     _________ number of informed search method are there in AI.

A).   4

B).   3

C).   2

D).   1

9.     The total number of proposition symbols in AI are ________

A).   3 proposition symbols

B).   1 proposition symbols

C).   2 proposition symbols

D).   No proposition symbols

10.  Which of the following can improve the performance of an AI agent?

A).   Perceiving

B).   Learning

C).   Observing

D).   All of the above

11.  The composition for agents are _______

A).   Program only

B).   Architecture only

C).   Both Program and Architecture

D).   None of the mentioned

12.  The total number of logical symbols in AI are ____________

A).   There are 3 logical symbols

B).   There are 5 logical symbols

C).   Number of logical symbols are based on the input

D).   Logical symbols are not used

13.  The total number of recognition in artificial intelligence are _______________

A).   3

B).   4

C).   2

D).   1

14.  On which Artificial Neural Network is based on which type of approach?

A).   Cognitive approach

B).   Applied approach

C).   Weak approach

D).   Strong approach

15.  Which of the following are the approaches to Artificial Intelligence?

A).   Applied approach

B).   Strong approach

C).   Weak approach

D).   All of the mentioned

16.  Face Recognition system is based on which type of approach?

A).   Weak approach

B).   Applied approach

C).   Cognitive approach

D).   Strong approach

17.  Which of the following is an advantage of artificial intelligence?

A).   Reduces the time taken to solve the problem

B).   Helps in providing security

C).   Have the ability to think hence makes the work easier

D).   All of the above

18.  On which of the following approach completely automated chess engine (Learn from previous games) is based?

A).   Cognitive approach

B).   Applied approach

C).   Weak approach

D).   Strong approach

19.  On which of the following approach A basic line following robot is based?

A).   Applied approach

B).   Weak approach

C).   Strong approach

D).   Cognitive approach

20.  Which of the following is an example of artificial intelligent agent/agents?

A).   Autonomous Spacecraft

B).   Human

C).   Robot

D).   All of the mentioned

21.   The action of task environment is ____________

A).   Solution

B).   Observation

C).   Problem

D).   Agent

## Friday 3 December 2021

### Introduction to AI

1.      Which of the following is the branch of AI?

A).    Machine Learning

B).    Cyber forensics

C).    Full-Stack Developer

D).   Network Design

2.      Based on which parameter AI is categorized?

A).    Based on functionally only

B).    Based on capabilities only

C).    Based on capabilities and functionally

D).   It is not categorized

3.       Which of the following is a component of AI?

A).    Learning

B).    Training

C).    Designing

D).   Puzzling

4.       _____ is the goal of AI.

A).    To solve artificial problems

B).    To extract scientific causes

C).    To explain various sorts of intelligence

D).   To solve real-world problems

5.       Which of the following is an application of AI?

A).    It helps to exploit vulnerabilities to secure the firm

B).    Language understanding and problem-solving (Text analytics and NLP)

C).    Easy to create a website

D).   It helps to deploy applications on the cloud