C Programming Questions and Answers: Algorithms, Flowcharts & Core Concepts
Q1. Attempt Any Two Questions (15 Marks)
1. Explain Algorithm and Add Two Numbers
Original question: Explain Algorithm? Write an algorithm to add two numbers.
Answer:
An algorithm is a step-by-step method to solve a problem or perform a specific task.
Algorithm to add two numbers:
- Start
- Declare variables
a,b, andsum - Input two numbers
aandb - Compute
sum = a + b - Display
sum - Stop
2. Flowchart and Symbols; Print Table
Original question: What is Flow Chart? Explain. And draw the Flow Chart to print table.
Answer:
Read MoreC Programming Fundamentals and Practical Code Examples
Unary, Binary, and Ternary Operators in C
A unary operator in C is an operator that works on only one operand. Common unary operators include ++ (increment), -- (decrement), - (unary minus), ! (logical NOT), and sizeof.
A binary operator in C is an operator that works on two operands. Examples include:
- Arithmetic operators:
+,-,*,/,% - Relational operators:
==,!=,>,<,>=,<= - Logical operators:
&&,|| - Bitwise operators:
&,|,>>,<< - Assignment operators:
=,+=,-
Database Systems: Architecture, Design, and Normalization
Three-Level Database Architecture
The three-level (three-schema) architecture separates how data is physically stored, logically structured, and viewed by different users. This is the ANSI/SPARC architecture, and it exists mainly to provide data abstraction and data independence.
External, Conceptual, and Internal Levels
- External (View) level: This is the level closest to the users; it defines multiple user views (external schemas). Each view shows only part of the database relevant to that user or
.NET Framework Architecture: CLR, GC, and C# Fundamentals
Understanding the .NET Framework Architecture
The .NET Framework is a managed execution environment for Windows that provides a variety of services to its running applications. Its architecture is designed to make software development consistent and to allow different programming languages (like C#, VB.NET, and F#) to work together seamlessly.
The Four Core Components of .NET Architecture
Programming Languages: High-level languages such as C#, VB.NET, and F#.
Framework Class Library (FCL): A massive
Web Development Fundamentals: HTML, CSS, and Code
CIS 092: Our First Webpage
Continue to Lesson 2: Why HTML Lessons?
Favorite Animals List
These are my favorite animals:
- Dog
- Cat
- Worm
- Rabbit
- Bear
- Goat
Importance of Assignments
Why assignments are important:
To continue through programming at UFV, you must know the basics.

Testing and Retention
Why tests are most important:
Tests Prove Material Retention
Have fun, but also study. Tests and assignments are equally important.
Programming Language Examples
C++ Example: Input and Currency Conversion
This
Read MoreEssential Visual Basic Programming Concepts
Visual vs. Non-Visual Programming Languages
Visual programming languages allow developers to create programs using graphical elements like forms, buttons, and drag-and-drop tools. In a visual environment, the programmer focuses more on designing the interface and linking events rather than writing complex lines of code. Visual Basic (VB) is a good example, where you can create applications by placing controls on a form. These languages make development faster, easier, and more suitable for beginners
Read More