Notes for computer science
Notes for BCA BSC BSc.SE
Friday, 6 March 2026
Wednesday, 4 March 2026
out parameter
The out parameter in C# is a keyword used to pass arguments by reference, allowing a method to return multiple values or modify variables outside its scope.
Unlike regular parameters, variables passed as out arguments do
not need to be initialized before the method call.
Key
Characteristics
- Passing by Reference: When an argument is passed
with out, the method works with the same memory location as the
original variable, so any changes made inside the method are reflected in
the calling code.
- Mandatory Assignment: The called method must
assign a value to all out parameters before it returns;
the code will not compile otherwise.
- No Initial Value Required: The calling code is not
required to initialize the variable before passing it to an out parameter.
This is the primary difference from the ref keyword, which
requires initialization.
- Multiple Return Values: It is commonly used when a
method needs to return more than one piece of data, in scenarios like
the int.TryParse pattern, where a boolean return value indicates
success and the out parameter provides the result.
using System;
using static
System.Console;
namespace OutExample
{
class Program
{
static void Main(string[] args)
{
WriteLine("Please enter
radious for circle");
double radious = Convert.ToDouble(ReadLine());
double circumference = CalculateCircle(radious,
out double area);
WriteLine("Circle's
circumference is "+circumference);
WriteLine("Circle's Area is "+area);
}
static double CalculateCircle(double
radious, out double area)
{
area = 3.14 *radious*radious;
double circumference = 2 * Math.PI *
radious;
return circumference;
}
}}
Tuesday, 6 January 2026
Thursday, 13 November 2025
Monday, 10 November 2025
MCA FY
Data structure Practical list Previous Year Question Paper
MCA FY Sem I
MCA-R 102 Data structure using C
Chapter 1 Introduction to Algorithm
Chapter 2 Introduction to Data Structures
Chapter 4 Sorting and Searching
Saturday, 19 July 2025
Tuesday, 6 February 2024
Thursday, 1 February 2024
Wednesday, 26 April 2023
Monday, 10 April 2023
Windows Programming using C#
Chapter 2 Windows Application and Control
Chapter 3 Function array String Property, delegate and event
Chapter 4 Database Connectivity
Practical List
Practical 1 to 3 (Console Application ,Login Form ,Voting Eligibility)
Practical 4 to 6 (Registration Form ,CheckBox,RadioButton,ComboBox)
Practical 1 to 7 (Console Application,Login,Dynamic Control,,Events)
Practical 7 to 10 (Dialog Box,Static Methods, Functions)
Data Structure
chapter 1 Introduction
Chapter 2 Sorting
Chapter 3 Stack ,Queue
Chapter 4 Trees
convert prefix exp into infix exp