C LANGUAGE Flashcards

1
Q

Who invented C programming language

A

Dr. Dennis Ritchie

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

considered as a middle-level programming language because it combined the power of low-level language (such as Assembly language) and the elegance of high-level language like Pascal.

A

C language

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

are programs embedded inside Integrated Circuits (IC) or chips..

A

Embedded intelligence systems

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

do not provide all the built-in functions found in high-level languages, but to provide all building blocks needed to produce the result desired. Examples: C, C++

A

Middle-Level languages

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

provide almost everything that the programmer might need to do as already built into the language. Example: Java, Python

A

High-Level languages

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

provide nothing other than access to the machines basic instruction set. Example: Assembler

A

Low-Level languages

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

This is a preprocessor command that includes a standard input-output header file from the C library before compiling a C program.

A

include <stdio.h></stdio.h>

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

This is the main function from where the execution of any C program begins

A

int main()

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

This indicates the beginning of the main function.

A

{

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  • whatever is given inside the command “/* */” in any C program, won’t be considered for compilation and execution.
A

*/ */

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

command prints the output onto the screen.

A

printf

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

This command waits for any character input from the keyboard.

A

getch(); / getche();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  • This command terminates C program (main function)
A

return 0

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

This indicates the ending of the main function

A

}

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

is a macro preprocessor (allows you to define macros) that transforms programs before it is compiled. These transformations can be included such as in a header file. It usually starts with a (#) pound sign.

A

The C preprocessor

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

it is used to include header files to a C program. #include <stdio.h> #include<my_header.h></my_header.h></stdio.h>

A

include preprocessor

17
Q

it is used to define a fragment of code that is given with a name. #define PI 3.1416

A

define

18
Q

are distinguished by ending in the extension.h.

it is used to define all functions, variables, and constants contained in any function that the users want.

A

Header files

19
Q

input and output functions.

A

stdio.h

20
Q

console input and output functions.

A

conio.h

21
Q

character handling functions

A

ctype.h

22
Q

mathematics functions

A

math.h

23
Q

string functions

A

string.h

24
Q

date and time functions

A

time.h