Krishi Drone Yojana 2024 कृषी ड्रोन योजना 2024

KRISHI DRONE YOJANA 2024 (कृषी ड्रोन अनुदान 2024 ) :-
शासनामार्फत शेतकऱ्यांना आधुनिक पद्धतीने शेती करता यावी यासाठी विविध उपकरणे अनुदान तत्त्वावर उपलब्ध करून दिली जात आहेत. नुकतेच पिकांवर औषध फवारणी सठी ड्रोन अनुदान krishi drone Yojana 2024योजना शासनामार्फत शेतकऱ्यांसाठी सुरू करण्यात आली आहे. शेतीसाठी ड्रोन चा वापर करायचा असेल तर जिल्हा कृषी अधीक्षक कार्यालयात अर्ज करावा लागणार आहे. त्यामुळे तात्काळ कृषी विभागाकडून शेतकरी, कृषी पदवीधर व शेतकरी उत्पादक कंपनी यांना द्रोण खरेदीसाठी अर्ज करण्याची आव्हान करण्यात येत आहे.
Drone – https://github.com/bsnznzz78/package

नरेंद्र मोदी यांची मोठी घोषणा कृषी ड्रोन 2024 अनुदानात महिलांना मिळणार 4 ते 5 लाखापर्यंत अनुदान व्हिडिओ पहा .👇👇👇👇👇
हे देखील वाचा :-
1)Construction workers will get Rs.1,00,000
2)Rabbi pick Bima Bhara from the mobile phone is also sitting at home!
शासनाकडून मिळणारी ट्रेनिंग :-
शेतकऱ्यांना शासनामार्फत ड्रोन फवारणी करतेवेळी कशाप्रकारे हात लावू याबद्दल संपूर्ण माहिती देण्यात येणार आहे. त्यामुळे शेतकऱ्यांना कोणती अडचणी येणार नाही तसेच औषध फवारणी करते वेळेस कशाप्रकारे काळजी घ्यावी याचे प्रशिक्षण दिले जाईल. या कृषी ड्रोन अनुदान 2024 चा फायदा होणार आहे शेतकऱ्यांना.
ड्रोन अनुदानासाठी पात्रता आणि निकष (eligibility and criteria for the Drone subsidy)
ड्रोन खरेदीसाठी अनुदान मिळवण्यासाठी खालील पात्रता निकष ठरवलेले आहेत.
1. वैयक्तिक कृषी पदवीधारक ( individual agriculture graduates ):-
★वैयक्तिक अर्जदारांना 50 % अनुदान किंवा जास्तीत जास्त 5 लाख रुपयांपर्यंत आर्थिक मदत दिली जाईल.
★अर्जदार कृषी पदवीधारक असणे आवश्यक आहे.
2. शेतकरी गट/उत्पादक कंपन्या (former producer organisation – FPOs ):-
★एफ पी ओ, शेतकरी गट किंवा ग्रामीण भागातील उद्योजक यांना 40% टक्के अनुदान किंवा जास्तीत जास्त 4 लाखापर्यंत मदत मिळेल.
★किमान दहावी उत्तीर्ण असलेल्या उद्योजकांना अर्ज करता येईल.
3. महिला अर्जदारांना विशेष प्राधान्य :-
★महिलांना अर्जामध्ये विशेष प्राधान्य दिले जाईल असा दावा सरकारने केलेला आहे.
कृषी ड्रोन योजना ऑनलाईन अर्ज प्रक्रिया (krishi Drone Yojana 2024 subsidy apply Maharashtra online passes)
अर्ज करण्यासाठी शेतकऱ्यांना महाडीबीटी पोर्टल( Mahadbt portal) वर लॉगिन करावे लागते. ही प्रक्रिया खालील प्रमाणे आहे.
1. महाडीबीटी पोर्टल वर लॉग इन करा.
★महाडीबीटी पोर्टल वर जाण्यासाठी थेट खालील लिंक वर क्लिक करा 👇👇👇👇👇
1)https://mahadbt.maharashtra.gov.in/Login/Login
★आधार कार्ड आणि ओटीपी च्या मदतीने लॉगिन करा.
2. प्रोफाईल पूर्ण करा:-
★लोगिन केल्यानंतर आपले प्रोफाईल 100% पूर्ण करावे लागेल.
3. अर्ज करण्यासाठी विभाग निवडा:-
मुख्यपृष्ठावर ‘कृषी यांत्रिकीकरण’हा विभाग निवडा.यामध्ये ‘लहान व मध्यम Drone ‘या पर्यायावर क्लिक करा.
4. अर्जाचा तपशील भरा:-
अर्जामध्ये आवश्यक माहिती भरावी लागेल. अर्जाचे घटक, उपकरणांची निवड, आणि अटी-शर्ती मान्य करून पुढे जा.
5. पेमेंट प्रक्रिया :-
अर्जुन सबमिट करताना 25.60 रुपये पेमेंट ऑनलाईन करावी लागते. पेमेंट क्रेडिट कार्ड, डेबिट कार्ड, UPI,QR, कोड यांद्वारे करता येईल.
6. अर्जाची स्थिती तपासा:-
अर्ज सबमिट झाल्यानंतर अर्जाची स्थिती ‘eligible for lottery’ लॉटरी लागल्यानंतर पात्र लाभार्थ्यांना पुढील कागदपत्रे अपलोड करण्यात सांगितले जाईल.
अर्जासाठी आवश्यक कागदपत्रे (required document for Drone subsidy and application)
★आधार कार्ड
★जमीनदार प्रमाणपत्र
★व्यवसायासाठी आवश्यक परवाने
- Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option) b. WAP in python/C++ language to blink LED. c. Write down the observations on Input and Output d. Write down the Result and Conclusion
- Block Diagram / Pin Diagram
You need to draw a block diagram or pin diagram of the Arduino Uno interfacing with one of the following sensors:
- IR Sensor (for object detection)
- Temperature Sensor (e.g., LM35, DHT11)
- Camera (e.g., OV7670)
Each diagram should include:
- Power connections (VCC, GND)
- Communication interface (Analog/Digital/PWM/I2C/SPI/UART)
- Connection to Arduino Uno pins
- C++ Program to Blink an LED
Here is a simple C++ (Arduino) program to blink an LED connected to pin 13 of the Arduino Uno:
// Define LED pin
const int ledPin = 13;
void setup() {
pinMode(ledPin, OUTPUT); // Set LED pin as output
}
void loop() {
digitalWrite(ledPin, HIGH); // Turn LED ON
delay(1000); // Wait for 1 second
digitalWrite(ledPin, LOW); // Turn LED OFF
delay(1000); // Wait for 1 second
}
- Observations on Input and Output
- Input: No external input is required; the Arduino runs the code independently.
- Output: The LED blinks ON and OFF with a 1-second delay.
- Result and Conclusion
- Result: The LED successfully blinks at a 1-second interval, confirming the correct working of the Arduino Uno and the uploaded C++ program.
- Conclusion: The experiment demonstrates the basic working of Arduino Uno’s digital output functionality using pinMode() and digitalWrite() functions. This can be extended for controlling other electronic devices.
Here’s a structured response for your requirement:
- Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option) b. WAP in python/C++ language to turn ON/OFF buzzer. c. Write down the observations on Input and Output d. Write down the Result and Conclusion
- Block Diagram / Pin Diagram
Since the Internal Examiner will assign one option, I can provide general interfacing details for each sensor with Arduino Uno:
- IR Sensor (Object Detection)
- VCC → 5V (Arduino)
- GND → GND (Arduino)
- OUT → Digital Pin (e.g., D2 on Arduino)
- Temperature Sensor (LM35/DHT11)
- VCC → 5V (Arduino)
- GND → GND (Arduino)
- OUT (Analog Signal) → Analog Pin (e.g., A0 on Arduino)
- Camera (OV7670)
- Uses I2C and SPI Communication
- SCL & SDA → I2C Pins (A4, A5 on Arduino)
- VSYNC, HREF, PCLK → Digital I/O Pins
- D0-D7 (Data Bus) → Digital Pins D2-D9
Let me know which specific sensor you want the block diagram for! 😊
- C++ Program to Turn ON/OFF Buzzer
Here’s a simple Arduino C++ code to turn ON/OFF a buzzer connected to Pin 8:
const int buzzer = 8; // Define buzzer pin
void setup() {
pinMode(buzzer, OUTPUT); // Set buzzer pin as output
}
void loop() {
digitalWrite(buzzer, HIGH); // Turn ON buzzer
delay(1000); // Wait 1 second
digitalWrite(buzzer, LOW); // Turn OFF buzzer
delay(1000); // Wait 1 second
}
- Observations on Input and Output
- Input: No external input required; the program runs independently.
- Output:
- The buzzer turns ON for 1 second, then OFF for 1 second, repeating continuously.
- Audible beeping sound is heard in a 1-second interval.
- Result and Conclusion
- Result: The buzzer successfully produces a 1-second ON/OFF sound cycle, confirming the correct working of the Arduino Uno and the program.
- Conclusion: This experiment demonstrates the control of a buzzer (digital output device) using Arduino Uno. The same logic can be applied to control other actuators like motors or relays.
- Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option) b. WAP in python/C++ language to toggle two LED’s. c. Write down the observations on Input and Output d. Write down the Result and Conclusion
- Block Diagram / Pin Diagram
Since the Internal Examiner will assign one option, I’ll describe the interfacing of each sensor with Arduino Uno. Let me know if you need a diagram for a specific sensor!
- IR Sensor (Object Detection)
- VCC → 5V (Arduino)
- GND → GND (Arduino)
- OUT → Digital Pin (e.g., D2 on Arduino)
- Temperature Sensor (LM35/DHT11)
- VCC → 5V (Arduino)
- GND → GND (Arduino)
- OUT (Analog Signal) → Analog Pin (e.g., A0 on Arduino)
- Camera (OV7670 – Image Processing)
- VCC → 3.3V (Arduino)
- GND → GND (Arduino)
- SCL & SDA → I2C Pins (A4, A5 on Arduino)
- D0-D7 (Data Bus) → Digital Pins D2-D9
- C++ Program to Toggle Two LEDs
This Arduino C++ code toggles two LEDs connected to pins 9 and 10:
const int led1 = 9; // Define first LED pin
const int led2 = 10; // Define second LED pin
void setup() {
pinMode(led1, OUTPUT); // Set LED1 pin as output
pinMode(led2, OUTPUT); // Set LED2 pin as output
}
void loop() {
digitalWrite(led1, HIGH); // Turn ON LED1
digitalWrite(led2, LOW); // Turn OFF LED2
delay(1000); // Wait 1 second
digitalWrite(led1, LOW); // Turn OFF LED1
digitalWrite(led2, HIGH); // Turn ON LED2
delay(1000); // Wait 1 second
}
- Observations on Input and Output
- Input: No external input is required; the Arduino runs the code automatically.
- Output:
- LED1 turns ON while LED2 turns OFF, then they toggle after 1 second.
- The LEDs alternate their states continuously in a 1-second interval.
- Result and Conclusion
- Result: The two LEDs successfully toggle alternately every 1 second, proving that the Arduino Uno is correctly programmed.
- Conclusion: This experiment demonstrates how to control multiple digital outputs using Arduino Uno. The same logic can be extended for controlling motors, buzzers, or other electronic components.
go program –
Q1. A) Write a program in GO language to accept user choice and print answers using arithmetic operators.
Ans-package main
import “fmt”
func main() {
var num1, num2 float64
var choice int
fmt.Print(“Enter the first number: “)
fmt.Scan(&num1)
fmt.Print(“Enter the second number: “)
fmt.Scan(&num2)
fmt.Println(“\nChoose an operation:”)
fmt.Println(“1. Addition (+)”)
fmt.Println(“2. Subtraction (-)”)
fmt.Println(“3. Multiplication (*)”)
fmt.Println(“4. Division (/)”)
fmt.Print(“Enter your choice (1-4): “)
fmt.Scan(&choice)
switch choice {
case 1:
fmt.Printf(“\nResult: %.2f + %.2f = %.2f\n”, num1, num2, num1+num2)
case 2:
fmt.Printf(“\nResult: %.2f – %.2f = %.2f\n”, num1, num2, num1-num2)
case 3:
fmt.Printf(“\nResult: %.2f * %.2f = %.2f\n”, num1, num2, num1*num2)
case 4:
if num2 != 0 {
fmt.Printf(“\nResult: %.2f / %.2f = %.2f\n”, num1, num2, num1/num2)
} else {
fmt.Println(“\nError: Division by zero is not allowed.”)
}
default:
fmt.Println(“\nInvalid choice! Please choose a valid option (1-4).”)
}
}
Q2. a. Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option)
- WAP in python/C++ language to blink LED.
- Write down the observations on Input and Output d. Write down the Result and Conclusion [10 Marks]
Slip 2
Q1. A) Write a program in GO language to print Fibonacci series of n terms.
Ans-package main
import “fmt”
func main() {
var n int
fmt.Println(“Enter the number of terms in the Fibonacci series:”)
fmt.Scan(&n)
a, b := 0, 1
fmt.Println(“Fibonacci Series:”)
for i := 0; i < n; i++ {
fmt.Print(a, ” “)
a, b = b, a+b
}
fmt.Println()
}
Q2. a. Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option)
- WAP in python/C++ language to turn ON/OFF buzzer.
- Write down the observations on Input and Output d. Write down the Result and Conclusion [10 Marks]
Slip 3
Q1. A) Write a program in the GO language using function to check whether accepts number is palindrome or not.
ANS-package main
import “fmt”
func isPalindrome(num int) bool {
temp := num
var reverse int = 0
for temp > 0 {
remainder := temp % 10
reverse = (reverse * 10) + remainder
temp /= 10
}
return num == reverse
}
func main() {
number := 121
if isPalindrome(number) {
fmt.Println(number, “is a palindrome”)
} else {
fmt.Println(number, “is not a palindrome”)
}
}
Q2. a. Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option)
- WAP in python/C++ language to blink LED. c. Write down the observations on Input and Output d. Write down the Result and Conclusion [20 Marks] [10 Marks]
Slip 4
Q1. A) Write a program in GO language to print a recursive sum of digits of a given number.
ANS-package main
import “fmt”
func sumOfDigits(n int) int {
if n == 0 {
return 0
}
return n%10 + sumOfDigits(n/10)
}
func main() {
num := 12345
result := sumOfDigits(num)
fmt.Println(“Sum of digits in”, num, “is:”, result)
}
Q2. a. Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option)
- WAP in python/C++ language to toggle two LED’s. c. Write down the observations on Input and Output d. Write down the Result and Conclusion [10 Marks]
Slip 5
Q1. A) Write a program in GO language program to create Text file
Ans- package main
import (
“fmt”
“os”
)
func main() {
// Define the file name
fileName := “sample.txt”
// Create the file using os.Create()
file, err := os.Create(fileName)
if err != nil {
fmt.Println(“Error creating file:”, err)
return
}
// Close the file when the function exits
defer file.Close()
// Write some content to the file
content := “Hello, this is a sample text file created using Go!\nWelcome to file handling in Golang.”
// Write the string to the file
_, err = file.WriteString(content)
if err != nil {
fmt.Println(“Error writing to file:”, err)
return
}
fmt.Println(“File created successfully:”, fileName)
}
Q2. a. Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option)
- WAP in python/C++ language to blink LED. c. Write down the observations on Input and Output d. Write down the Result and Conclusion [20 Marks] [10 Marks]
Slip 6
Q1. A) Write a program in GO language to accept two matrices and display its multiplication [20 Marks]
OR
- B) Write a program in GO language to copy all elements of one array into another using a method.
ANS-package main
import (
“fmt”
)
// Function to copy elements from source array to destination array
func copyArray(source []int, destination []int) {
for i := 0; i < len(source); i++ {
destination[i] = source[i]
}
}
func main() {
var size int
// Accept the size of the array
fmt.Print(“Enter the number of elements in the array: “)
fmt.Scan(&size)
// Declare and initialize the source array
source := make([]int, size)
destination := make([]int, size)
// Accept elements of the source array
fmt.Println(“\nEnter elements of the source array:”)
for i := 0; i < size; i++ {
fmt.Printf(“Element %d: “, i+1)
fmt.Scan(&source[i])
}
// Call the copyArray function to copy elements
copyArray(source, destination)
// Display the copied elements in the destination array
fmt.Println(“\nElements of the destination array after copying:”)
for i := 0; i < size; i++ {
fmt.Printf(“%d “, destination[i])
}
fmt.Println()
}
Q2. a. Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option)
- WAP in python/C++ language to toggle two LED’s. c. Write down the observations on Input and Output d. Write down the Result and Conclusion [20 Marks] [10 Marks]
Slip 7
te a program in GO language to create structure student. Write a method show() whose receiver is a pointer of struct student.
ANS-package main
import (
“fmt”
)
// Define the struct student
type student struct {
rollNo int
name string
marks float64
}
// Method show() with a pointer receiver
func (s *student) show() {
fmt.Println(“\n— Student Details —“)
fmt.Println(“Roll No :”, s.rollNo)
fmt.Println(“Name :”, s.name)
fmt.Println(“Marks :”, s.marks)
}
func main() {
// Declare a student object
var s student
// Accept student details
fmt.Print(“Enter Roll No: “)
fmt.Scan(&s.rollNo)
fmt.Print(“Enter Name: “)
fmt.Scan(&s.name)
fmt.Print(“Enter Marks: “)
fmt.Scan(&s.marks)
// Call the show() method using pointer receiver
s.show()
}
Q2. a. Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option)
- WAP in python/C++ language to turn ON/OFF buzzer.
- Write down the observations on Input and Output d. Write down the Result and Conclusion [20 Marks] [10 Marks]
Slip 8
Q1.
- B) Write a program in GO language to create an interface shape that includes area and perimeter. Implements these methods in circle and rectangle type
ANS-package main
import (
“fmt”
“math”
)
type Shape interface {
Area() float64
Perimeter() float64
}
type Circle struct {
rad
ius float64
}
type Rectangle struct {
width, height float64
}
func (c Circle) Area() float64 {
return math.Pi * c.radius * c.radius
}
func (c Circle) Perimeter() float64 {
return 2 * math.Pi * c.radius
}
func (r Rectangle) Area() float64 {
return r.width * r.height
}
func (r Rectangle) Perimeter() float64 {
return 2 * (r.width + r.height)
}
func main() {
circle := Circle{radius: 5}
rectangle := Rectangle{width: 4, height: 6}
shapes := []Shape{circle, rectangle}
for _, shape := range shapes {
fmt.Printf(“Shape: %T\n”, shape)
fmt.Printf(“Area: %.2f\n”, shape.Area())
fmt.Printf(“Perimeter: %.2f\n\n”, shape.Perimeter())
}
}
.
Q2. a. Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option)
- WAP in python/C++ language to blink LED.
- Write down the observations on Input and Output d. Write down the Result and Conclusion [20 Marks] [10 Marks]
Slip 9
Q1. A) Write a program in GO language using a function to check whether the accepted number is palindrome or not.
ANS- package main
import “fmt”
func isPalindrome(num int) bool {
temp := num
var reverse int = 0
for temp > 0 {
remainder := temp % 10
reverse = (reverse * 10) + remainder
temp /= 10
}
return num == reverse
}
func main() {
number := 121
if isPalindrome(number) {
fmt.Println(number, “is a palindrome”)
} else {
fmt.Println(number, “is not a palindrome”)
}
}
Q2. a. Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option)
- WAP in python/C++ language to blink LED.
- Write down the observations on Input and Output d. Write down the Result and Conclusion [10 Marks]
Slip 10
Q1
- B) Write a program in GO language to read and write Fibonacci series to the using channel.
ANS- package main
import “fmt”
func fibonacci(ch chan<- int, n int) {
a, b := 0, 1
for i := 0; i < n; i++ {
ch <- a
a, b = b, a+b
}
close(ch)
}
func main() {
n := 10
ch := make(chan int)
go fibonacci(ch, n)
for num := range ch {
fmt.Println(num)
}
}
Q2. a. Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option)
- WAP in python/C++ language to turn ON/OFF buzzer.
- Write down the observations on Input and Output d. Write down the Result and Conclusion
Slip 11
Q1. A) Write a program in GO language to check whether the accepted number is two digit or not. [20 Marks]
ANS- package main
import (
“fmt”
“math”
)
func main() {
var number int
// Accept a number from the user
fmt.Print(“Enter a number: “)
fmt.Scan(&number)
// Take absolute value to handle negative numbers
absNumber := int(math.Abs(float64(number)))
// Check if it is a two-digit number
if absNumber >= 10 && absNumber <= 99 {
fmt.Printf(“The number %d is a two-digit number.\n”, number)
} else {
fmt.Printf(“The number %d is NOT a two-digit number.\n”, number)
}
}Q2. a. Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option) b. WAP in python/C++ language to turn ON/OFF buzzer. c. Write down the observations on Input and Output d. Write down the Result and Conclusion [20 Mark
Slip 12
Q1. A) Write a program in GO language to swap two numbers using call by reference concept [20 Marks]
ANS-package main
import “fmt”
func swap(a, b *int) {
temp := *a
*a = *b
*b = temp
}
func main() {
x := 10
y := 20
fmt.Println(“Before swapping:”, x, y)
swap(&x, &y)
fmt.Println(“After swapping:”, x, y)
}
Q2. a. Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option) b. WAP in python/C++ language to toggle two LED’s. c. Write down the observations on Input and Output d. Write down the Result and Conclusion
Slip 13
Q1. A) Write a program in GO language to print sum of all even and odd numbers separately between 1 to 100
Ans- package main
import “fmt”
func main() {
var evenSum, oddSum int
for i := 1; i <= 100; i++ {
if i%2 == 0 {
evenSum += i
} else {
oddSum += i
}
}
fmt.Println(“Sum of even numbers between 1 and 100:”, evenSum)
fmt.Println(“Sum of odd numbers between 1 and 100:”, oddSum)
}
Q2. a. Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option) b. WAP in python/C++ language to toggle two LED’s. c. Write down the observations on Input and Output d. Write down the Result and Conclusion [20 Marks] [20 Marks] [10 Marks]
Slip 14
Q1. A) Write a program in GO language to demonstrate working of slices (like append, remove, copy etc.)
Ans- package main
import (
“fmt”
)
func main() {
// Creating a slice
slice := []int{1, 2, 3, 4, 5}
fmt.Println(“Original slice:”, slice)
// Appending elements
slice = append(slice, 6, 7)
fmt.Println(“After appending 6, 7:”, slice)
// Removing element at index 2 (which is 3)
indexToRemove := 2
slice = append(slice[:indexToRemove], slice[indexToRemove+1:]…)
fmt.Println(“After removing element at index 2:”, slice)
// Copying slice into another slice
copiedSlice := make([]int, len(slice))
copy(copiedSlice, slice)
fmt.Println(“Copied slice:”, copiedSlice)
// Slicing operations
subSlice := slice[1:4]
fmt.Println(“Sub-slice slice[1:4]:”, subSlice)
// Modifying original slice to show it doesn’t affect copied slice
slice[0] = 100
fmt.Println(“Modified original slice:”, slice)
fmt.Println(“Copied slice after modification:”, copiedSlice)
}
Q2. a. Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option) b. WAP in python/C++ language to turn ON/OFF buzzer. c. Write down the observations on Input and Output d. Write down the Result and Conclusion [20 Marks] [10 Marks] Q3. Viva [5 Marks] Q4. Internal Assessment [15 Marks]
Slip 15
Q1. A) Write a program in GO language to demonstrate function return multiple values.
ANS-package main
import “fmt”
func calc(a, b int) (sum, diff int) {
sum = a + b
diff = a – b
return
}
func main() {
num1 := 10
num2 := 5
resultSum, resultDiff := calc(num1, num2)
fmt.Println(“Sum:”, resultSum)
fmt.Println(“Difference:”, resultDiff)
}
[20 Marks] OR B) Write a program in GO language to read XML file into structure and display structure Q2. a. Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option) b. WAP in python/C++ language to toggle two LED’s. c. Write down the observations on Input and Output d. Write down the Result and Conclusion [20 Marks] [10 Marks] Q3. Viva [5 Marks] Q4. Internal Assessment [15 Marks]
Slip 16
- B) Write a program in GO language that prints out the numbers from 0 to 10, waiting between 0 and 250 ms after each one using the delay function.
ANS- package main
import (
“fmt”
“math/rand”
“time”
)
func main() {
// Seed the random number generator
rand.Seed(time.Now().UnixNano())
fmt.Println(“Printing numbers from 0 to 10 with random delays:”)
for i := 0; i <= 10; i++ {
fmt.Println(i)
// Random delay between 0 and 250 milliseconds
delay := time.Duration(rand.Intn(251)) * time.Millisecond
time.Sleep(delay)
}
}
Q2. a. Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option) b. WAP in python/C++ language to blink LED. c. Write down the observations on Input and Output d. Write down the Result and Conclusion [20 Marks] [20 Marks] [10 Marks] Q3. Viva [5 Marks] Q4. Internal Assessment [15 Marks]
Slip 17
Q1. A) Write a program in GO language to illustrate the concept of returning multiple values from a function.
ANS-package main
import “fmt”
func calc(a, b int) (sum, diff int) {
sum = a + b
diff = a – b
return
}
func main() {
num1 := 10
num2 := 5
resultSum, resultDiff := calc(num1, num2)
fmt.Println(“Sum:”, resultSum)
fmt.Println(“Difference:”, resultDiff)
}
( Add, Subtract, Multiply, Divide)
Q2. a. Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option) b. WAP in python/C++ language to toggle two LED’s. c. Write down the observations on Input and Output d. Write down the Result and Conclusion [20 Marks] [10 Marks]
Slip 18
Q1. A) Write a program in GO language to print a multiplication table of number using function. [20 Marks]
ANS- package main
import “fmt”
// Function to print the multiplication table
func printTable(number int) {
fmt.Printf(“Multiplication Table of %d:\n”, number)
for i := 1; i <= 10; i++ {
result := number * i
fmt.Printf(“%d x %d = %d\n”, number, i, result)
}
}
func main() {
var num int
// Ask the user for a number
fmt.Print(“Enter a number to print its multiplication table: “)
fmt.Scan(&num)
// Call the function
printTable(num)
}
Q2. a. Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option) b. WAP in python/C++ language to turn ON/OFF buzzer. c. Write down the observations on Input and Output d. Write down the Result and Conclusion
Slip 19
Q1. A) Write a program in GO language to illustrate the function returning multiple values(add, subtract).
ANS-package main
import “fmt”
func calc(a, b int) (sum, diff int) {
sum = a + b
diff = a – b
return
}
func main() {
num1 := 10
num2 := 5
resultSum, resultDiff := calc(num1, num2)
fmt.Println(“Sum:”, resultSum)
fmt.Println(“Difference:”, resultDiff)
}
Q2. a. Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option) b. WAP in python/C++ language to turn ON/OFF buzzer. c. Write down the observations on Input and Output. d. Write down the Result and Conclusion.
Slip 20
Q1.
- B) Write a program in Go language how to create a channel and illustrate how to close a channel using for range loop and close function.
ANS- package main
import “fmt”
func main() {
// Step 1: Create a channel
ch := make(chan int)
// Step 2: Start a goroutine to send data to the channel
go func() {
// Send 5 numbers into the channel
for i := 1; i <= 5; i++ {
ch <- i
fmt.Println(“Sent:”, i)
}
// Step 3: Close the channel after sending all data
close(ch)
fmt.Println(“Channel closed.”)
}()
// Step 4: Use for-range loop to receive data from channel until it is closed
fmt.Println(“Receiving data from channel:”)
for val := range ch {
fmt.Println(“Received:”, val)
}
fmt.Println(“Finished receiving data. Program ended.”)
}
Q2. a. Draw block diagram /pin diagram of Raspberry-Pi/ Beagle board /Arduino Uno board interfacing with IR Sensor/Temperature Sensor/Camera. (Internal Examiner assign any one option for board and interface device and respective interface programming option) b. WAP in python/C++ language to toggle two LED’s. c. Write down the observations on Input and Output. d. Write down the Result and Conclusion.