Sem 5 External
Sem 5 External
So 7
Seat No. 312
TTM (SLS) BARoDA UNVERSITY, VADODARA - Winter , 2023
SOCSET- B. Tech - Examination
Course Code :C2520C1 -Semester (Regular) V
Date: 30.11.2023
Course Name : Machine Day : Thursday
Learning
Time :10:00 am –01:00pm Total Marks 100
:
Instructions:
1
All questions are mandatory. There are no external options.
2. Make suitable assumptions, wherever necessary, and state
them cleay
3. Use of Non-Programmable Calculator is allowed/Not allowed.
4. Figures to the right indicate maximum
marks.
Page 1 of 4
<br>
Wnich of the followingevaluation metrics can not be applicd in case of logistic regression
output to compare with target?
(i) Accuracy (i)) Auc-roc (iii) Logloss (iv) Mean-squared error
14. Four marbles are contained in a jar. 3 red and 1 white. After each draw, two marbles are
pulled, with one being replaced. What is the probability of drawing the same color marble
twice?
(i) 1/2 (ii) 5/8 (iii) 1/3 (iv) 1/8
15. What is Decision Tree?
i) Structure in which internal node represents test on an attribute, each branch represents
outcome of test and each leaf node represents class label
i) Flow-Chart & Structure in which internal node represents test on an attribute, each
branch represents outcome of test and each leaf node represents class label
iii)) Flow-Chart
iv) None of the mentioned
16. Which of the following is an example of feature extraction?
() applying pca to project high dimensional data
(i)construction bag of words from an email
(iii)removing stop words
(iv)forward selection
17. For feature selection, both PCA and Lasso can be utilized. Which of the following
assertions is NOT correct?
() Lasso selects a subset (not necessarily a strict subset) of the original features
(ii) PCA and Lasso both allow you to specify how many features are chosen
(iii) PCA produces features that are linear combinations of the original features
(iv) PCA and Lasso are the same if you use the kernel trick
18. Real-Time decisions, Game Al, Learning Tasks, Skill Aquisition, and Robot Navigation
are applications of which of the folowing
i)Supervised Learning: Classification i)Reinforcement Learning
i)Unsupervised Learning: Clustering iv)Unsupervised Learning: Regression
19. The line described by the linear regression equation (OLS) attempts to
(i) Pass through as many points as possible
(ii) Pass through as few points as possible
(iii) Minimize the number of points it touches
(iv) Minimize the squared distance from the points
20. Assume you're working on a classification issue with a severely unbalanced class. In the
training data, the majority class is observed 99 percent of the tíme. After making
predictions using test data, your model has 99 percent accuracy. In this situation, which
of the following is true? (1). For unbalanced class issues, the accuracy metric is not a
good concept. (2). For unbalanced class issues, an accuracy metric is a good idea. (3).
Precision and recall metrics are useful for situations with unbalanced classes. (4).
Precision and recall metrics are ineffective for situations with an unbalanced class.
(i)
1
and 3 (iii) 2 and 3
(i) l and 4 (iv) 2 and 4
3 Define the following terms: (i) Variance (ii) Co Variance (iii) Joint Probability
(iv) Conditional Probability (v) likelihood probability
4
Explain the concept of clustering with a neat diagram
5 Compare and Contrast DBScan method andK Means Clustering.
6 Under matrix factorization method, explain SVD in brief.
X
2 9.8978
3 12.7586
4 16.3192
5 19.3129
6 21.1351
We want to learn a function f(x) of the form f(x)=ax + b, which is parametrized by (a,b).
Using squared error as the loss function, which of the following parameters
(4,3), (1,4), (4,1) or (3,4) would you use to model this function to get a solution with
minimum loss.
2. The sales of a company (in million dollars) for each year are shown in the table
below.
x (year) 2005 2006 2007 2008 2009
y (sales) 12 19 29 37 45
Note: For the matter of ease, you can map 2005 as 1, 2006 as 2 etc.
a) Find the least square regression line y =ax + b.
b) Use the least squares regression line as a model to estimate the sales
company in 2012. of the
3 Consider the following set of training examples:
Instance Classification A1 A2
1
2
3
4 F
5
6 T
Given the training data in above table, predict the class of the following new example
= , credit-rating-fair. For
using KNN for k=5, age<=30, income medium student-yes, ,
similarity measure use a simple match of attribute values Similarity (A,B)=
are either age,
4
(wW, * O(a; * b;)/4 is ifai equals bi and 0 otherwise. Ai and bi
1
Seat No.
3125072
ITM (SLS) BARODA UNIVERSITY, VADODARA
SOCSET- B. Tech - Semester - V (Regular) Examination – Winter, 2023
Course Code :C25 0C2 1
Date : 23.11.2023
Course Name :Theory of Computation Day : Thursday
- Total Marks : 100
Time :10:00 am 01:00pm
Instructions:
1. Allquestions are mandatory. There are no external options.
2. Make suitable assumptions, wherever necessary, and state them clearly.
3. Use of Non-Programmable Calculator is allowed/Not allowed.
4. Figures to the right indicate maximum marks.
(20)
Q:1 Answer the following questions.
1
Define Moore Machine
2.
Define Ambiguous Grammar
3 Define relation and list its properties.
4 Define Pumping Lemma for Regular Language.
5 How many strings are there in 3?
6. What is the difference between an empty string and an empty language?
7 Define language accepted by DFA.
8 Write Pigeon hole principles.
9 Explain the terminal and non-terminal symbols of a grammar.
sequence of 0's and 1's.
10. Write regular expression for the language having alternate
11. Give the formal definition of PDA
12. Regular languages are closed under
a) Union b)Concatenation c) Complement d) All of the above
13. Regular expression a/b denotes which of the following set?
a) {a} b) {€,a,b} c) {a,b} d) {ab}
14. What is the relation between NFA-accepted languages and DFA accepted
languages?
d)
a) > b) < c)=
15. Finite state machine is not able to recognize Palindromes because:
a) Finite aptomata cannot deterministically find the midpoint
b) Finite automata cannot remember arbitrarily large
amount of data
second half
c) Even if the mid-point is known, it cannot find whether the
matches the first
d) All of the mentioned
16. The language {a"b'cim|m,n>=1} is
a) Regular
c) Context free but not regular
b) Context sensitive but not context free d) Type-0 but
not context sensitive
an NFA from a regular expression?
17. Which of the following do we use to form
a) Subset Construction Method b) Power Set Construction Method
Method d) Scott Construction Method
c) Thompson Construction
18. What is wrong in the given definition?
Def: ({q0, q1, q2), {0,1}, 8, q3, {q3})
a) The definition does not satisfy 5 Tuple definition of NFA
b) There are no transition definition
c) Initial and Final states do not belong to the Graph
samne
d) Initial and final states can't be
19 Which of ihe following statement is false?
a
a) Evcry regular language is also context free language
Page 1
of 3
<br>
q0
4 Construct a NFA to accept strings of a's and b's having substring aba.
5 Prove that the language 1"0" is not regular where n>0.
6 Build a DFA for the following language
Page 2 of 3
<br>
L{w|w is a binary siring that has even number of Is and odd number of Os}
Page 3 of 3
<br>
Seat No.312502
ITM (SLS) BARODA- UNIVERSITY, VADODARA
SOCSET- B. Tech - Semester V (Regular) Examination
,
Winter 2023
1 0C3 Date: 28.1 1.2023
Course Code :25 Day
:
Tuesday
Course Name
:
Mobile Application Development :
(20)
Q:1 Answer the Following Questions
1. Which permission is used to send SMS?
a. android.permission.SEND SMS b. android.permission. SENDSMS
c. android.permission.SMS d. android. permission.SMSSEND
can test their apps on...
2.
While developing Android applications, developers b. Physical Android phone
a. Emulator included in Android SDK
c. Third-party Emulators d. All three options will work
program that converts Java byte code into Dalvik byte code?
3. What is the name of the b. Dalvik Converter
a. Android Interpretive Compiler d. Mobile Interpretive Compiler
c. Dex compiler
is contained within the Layout xml file.
4. display looks like
a.Orientations and layouts that specify what thec. The strings used in the app
b. The permissions required by the
app
d. The code which is compiled to
run the app
5. Android shipped with SQLite database.
a. True b. False
6 Which one is not a nickname of a version of Android?
a. cupcake b.chocolate c. Honeycomb d.
Gingerbread
The XML file that contains all the
text that your application uses.
7. c. strings.xml d. string.java.
a. stack.Xml b. text.xml
-
8 Android is
b. a web browser
a. an operating system
d. None of the above
C. web server
In Android, mini activities
are also known as
9. c. d.
None of these
a. Fragments b. Adapter Activity
10. ADB stands for
a. Android debug bridge b. Android delete bridge
the above
c. Android destroy bridge d. None of
Android mainly developed?
is
11. For which of the following c. Laptops d. Mobile devices
b. Desktops systemn during
a. Servers
following is the first callback method that is invoked by the
12. Which of the
an activity life-cycle?
b. onCreate() method
a. onClick() method
d. onRestart() method
b. onStart() method
13. SDK Stands for c. System Development Kit
Software Development Kit d. Service Development Kit
b. System Design Kit is not used to set alarm?
14. Which of the following methods C. setExact) d. set)
b. setWindow)
a setAlarm)
15. Can we edit R.java?
b. True
False
Page 1
of 2
<br>
16 Which of the following virtual machine is used by the Android operating system?
a. JVM C. Dalvik virtual machine
b. Simple virtual machine d. None of the above
17. How can we stop the services in android?
By using the stop Self) and stop Service) method
b. By using the finish) method
C. By using system. Exit) method
d. None of the above
18 How can we kill an activity in android?
a Using finish) method c. Using finishActivity(int requestCode)
b. Both (a) and (b) d. Neither (a) nor (b)
19 Does android support other languages than java?
a, Yes b. No c. May be d. Can't say
20. NDK stands for -
a Native Developmnent Kit c. New Development kit
b. Native Design Kit d. None of the above
Page 2 of 2
<br>
Seat No.
ITM (SLS) -BARODA UNIVERSITY, VADODARA
– ,
sOCSET- B. Tech Semester- V (Regular) Examination Winter 2023
Course Code
:
C2510D1 Date: 25. 1 1.2023
Day : Saturday
Course Name
:
Principles of Artificial Intelligence
10:00 am pm Total Marks: 100
Time
:
-01:00
Instructions:
1. All questions are mandatory. There are no external options.
2. Make suitable assumptions, wherever necessary, and state them clearly.
3. Use of Non-Programmable Calculator is allowed.
4. Figures to the right indicate maximum marks.
(20)
Q:1 Answer the following Questions: among a large set of
1
Which Al problem involves finding the best possible solution
possible solutions?
A) Natural Language Understanding B) Planning and Decision Making
D) Inference and Reasoning
) Pattern Recognition a computer system to understand and 1
Page 1
of 3
<br>
A*
11. What is the primary role of a heuristic function in informed search algorithms like
A) To generate random states
B) To estimate the cost to reach the goal from a given state
C) To propagate constraints
D) To perform blind search
12. Bayes' Rule is used primarily for:
and new evidence
-A) Calculating the probability of events given prior knowledge
B) Constructing formal logic statements in First-Order Logic
C) Conducting forward chaining inference
D) Performing resolution in First-Order Logic
13. What is the primary goal of knowledge representation in artificial intelligence?
A) To store as much information as possible
B) To provide a formalism for expressing and reasoning about knowledge
C) To perform calculations quickly
D) To optimize computer memory usage
14. Which knowledge representation formalism is often used to model events and actions in 1
Al systems?
A) Predicate logic B) Frames
C) Semantic nets D) Description logics
15. Which knowledge representation approach uses a network of interconnected nodes to
represent concepts and their relationships?
A) Predicate logic B)Semantic nets
C) Conceptual dependency D) Description logics
16. In First-Order Logic, what does the term "syntax" refer to?
A) Themeaning
of logical symbols and connectives
B) The rules for forming valid statements
C) The interpretation of first-order predicates
D) The use of probabilities in reasoning
17. What is the fundamental unit of information in probability theory?
A) Hypothesis B) Proposition
C) Probability distribution D) Probability event
18. In Bayesian networks, what does a node represent?
A) A random variable B) A deterministic fact
C) A logical operator D) A logical proposition
19. What is "exact inference'" in the context of Bayesian networks?
A) Making decisions without considering probabilities
B) Calculating probabilities exactly using the full joint distribution
C) Estimating probabilities using approximations
D) Ignoring uncertainty ina model
20. What is the Mini-Max algorithm used for in game playing?
A) Maximizing the minimum possible gain B) Minimizing the
C) Maximizing the maximum possible gain D) Minimizing maximum possible gain
the minimum possible gain
Q:2 Attempt any Four out of Six: (20)
1 Describe the key challenges or problems that AI aims to solve.
Provide specific examples 5
for each problem.
2 Describe the role of heuristics in problem-solving. How can
well-designed heuristics 5
improve search efficiency?
3. Describe the key components of an ontology and their roles in
representing knowledge. 5
4
Compare and contrast the representation and reasoning methods
for temporal knowledge 5
(time) and spatial knowledge (space) in Alsystems.
5 Illustrate the process of using First-Order Logic to represent
domain. Provide an example of how FOL can be knowledge in a specific
employed for knowledge engineering.
6
Discuss the challenges of representing knowledge in an uncertain
domain. How does the
choice of representation affect the efficiency and accuracy
of probabilistic reasoning?
Page 2 of3
<br>
Page