21 Questions
Which of the following is true about C programming language?
do while is the same as DO WHILE in C
What is a common rule to be followed in all C programs?
End every line with a semicolon
Which of the following statements about C libraries is correct?
Some compilers allow functions to be added to the standard library
What action needs to be performed before running a C program?
Compile the program using a C compiler
What is an algorithm in programming?
A set of steps to solve a problem
Why is it important for C programs to follow the correct program structure?
To ensure proper functioning and readability
What area was C initially used for?
Systems programming
Which language was the UNIX operating system developed using?
C
What is the ability of C to section off and hide information and instructions necessary to perform a specific task called?
Encapsulation
Which term refers to the compartmentalization of code and data in C?
Encapsulation
What type of programs are usually called system programs?
Operating Systems
What is the purpose of pseudocode in algorithm writing?
It uses a standard set of words to resemble code.
In C programming, which construct is used to handle multiple criteria using AND and OR operators?
Nested IF statements
What is the role of variables in C programming?
They allow meaningful names for memory locations.
Which of the following is a correct example of an identifier name?
'1sttest'
What are constants in C programming?
Values whose worth never changes during program execution.
Which type of construct in C programming allows for branching based on multiple conditions?
Nested IF statements
What does the DISPLAY keyword indicate in pseudocode?
Outputting information to the user or console.
'Classified as an MVS' is displayed when which criteria are met?
'yearsWithUs >= 10 AND bizDone >=5000000'
'Number is even' is displayed when which condition is true?
'r = 0'
'Enter 2 numbers' is a part of which type of construct in C programming?
'Pseudocode'
Learn about the 32 keywords in the C programming language and how they combine with formal syntax. Understand the rules for using keywords, such as case sensitivity and restrictions on using them as variable or function names.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free