What is the main advantage of a computer over any other machine?
- aIt can store electricity
- bIt can be programmed to do certain tasks
- cIt understands human language
- dIt works without instructions
185 questions · 30 sections
What is the main advantage of a computer over any other machine?
A computer can only directly understand which of the following?
The particular set of commands that a computer processor can execute is known as the —
Why were programming languages created?
In which year was the C programming language invented?
Which programming language was invented in 1989 according to the chapter table?
Which of the following languages was invented earliest?
According to the chapter table, Java, JavaScript and PHP were all invented in which year?
A code containing only 0 and 1 is known as —
Which statement best describes machine language?
Who provides the instruction set with a processor?
Who is regarded as the first programmer?
Assembly language contains which of the following alongside numbers?
Which program is used to convert assembly code to machine code?
Why was assembly language invented after machine language?
Which language is given as a great example of a mid-level language?
Mid-level languages are handy when you require —
Which of the following can be written using C, as a mid-level language?
Which two languages are known as low level languages?
Which of the following is a characteristic of high level languages?
Who invented the C programming language?
C is which type of programming language?
Who created the C++ language and in which year?
The concept that defines objects of similar attributes is called a —
The main characteristic of Java is best described by which slogan?
Who invented Python and in which year?
In 2018, which organization recognized Python as the greatest programming language?
Python is generally used in developing which of the following?
What is the goal of 4th generation programming languages?
Which language mentioned in the chapter is a 4GL language?
Graphical user interfaces used in tools and software are the direct result of —
What is the purpose of a translator program?
How many types of translator programs are discussed in the chapter?
Which two translator programs are used by high level languages?
How does a compiler handle errors?
After a program is compiled, how do compiled programs run?
How does an interpreter process a program?
Which of the following statements about an interpreter is correct?
Which translator converts assembly code to machine code?
The relation of the whole program, its small parts and their structure is called —
Which of the following describes a good program structure?
In a bad programming structure, the flow control of the program is —
The steps written down to solve a problem are known as the —
A problem solving technique expressed with a figure is known as a —
Mistakes made in code are known as —
The process of finding and correcting errors in code is known as —
What is the correct order of steps for writing a program?
For large applications, what must the programmer write so people know how to use the application?
Which statement about writing algorithms is correct?
In an algorithm, when you skip a few steps to do special work, what must you do?
In a flowchart, which symbol represents a decision or condition?
Which flowchart symbol is used for input/output?
The connector symbol in a flowchart is used to —
Which design model divides the program writing process into definite and non-overlapping one-way steps?
According to the waterfall model, what are the steps of programming?
According to the waterfall model, programmers spend what percentage of time on requirement analysis?
Which of the following is true about the waterfall model?
Which of the following can be developed using C?
A C program source code file is saved with which extension?
In Windows, executable files have which extension?
Which of the following is a popular IDE for the C language?
Compiling a C program produces a —
Any C program starts executing from which function?
How many main() functions does every C program have?
The printf function is defined in which header file?
What does #include <stdio.h> do?
A file that contains some pre-built functions is called a —
The statement return 0; is generally placed where?
The char data type can contain —
How much storage does a char data type take?
How many different possible values can be stored in a char data type?
Int data type takes how much memory?
Which data type takes 8 bytes of memory and has a bigger range for floating point numbers?
Which data type is used to store floating point numbers using 4 bytes of memory?
How many different numbers can be stored inside an int?
Which format specifier is used to print integer type data?
Which format specifier is used for char type data?
Which format specifier is used for double type data?
Which format specifier is used for float type data?
In Program 5.2, the variable ch is assigned 'X'. What is the output?
Which of the following is a valid variable name in C?
The C programming language is —
Which special characters are allowed in a variable name?
Which of the following is true about variable names in C?
A piece of code which results in a value is called a/an —
Each statement in C language ends with a —
What does the assignment operation ch = 'x' mean?
What does \n do inside a printf() function?
How many values can you assign at a time inside a variable?
The restricted set of words which cannot be used as names of variables or functions are called —
Which of the following is a C keyword?
Which group contains only C keywords?
Which function is used to take user input in C?
Which symbol must be used before variables in scanf() to take inputs?
In Example 5, the relation between Fahrenheit and Celsius used is —
In Program 5.7 (Celsius to Fahrenheit), the variables C and F are of which data type?
How many relational operators does C have?
Which operator checks whether two numbers are equal?
=
Which operator checks whether two numbers are NOT equal?
=
Relational operators produce which type of result?
When does the code inside an if block execute?
An if block consists of the code inside which braces?
In Program 5.8, n1 = 5 and n2 = 7 with if (n1 == n2). What is the output?
When should you use an if-else statement?
In Program 5.10 (n1=5, n2=7), with if/else if (n1>n2)/else, what is the output?
In Program 5.11 (grade program), if the input marks is 75, what grade is printed?
In an else-if chain, when is the last else block executed?
In a bundled if and else-if chain, when one condition is true —
How many kinds of logical operators does C have?
Which symbol represents the logical AND operator?
Which symbol represents the logical OR operator?
For the AND (&&) operator, the expression is true only when —
For the OR (||) operator, the expression is false only when —
For the NOT (!) operator, if the condition is true then the expression will be —
In Example 8, the eligible-age condition age >= 18 && age <= 35 can also be written as —
!(age < 18 || age > 35)age < 18 && age > 35!(age >= 18 && age <= 35)age > 18 || age < 35In C, which is the remainder (modulus) operator?
A number a is divisible by b when —
a % b == 1a % b == 0a / b == 0a * b == 0In Program 5.13 (FizzBuzz), what is printed if the input is 15?
Loop statements are used when we need to —
How many kinds of loops does C have?
In a while loop, when does the block execute?
In Program 5.14, i = 0 and while (i < 5) printing 'I Love Bangladesh', how many times is the text printed?
Which loop executes its statement at least once even if the condition is false?
The do-while loop is also called a/an —
What is the correct syntax of a for loop?
for (condition)for (initialization; condition; increment)for (increment; condition; initialization)for (condition; increment)A loop used inside another loop is called a —
What does the continue statement do inside a loop?
In Program 5.16 (n=2; while(n<=100); n=n*2), which numbers get printed?
The special data structure that keeps more than one variable of the same type is called a/an —
In C, an array index starts from —
The nth element of an array is stored in which position?
If an array has n elements, the highest index will be —
What is the correct syntax to declare an array?
name data_type [number of elements];data_type name [number of elements];data_type [number of elements] name;array name data_type;In the shortcut int marks[] = {87, 82, 76, 85, 88};, how does the compiler get the number of elements?
Text written after the // symbol in C is a —
Multi-line comments in C are written between which symbols?
// and ///* and */< and >{ and }What happens to comments when the program is executing?
When a variable is declared inside a function without an assigned value, it contains —
The statement a = a + b can be written in short form as —
a == b;a += b;a =+ b;a ++ b;The statement i = i + 1 can be written in short as —
i--i++i==1i+=2In Example 17, swapping the values of two variables a and b requires —
Arrays of characters are also known as —
The last character of a string is always the —
\0)If a string is declared with 80 elements like name[80], how many characters can it hold?
Which format specifier is used to take an entire string as input in scanf()?
Which character cannot be used inside a string taken by %s?
The number of characters in a string is known as —
In Program 5.27, what does the break statement do when the key is found?
The searching method used in Program 5.27 is known as —
Before using a function, which three pieces of information must you know?
If a function does not return any data, its return type will be —
In the prototype double sqrt(double arg), what does the first double represent?
The values passed to a function as parameters are known as —
The sqrt() function is found in which header file?
The pow(double x, double y) function returns which value?
Pre-existing header files included with C are known as —
The strlen() function is found in which header file?
The strcmp() function returns 0 when —
How does strcmp() compare two strings?
Why do we write return 0; at the end of an int main() function?
In Example 25, the celsius_to_fahrenheit function returns which type of value?
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?
Which one is a C programming language variable?
Read the code: int a = 3, b; b = 2*a;. What will be the value of b after the program runs?
For int a = 3, the output will be 3 when —
b = a++b = a--b += aWhich one is a format specifier?
What are the differences between compiler and interpreter?
For the loop for(a=1; a<=5; a=a+1) S=S+a; with S=0, what will be the output?
In the sum loop above, which change will get the output 6?
What are reserved keywords in C?
What is the difference between k++ and ++k?
What are character arrays called in C programming?
What is the maximum value that can be stored in an int type variable (positive range)?
What is a compiler?
Why are algorithms a prerequisite for coding?
What is a program?
C is a case sensitive language, which means —
What is a data type?
In what way are interpreters better than compilers?
The formula to convert Fahrenheit to Celsius is —
What is a programming language?
Why do programmers break down a problem into smaller steps?