24/01/2025
Integer Representation:Int32 (or int) is the most commonly used integer type in C # for representing whole numbers. It can store values from -2,147,483,648 to 2,147,483,647, which is sufficient for most calculations. Input from Console:The Console.ReadLine() method returns user input as a string. To perform arithmetic operations or treat the input as a number, it needs to be…...
Why Int32 is used in C#?
Integer Representation:Int32 (or int) is the most commonly used integer type in C # for representing whole numbers. It can store values from -2,147,483,648 to 2,147,483,647, which is sufficient for …
21/01/2025
The loop goes out of bounds by accessing arr[5] which does not exist in the array. int main() { int arr[] = {1, 2, 3, 4, 5}; for (int i = 0; i
Find a Bug…
The loop goes out of bounds by accessing arr[5] which does not exist in the array. int main() { int arr[] = {1, 2, 3, 4, 5}; for (int i = 0; i
21/01/2025
The logic is correct, but check for incorrect user input (e.g., if the user enters a non-numeric value). int main() { int n; printf("Enter a number: "); scanf("%d", &n); printf("The square of the number is: %d", n * n); return 0; }
FIND A BUG….
The logic is correct, but check for incorrect user input (e.g., if the user enters a non-numeric value). int main() { int n; printf(“Enter a number: “); scanf(&…
21/01/2025
The program has an extra else without a matching if. int main() { int num = 5; if (num > 0) printf("Positive\n"); else printf("Negative\n"); else printf("Zero\n"); return 0; }
Find a Bug
The program has an extra else without a matching if. int main() { int num = 5; if (num > 0) printf(“Positive ”); else printf(“Negative ”); else…
21/01/2025
The = operator is used instead of ==, which results in an assignment instead of a comparison. int main() { int num = 7; if (num = 5) { printf("The number is 5"); } return 0; }
Find a Bug….
The = operator is used instead of ==, which results in an assignment instead of a comparison. int main() { int num = 7; if (num = 5) { printf(“The number is 5”)…
21/01/2025
scanf should pass the address of the variable using &, otherwise the program won't store the input correctly. int main() { int num; printf("Enter a number: "); scanf("%d", num); printf("You entered: %d", num); return 0; }
Find a Bug…
scanf should pass the address of the variable using &, otherwise the program won’t store the input correctly. int main() { int num; printf(“Enter a number: …
21/01/2025
The program accesses an array out of bounds, which can lead to undefined behavior. int main() { int arr[5] = {1, 2, 3, 4, 5}; printf("The element at index 5 is: %d", arr[5]); return 0; }
Find a Bug….
The program accesses an array out of bounds, which can lead to undefined behavior. int main() { int arr[5] = {1, 2, 3, 4, 5}; printf(“The element at index 5 is: %d& #8…
21/01/2025
The program attempts to print a floating-point result but the multiplication of two integers should be printed as an integer. int main() { int num1 = 3, num2 = 5; printf("Multiplication result: %f", num1 * num2); return 0; }
Find a Bug….
The program attempts to print a floating-point result but the multiplication of two integers should be printed as an integer. int main() { int num1 = 3, num2 = 5; printf(& #…
21/01/2025
The program compiles and runs correctly, but the output might be incorrect due to incorrect logic or formatting. int main() { int a = 10, b = 5; printf("The result is: %d", a - b); return 0; }
Find a Bug…..
The program compiles and runs correctly, but the output might be incorrect due to incorrect logic or formatting. int main() { int a = 10, b = 5; printf(“The result is…
18/11/2024
Data Science is a multidisciplinary field that combines statistical analysis, programming, and domain knowledge to extract meaningful insights from raw data. It involves various steps, including data collection, cleaning, analysis, visualization, and model building. By uncovering patterns and trends, data science empowers organizations to make informed decisions and predictions. Applications of Data Science:Data science is pervasive in many industries:...
Basics of Data Science
Data Science is a multidisciplinary field that combines statistical analysis, programming, and domain knowledge to extract meaningful insights from raw data. It involves various steps, including da…
18/11/2024
Exploring the Future of AI in Education Artificial Intelligence (AI) is revolutionizing industries, and education is no exception. From personalized learning platforms to AI-driven student performance prediction models, the integration of AI in education is shaping the future. In the Department of Computer Science, we are exploring how advanced AI models can identify at-risk students, optimize learning experiences, and enhance academic outcomes....
AI in Education
Exploring the Future of AI in Education Artificial Intelligence (AI) is revolutionizing industries, and education is no exception. From personalized learning platforms to AI-driven student performa…
04/01/2017
Click on the link To register for alumni 2017