Sessional 1-1
Sessional 1-1
Sessional 1-1
: 40
CourseNo.:CST3403 Time: 1.15 Hrs
:
Note Attempt all questions. Dt:25.04.2024
Q1(a) Explain the following object oriented concepts : (7)
(a) Polymorphism (b) Encapsulation (c) Inheritance.
b How arrays are defined and initialized in java? Explain with an example.
(5)
a
Q2, Differentiate between method oyerloading and overriding. Create class called Vehicle and (8)
a class calledCar which extends Vehicle. Illustrate overloading and overriding using the
Explain different Notations used or Asymplotic Analysis of Algoriths. Also discuss rclationship betw.en them. (10) CO1
Q2 Write an algorithe io convert Inlix to prefix expression. Using the algorithn show conversion
of foliovig infixto prefix: (10) CO3
((AB}*C -(D-E))S(FHG)
What are Circular (Qucues? What advantage Circular Qucues has over lincar Qucucs? IDiscuss impler:en ation of Circular (19) CO2
Q3
Qucucs.
Q4 Explain dynanic inplementation of a Stack and what advantage it has over slack's stalic implementatigjt. (10) CO2
o1 a)what is the difference between Databasu system and File system? (5)
b) What are the advantages and Disadvantages of DBMS? (5)
Q2 Explain Data Model Classifications. (10)
Ç3 what is Extended ER Model? Explain with suitable example. (10)
Q4 a) Define the following: (5)
a. Schema b. Instance C. Attributes d. Domain e. Database
b)Discuss the various DML, DCL and DDL commands. (5)
.1-hua uith guitahloo1
GOVT COLLEGE OF ENGINEERING AND TECHNOLOGY, JAMMU, J&K (UT
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
SESSIONAL-1
COURSE TITLE: FUNDAMENTALS OF MACHINE LEARNING MAX. MARKS: 40 COURSE CODE: CST3404
Q1. -a) Explin indexing and slicing in Python with respect to strings. Provide an example for each. (Co1) (5 Marks)
b) Given the string message = "Hello, World!", write code to extract the substring World' from message. (co1) (5 Marks]
02. a) Discuss the significance of negative indexing in Python,Write a code to reverse a string using slicing. (Co1) (5 Marks)
b) Write Python code to read a CSV file into a Pandas DataFrame named df. (Co2) (5 Marks)
Q3. Explain the role of Numpy for scientific computing, Pandas for data manipulation and Matplotlib (Co2) (10 Mark
for data visualization in Python.
Q4. Explain simple linear regression. Calculate the slope and intercept for a simple ljnear regression model (co3) (10 Mark
given the dataset: Study Hours(x): 2,3,4,5,6 Exam Sccres (y): 65,67,70,72,74
GOVT. COLLEGE OFENGINEERING AND TECHNOLOGY, JAMMU
DEPARTMENT OF MATHEMATICS
1 Sessional Test