cfp 1 Flashcards

1
Q

is a general-purpose, high-level language

A

c programming

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

c programming is developed by [ ] for the Unix operating system

A

Dennis Ritchie

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

is a set of built-in functions, created by the programmers of the c programming language

A

library

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

is the code that is called by the compiler to execute the program

A

main part of the code

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

it is what the program would execute

A

the body of the program

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

the exit status of the program

A

return 0;

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

contains functions that you could use in your program

A

header file

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

two types of header file

A
  1. pre-existing header files
  2. user-defined header files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

files which are already available in compiler

A

pre-existing header files

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

files defined by user

A

user-defined header files

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

any programming language requires a specific [ ] for the program to run

A

syntax

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

the proper way for programmers to communicate with the computer

A

syntax

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

with proper syntax, [ ] can be minimized

A

errors

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

has a series of predefined functions embedded in the header files in the c library

A

header files

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

input/output functions

A

stdio.h

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

general utility functions

A

stdlib.h

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

string functions

A

string.h

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

mathematics functions

A

math.h

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

character handling functions

A

ctype.h

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

are the smallest individual unit in the c program

A

c tokens

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

are either keywords or identifiers, constants, variables, or any other symbol which has meaning in c language

A

tokens

22
Q

the absence of a [ ] at the end of any statement will mislead the compiler to think that this statement is not yet finished

A

semicolon

23
Q

are plain simple text in a c program

A

comments

24
Q

c is a case-sensitive language so all c instructions must be written in

A

lower case letters

25
Q

transforms your program before it is compiled

A

preprocessor

26
Q

the commands of the preprocessor are known as

A

preprocessor dorectives

27
Q

is a flaw or defect in a program that causes the program to behave abnormally

A

error

28
Q

removing all errors from a code

A

debugging

29
Q

arises when a programmer disregards the set of rules that govern the syntax of the programming language

A

syntax mistakes

30
Q

syntax mistakes are also known as

A

compilation errors

31
Q

errors that occur during the execution of a program

A

run time errors

32
Q

occur when we believe our code is right because it compiles without problems and runs without error

A

logical errors

33
Q

are characters that have a “special” built-in meanings in the language and they can not be used as identifiers

A

symbols or special characters

34
Q

a primitive data type with a distinct human-readable form

A

symbol

35
Q

add clarity to the source code, making it easier for others to grasp what the code is supposed to do and assist in debugging

A

comments

36
Q

starts with //

A

single line comment

37
Q

uses /…./ symbol

A

multi-line comments

38
Q

are used to document the program and remind programmers of what tricky things they just did with the code

A

comments

39
Q

are like the storage box in programming. it is responsible for storing data or values

A

variables

40
Q

is a name for a memory place where data is stored

A

variable

41
Q

is used in the definition of all variables to limit the kind of data that may be stored

A

data type

42
Q

all data types defined by c are made up of units of memory called

A

bytes

43
Q

identify the type of a variable when declared

A

data types

44
Q

is an attribute associated with a piece of data that tells a computer system how to interpret its value

A

data type

45
Q

whole number

A

int %d %i

46
Q

declare characters

A

char %c

47
Q

a sequence of character type variables

A

string %s

48
Q

used to hold real numbers

A

float %f
double %lf

49
Q

smaller integer value

A

short int %hd

50
Q

are predefined, reserve words

A

keywords