Posts

Python(SOC) Lab External Examination

 Python(SOC) Lab External Examination(23CSS1) Date:16-11-2024 1a) To print the given patterns.                                        1                                   1     2                         1     2      3                     1      2      3       4                 1      2       3       4      5 where n=5 b)To find the GCD of 2 numbers using recursion. c) Write a Python program to combine each line from the first file with the corresponding line in the second file. ? 2a)To compute the series 1/12 + 1/22 + 1/32+--- +1/n2. b)To generate the niH Fibonacci number using recursion. c)Write a program to enter name and percentage marks in a dictionary and display information on the screen 3a) To check whether the given number is Armstrong or not. b)Write a program to take a dictionary from the keyboard and print the sum of values c) Write a  Python program to print each line of a file in reverse order. 4a)Write a program to check whether the given number is palindrome or not. b)Wri

DATA STRUCTURES - 23CS52 LAB EXTERNAL EXAMINATION JUNE 2024

DATA STRUCTURES LAB-23CS52 1. A) Write a program to implement the Searching Techniques – Linear & Binary Search.     B) Develop a program to reverse a linked list iteratively and recursively. 2. A) Write a program to implement the circular queues with possible operations.     B)Write a program to Implement a stack or queue to compare and check for symmetry of the given string. 3. A) Write a program to Implement a double-ended queue (deque) with essential operations.     B)Write a program to check for balanced parentheses using a stack. 4. A) Write a program to implement Sorting Techniques – Selection Sort.     B) Implementing a BST using a Linked List and performing the insertion and deletion of an element . 5. A) Write a program to Implement a circular linked list and perform insertion, deletion, and traversal.     B)Write a program to evaluate a postfix expression using a stack. 6. A) Write a program to implement Sorting Techniques Insertion Sort.     B)Write a program to Use a s

COMPUTER PROGRAMMING LAB EXTERNAL EXAMINATION

                                                    COMPUTER PROGRAMMING LAB EXTERNAL EXAMINATION                                                                                 (09-02-2024) 1)Write C Programs for the following problems. i) Write a C program to implement realloc() ii)  Write a C function to transpose of a matrix 2)Write C Programs for the following problems. i) Write a C program to find the sum of a 1D array using malloc() ii)  Read student name and marks from the command line and display the student details along with the total 3)Write C Programs for the following problems. i) Concatenate two strings without built-in functions ii ) Linear search implementation 4)Write C Programs for the following problems. i) Reverse a string using built-in and without built-in string functions ii) Sort array elements using bubble sort 5)Write C Programs for the following problems. i) Binary search implementation ii) Multiplication two matrices 6)Write C Programs for the following pro

BDA Lab Internal (April - 2023)

  SET - I : a) Implementation of basic Word Count Map Reduce program b) Create sample HIVE UDF c) Sqoop import operation SET - II : a) Implementation of Matrix Multiplication with Hadoop Map Reduce b) Create Internal Table and perform DML operations c) Sqoop eval operation SET - III : a) Implementation of Weather mining by taking weather data set using Map Reduce b)  Create External Table and perform DDL operations c) Sqoop export operation

Weather Dataset Mining

import java.io.IOException; import java.util.Iterator; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.lib.input.FileInputFormat; import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat; import org.apache.hadoop.mapreduce.lib.output.TextOutputFormat; import org.apache.hadoop.mapreduce.lib.input.TextInputFormat; import org.apache.hadoop.mapreduce.Job ; import org.apache.hadoop.mapreduce.Mapper; import org.apache.hadoop.mapreduce.Reducer; import org.apache.hadoop.conf.Configuration; public class MyMaxMin { public static class MaxTemperatureMapper extends Mapper<LongWritable, Text, Text, Text> { public static final int MISSING =9999; public void map(LongWritable arg0 , Text Value , Context context ) throws IOException, InterruptedException { String line = Value .toString(); if (!( line .length() == 0)) { Strin

OOPS(20CS57) LAB EXTERNAL (2022-23)

SET-1 1. Develop a java program to implement mouse events like mouse pressed, mouse released, and mouse moved by means of adapter classes. 2.  Develop a java program to print the collection data by using the following ways i) for loop ii) for-each loop iii) Iterator iv) ListIterator SET-2 1.  Five bikers compete in a race such that they drive at a constant speed, which may or may not be the same as the other. To qualify for the race, the speed of a racer must be more than the average speed of all five racers. Take as input the speed of each racer and print back the speed of qualifying racers. 2.  Develop a java program to illustrate the concept of inter-thread communication. SET-3 1.  Write a JAVA program to implement the Rhombus pattern reading the limit from the user. 2.  Develop a java program to create an interface named Vehicle which contains two abstract methods (Specifications (), Display ()). Provide two classes named Two-wheeler, Four-wheelers that is implemented by that i