1) Introduction To C Programming Language Flashcards
Why should each C statement end with a semicolon?
A semicolon tells C that it has reached the end of a command or a statement.
Who is the founder of C programming language?
Dennis Ritchie (1972)
C was primarily developed as a ___________ programming language to ___________.
Was was primarily developed as a system programming code the UNIX operating system.
What is a compiler?
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.
List 4 common standard header files in C and state their purpose.
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
Is C an OOP language?
Is C case sensitive?
No, C is not an OOP language. C is a general purpose language.
Yes, C is a case sensitive language.
What is a kernel in an OS?
A kernel is a computer program at the core of the computer’s operating system with complete control over everything in the system.
What is a general-purpose programming language?
A general-purpose programming language is used for writing system software across a wide variety of application domains.
Which earlier language was C derived from?
B (BCPL)
What is an application domain?
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.
List 5 common instances where C language is used.
Operating systems Language compilers Assemblers Text editors Databases Web servers
What is a driver in a computer?
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.
What level of language is C? Explain.
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.
What is a header file in C code?
A header file has the extension .h and
contains C function declarations and
macro definitions
which are shared between multiple sources.
What are the two types of header files in C?
The files the programmer writes.
The files that come with the compiler.