0% found this document useful (0 votes)
2 views1 page

C Assignment Answers

A computer language is a set of instructions for communicating with computers, enabling humans to write programs. There are three types of computer languages: low-level, assembly, and high-level, with high-level languages being user-friendly and portable. System development involves creating software through problem identification, design, coding, testing, implementation, and maintenance, while compilers and interpreters differ in their translation methods and execution speed.

Uploaded by

bhimangouda58
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

C Assignment Answers

A computer language is a set of instructions for communicating with computers, enabling humans to write programs. There are three types of computer languages: low-level, assembly, and high-level, with high-level languages being user-friendly and portable. System development involves creating software through problem identification, design, coding, testing, implementation, and maintenance, while compilers and interpreters differ in their translation methods and execution speed.

Uploaded by

bhimangouda58
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Q1. What is a computer language?

A computer language is a set of instructions used to communicate with a computer. It helps humans
write programs to perform tasks. Computers understand only binary (0 and 1). Languages act as a
bridge between human and machine. They follow specific syntax and rules. Programs are written
using keywords, symbols, and structure. They are used to develop software and applications.
Examples include C, Java, Python. They can be low-level or high-level. Without computer
languages, programming is impossible.

Q2. Types of computer languages

Computer languages are classified into three types: low-level, assembly, and high-level. Machine
language uses binary codes. Assembly language uses mnemonics. High-level languages are
user-friendly like C, Java, Python. They are easy to read and write. Translators convert them into
machine language. High-level languages are portable. Each type has different uses.

Q3. Explain system development

System development is the process of creating software systems. It starts with problem
identification. Then requirements are analyzed. Design defines system structure. Coding is done
using programming languages. Testing ensures correctness. Implementation installs the system.
Maintenance updates and fixes issues. It follows SDLC and ensures reliable software.

Q4. Compiler vs Interpreter

A compiler translates the entire program at once, while an interpreter translates line by line.
Compiler produces object code, interpreter does not. Compiled programs run faster, interpreted
slower. Errors appear after compilation in compiler, but immediately in interpreter. Example: C uses
compiler, Python uses interpreter.

Q5. C program for area of triangle


#include <stdio.h>
int main() {
float base, height, area;
scanf("%f %f", &base, &height);
area = 0.5 * base * height;
printf("%f", area);
return 0;
}

Q6. C program for area of circle


#include <stdio.h>
#define PI 3.14
int main() {
float r, area;
scanf("%f", &r);
area = PI * r * r;
printf("%f", area);
return 0;
}

You might also like