The particular set of commands that a computer processor can execute is known as the —
- ainstruction set
- bmachine code
- ctranslator
- dalgorithm
166 questions · 23 sections
The particular set of commands that a computer processor can execute is known as the —
Why have countless programming languages been created?
A computer processor can directly understand only —
Machine language consists of only —
A code written only with 0s and 1s is called —
Consider the following statements about machine language: Which of the following is correct?
Which languages are together known as low level languages?
The C programming language was invented by —
In which year was the C language invented?
C was invented at —
Who created the C++ language?
In which year was C++ created?
Which concept was added to the C language to create C++?
WORA (Write Once, Run Anywhere) is the main characteristic of —
The Java programming language was introduced in —
Python was invented by —
In 2018, IEEE recognized which language as the greatest programming language?
Consider the following languages: Which of the following are high level languages?
Python codes are generally used in developing —
The SQL language is a —
The goal of a 4th generation language is to —
How many types of translator programs are discussed in this chapter?
An Assembler converts —
Which two translator programs are used by high level languages?
Which translator program converts the whole program together?
Which translator program converts and executes each statement one by one?
Once compiled, the programs —
Consider the following statements about an interpreter: Which of the following is correct?
Consider the following statements about a compiler: Which of the following is correct?
The whole program structure, the structure of small parts and their relation is called —
A good program structure —
The steps written down to solve a problem are known as the —
The problem solving technique expressed with a figure is known as a —
Mistakes in codes are known as —
Finding and correcting errors in codes is known as —
What is the correct order of the steps of writing a program?
For writing algorithms there are —
Consider the following flowchart elements that are represented by special symbols: Which of the following is correct?
The connector symbol in a flowchart is used to —
In the waterfall model, the whole process flows —
Which one is a program design model?
According to the waterfall model, what portion of time is spent on requirement analysis?
According to the waterfall model, what portion of time is spent on coding?
What is the correct order of steps in the waterfall model?
Which one is NOT a program design model?
A C source code file is saved with the extension —
In Windows, executable files have the extension —
A popular IDE for the C language is —
Which operating system is written in C?
Which database management system is written in C?
The execution of a C program starts from the —
Which function is used to print output on the screen?
The printf() function is defined in which header file?
To include the stdio.h header file we write —
Which statement is written at the end of main() so that the program stops executing?
Every C program has only one —
A char data type takes how much storage?
How many different values can be stored inside a char data type?
An int data type takes how many bytes in memory?
The format specifier for int data is —
The format specifier for char data is —
The format specifier for float data is —
The format specifier for double data is —
A double data type takes how many bytes in memory?
Which floating point data type has the bigger range?
Which one is a valid C variable name?
Which special characters are allowed in a C variable name?
Since C is case sensitive, AAA, AaA and aAa are —
The first character of a variable name can NOT be —
Storing a value inside a variable like ch = 'x' is called an —
The use of \n inside the printf() function —
If int number1 = 12 and int number2 = 4, what is the value of number1 / number2?
In C programming, number1 + number2 is called an —
Each statement in C language ends with a —
Which function is used to take input from the user?
Which symbol must be used before the variable inside the scanf() function?
Using the relation F = 1.8 × C + 32, if the Celsius temperature C = 30, the Fahrenheit value F is —
The relation between Fahrenheit and Celsius used in the chapter is —
A conditional statement is always evaluated to be —
How many relational operators does C have?
Which operator checks whether two numbers are not equal?
=
Which operator checks whether two numbers are equal?
=
Consider the following operators: Which of the following are relational operators?
=
Which block is executed when the if condition is false?
To check another condition after the if condition, which block is used?
A grading program prints A+ for marks ≥ 80, A for marks ≥ 70, A- for marks ≥ 60 and B for marks ≥ 50. For an input of marks = 75, the output grade is —
The modulus operator (%) gives the —
A number a is divisible by another number b when —
How many kinds of logical operators does C have?
The three logical operators in C are —
For the && (and) operator, the whole expression is true when —
For the || (or) operator, the whole expression is false only when —
The ! (not) operator applied to a true condition results in —
If condition A is True and condition B is False, the value of A && B is —
If condition A is True and condition B is False, the value of A || B is —
To check whether an applicant's age is between 18 and 35 (inclusive), the correct condition is —
Which expression is equivalent to (age >= 18 && age <= 35)?
In a FizzBuzz program, if the input number is divisible by both 3 and 5, the program prints —
Which loops are demonstrated in this book?
How many kinds of loops does C programming have?
Which loop executes at least once even if the condition is false?
The do-while loop is also called an —
A while loop checks its condition —
In a program where i starts at 0 and the loop runs while (i < 5), printing a line and increasing i by 1 each time, the line is printed —
The correct order of the three parts of a for loop header is —
The continue statement —
The break statement —
A loop used inside another loop is called a —
The statement i = i + 1 can be written in short form as —
The statement a = a + b can be written in short form as —
The special data structure used to keep more than one variable of the same type is called an —
In C, an array index starts from —
If an array has n elements, the highest index is —
For the array int marks[] = {87, 82, 76, 85, 88}; what is the value of marks[2]?
In C, the // symbol is used for a —
In C, text written between /* and */ is a —
An array of characters is also known as a —
The last character of a string is always a —
A string declared as name[80] can hold how many characters?
Which format specifier is used to take an entire string as input with scanf()?
Searching an array by checking each element one by one with a loop is known as —
Which library function is used to calculate the square root of a number?
The sqrt() function is found in which header file?
The function pow(x, y) returns . What value does pow(3, 2) return?
If a function does not return any data, its return type is —
The data that is passed to a function is known as —
The data types a function accepts, written in its declaration, are called —
The strlen() function requires which header file?
The strcmp() function returns 0 when —
The strcmp() function compares two strings —
If main() is declared as int main(), it must return —
What is used in the C programming language to store the same types of data?
What is the next step after you build an algorithm and a flow chart?
Consider the following names: Which one is a valid C programming language variable?
For the code int a = 3, b; b = 2 * a; what will be the value of b after the program runs?
Given int a = 3;, the output will be 3 when —
Which one is true?
Consider the following: Which one is a format specifier?
What are the differences between compiler and interpreter? Which one is true?
For the code int a, s = 0; for(a = 1; a <= 5; a = a + 1) s = s + a; printf("%d", s); what will be the output?
For the loop s = 0; for(a = ...; a <= 5; ...) s = s + a;, which change will give the output 6?
The reserved words of C that can not be used as the names of variables or functions are called —
In C, the expression k++ is —
In C, the expression ++k is —
In C programming, character arrays used to store more than one character are called —
According to the chapter, the maximum positive value that can be stored in an int type variable is about —
In a grouping program, roll numbers 1 to 30 go to Group A, 31 to 60 to Group B and 61 to 100 to Group C. Roll number 45 belongs to —
In a grouping program, roll numbers 1 to 30 go to Group A, 31 to 60 to Group B and 61 to 100 to Group C. Roll number 75 belongs to —
A set of instructions written to make a computer perform a particular task is called a —
Data types such as char, int and float specify the —
Using the formula C = (F - 32) × 5/9, if the Fahrenheit temperature F = 104, the Celsius value C is —
Breaking a problem (such as finding the GCD) into several smaller steps mainly demonstrates —
The GCD (greatest common divisor) of 8 and 3 is —
The number of days in February of a leap year is —
A year is generally considered a leap year if it is divisible by —
For the series 1 + 2 + 3 + ... + N, if N = 10 the sum is —
To make a program print the same word ten times, the most suitable structure is a —
To print an increasing pattern of numbers on each line (1, 12, 123, ...), the most suitable structure is a —
A translator program is needed to execute a high-level language program because the computer can directly understand only —
Algorithms are a prerequisite for coding because an algorithm —