1) Introduction To C Programming Language Flashcards

1
Q

Why should each C statement end with a semicolon?

A

A semicolon tells C that it has reached the end of a command or a statement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Who is the founder of C programming language?

A

Dennis Ritchie (1972)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

C was primarily developed as a ___________ programming language to ___________.

A

Was was primarily developed as a system programming code the UNIX operating system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a compiler?

A

A compiler is a program that converts instructions to machine code or lower level form so that they can be read and executed by a computer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

List 4 common standard header files in C and state their purpose.

A

studio.h- standard input / output
stdlib.h- standard library -memory allocation, process control, conversions, etc.
math.h- math functions
string.h- string related functions
conio .h- console input/output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Is C an OOP language?

Is C case sensitive?

A

No, C is not an OOP language. C is a general purpose language.
Yes, C is a case sensitive language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a kernel in an OS?

A

A kernel is a computer program at the core of the computer’s operating system with complete control over everything in the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a general-purpose programming language?

A

A general-purpose programming language is used for writing system software across a wide variety of application domains.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which earlier language was C derived from?

A

B (BCPL)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is an application domain?

A

An application domain is a mechanism used within the Common Language Infrastructure(CLI) to isolate executed software applications from one another so they do not affect each other.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

List 5 common instances where C language is used.

A
Operating systems
Language compilers
Assemblers
Text editors
Databases
Web servers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a driver in a computer?

A

A device driver or hardware driver is a group of files that enable one or more hardware devices to communicate with the computer’s operating system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What level of language is C? Explain.

A

C is a high level language.
A high level language enables a programmer to write programs that are independent of a particular type of computer.
High level languages are closer to human languages and further from machine languages, therefore are easier to read, write and maintain.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a header file in C code?

A

A header file has the extension .h and
contains C function declarations and
macro definitions
which are shared between multiple sources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the two types of header files in C?

A

The files the programmer writes.

The files that come with the compiler.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a system programming language?

A

A system programming language is used for system programming. (For writing system software)