Introduction to C programming Flashcards

1
Q

What are the uses of C programming

A

Used to develop software like:
1. Operating systems
2. Databases
3. Compilers, and so on.

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

What are C keywords?

A

Keywords are predefined, reserved words used in programming that have special meaning to the compiler.

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

What are identifiers?

A

Identifiers refers to name given to entities such as variables, functions, structures. They have to be unique.

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

What are variables

A

A variable is a container(storage area) to hold data

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

What are literals?

A

Literals are data used for representing fixed values.

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

What are escape sequence

A

These are characters that cannot be typed or has special meaning in C programming

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

Example of escape sequence

A

\b - backspace
\f - form feed
\n - newline
\r - return
\t - horizontal tab
\v - vertical tab
\ - backlash
\? question mark

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

What are constants

A

These are variables whose values cannot be changed after declartion.

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

Mention C data types

A

char
int
float
double
short int
unsigned int
bool
enumerated type
complex type

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

What is the size and format of int

A

4,
%d,%i

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

What is the size and format of char

A

1
%c

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

What is the size and format of float

A

4
%f

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

What is the size and format of double

A

8
%lf - bascially long float

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

What is the size and format of short int

A

2
%hd - half int

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

What is the size and format of unsigned int

A

4
%u

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