1/176
FINALS
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
TRUE
Each class of computer has its own particular machine language
TRUE
High-level language uses English-like instructions
TRUE
The execution of high-level language is slower compared to low-level languages.
FALSE
High level language is executed directly without any translation and require very less time for their execution.
COMPILER
A way of translating source code in which all statements are translated and stored as an executable program, or object program; execution occurs later
TRUE
Computer cannot understand mnemonics in assembly language, thus a translator is used called Assembler.
FALSE
In OOP, problem is decomposed into a number of entities called procedures.
PROCEDURAL
It is also be referred to as imperative programming.
TRUE
When the program is finalized, free of errors and the logic works, a documentation is prepared
ALGORITHM
It is the step-by-step sequence of instructions that describe how data will be processed to produce the desired output.
TRUE
The first step in Requirements Analysis is to define the problem and the users.
FALSE
During system design, we write the program to solve the given problem using programming languages like C, C++, Java, etc.,
CODING
In this phase of Program Development Cycle, we construct the actual program.
DOCUMENTATION
It is a written detailed description of the programming cycle and specific facts about the program. Also, it includes necessary instructions on the use and maintenance of the program/software (product).
ASSEMBLER
Assembly language programs must be translated into machine instructions, using an ________
LOGICAL ERROR
The programmer runs a program that multiplies two numbers. He inputted 10 and 5 as the numbers. But on the screen the result is 5, which error do you think is committed by the programmer?
TRUE
An algorithm is a step-by-step description of how to arrive at a solution in the easiest way.
MAINTENANCE
It is any activity designed to keep programs error-free, up-to-date and in good working condition.
SOURCE CODE
A programmer writes __________ using a programming language to create programs.
FALSE
Source code must be translated to machine language using a language barrier
OBJECT-ORIENTED
A programming paradigm that includes or relies on the concept of classes and objects.
FALSE
A coder is a person who writes a source code using programming languages to create computer programs.
TRUE
Machine Language uses only two symbols 1 & 0.
TRUE
The program design process describes the data for the solution of the problem.
TRUE
In maintenance phase, the programming team fixes program errors and updates the software.
PROGRAM DEVELOPMENT LIFE CYCLE
A set of steps or phases that are used to develop a program in any programming language.
TRUE
Even before the software is completed, it needs to be maintained and evaluated regularly
FALSE
In Program Development Cycle, when you analyze requirements you include already selecting the appropriate programming language to be used in creating the program.
SYNTAX ERROR
It is the most common error and incorrect use of programming language statements.
DESK-CHECKING
It is a manual testing of the solution design to make sure that it is free of errors and that the logic works.
TRUE
Programming is important to automate, collect, manage, calculate, and analyze the processing of data and information accurately.
SOURCE CODE
It is a text listing of commands to be compiled or assembled into an executable computer program.
FALSE
When writing pseudocode, we assume that the order of execution of the statements is from bottom to top.
TRUE
In machine language, OFF switch is represented as 0.
FALSE
The programs created using low-level language runs on different machines with little change or no change at all.
TRUE
There are lots for programming language that are known but all of them need to follow some strategy which is referred to as a paradigm.
PROCEDURAL
It is a programming style that allows splitting those instructions into procedures.
TRUE
The actual writing of the program is based on the design specifications
FALSE
System design involves the collection of information and the definition of the characteristics or features of the desired system.
RUN-TIME ERROR
The user has type 0 as the denominator in a computer program that divides two numbers. An error has occurred during the execution. Which type of error is this?
FLOWCHART
It is a pictorial representation of a step-by-step solution to a problem.
FALSE
Coding is the fourth step in Program Development Cycle.
DESK-CHECKING
It is a manual testing of the solution design to make sure that it is free of errors and that the logic works.
SEQUENCE, SELECTION, AND REPETITION
What are the three algorithm constructs?
LINE 1
In the given pseudocode below, which line is requiring for an input from the user?
Line 1 ENTER TotalBill, TipPercentage
Line 2 COMPUTE tip := TotalBill x TipPercentage
Line 3 DISPLAY tip
LINE 7
In the given pseudocode below, which line is displaying an output onto the screen?
Line 1 SET numberCounter = 0, sum = 0
Line 2 DO
Line 3 INPUT number
Line 4 CALCULATE sum := sum + number
Line 5 INCREMENT numberCounter
Line 6 WHILE numberCounter < 3
Line 7 PRINT sum
TRUE
The processing typically involves performing one or more calculations using the output items.
VERB
Each instruction in an algorithm should start with a __________.
TRUE
Use appropriate naming conventions and be consistent in writing pseudocodes.
PROCESSING
Write the algorithm in the ____________ column of the Input-Process-Output (IPO) chart.
INPUT
Most algorithms begin with instruction to enter the _______ items into the computer.
PARALLELOGRAM
It is a flowchart symbol that involves receiving data and displaying processed data
HOME PLATE-SHAPED PENTAGON
Identify the correct flowcharting symbol that represents a connector to a logical flow on a different page.
CIRCLE
Identify the correct flowcharting symbol that represents a connector to a logical flow on the same page.
TRUE
Only one flow line should come out from a process symbol.
TRUE
Flow lines indicate the approximate sequence in which instructions are executed.
INPUT
The processing typically involves performing one or more calculations using the ________ items.
OUTPUT
Most algorithms end with instruction to display, print, or store the _______ items.
TRUE
Every step in an algorithm has its own logical sequence so it is easy to debug.
DIAMOND
It is a flowchart symbol that denotes a decision to be made
FALSE
Decision based operations such as yes/no question or true/false are indicated by parallelogram in flowchart.
DIAMOND
Identify the correct flowcharting symbol that represents the statement "Is grade >= 70?"
TRUE
Namespace std contains all the classes, objects and functions of the standard C++ library.
TRUE
#include <iostream> is the correct way of writing the preprocessor directive to include the contents of iostream in a C++ program
DENNIS RITCHIE
American computer scientist known for his invention of the C programming language
FALSE
C++ is not case-sensitive programming language.
TRUE
C++ is regarded as a middle-level language because it has a combination of both high-level and low-level language features.
TRUE
Two slash signs inserted by the programmer in his C++ program indicate that the rest of the line is a comment.
0
The standard value that the return statement should return to signify successful execution of the program.
STRING
Which of the following is NOT a primitive data type in C++ programming?
==
The relational operator that can be used to test for equality of two expressions.
IDENTIFIER
A sequence of letters, digits or underscore that may be used as a name of a variable, function, or class.
10
Let a=5: a+=5; What is the Value of a?
FALSE
The ordinary arithmetic operations such as addition, subtraction, multiplication, division and modulus division needs the #include<math.h> pre-processor directive
C Language
C++ was developed by Bjarne Stroustrup as an enhancement to what programming language?
TRUE
Statically typed is a programming language characteristic in which variable types are explicitly declared.
TRUE
Preprocessor directives are not statements, so they do not end with a semicolon (;)
-
C++ performs mathematical expression based on the order of precedence. Given the expression 3 + (9 – 7) * 5 / 2, which operator will be performed first?
CONSTANT
It is an expression that has a value that cannot change during program execution.
0
What value is placed in var? var = 12 > 9 ? 0 : 1;
CONDITIONAL OPERATOR
An operator that is also called ternary operator.
FALSE
cout automatically add line breaks at the end
COUT
The standard output by default is the screen, and the C++ stream object defined to access it is
MY SCHOOL IS FIT
Given: const char SCHOOL[20] = “FIT”;
int num1, num2;
Assume num1 contains 3 and num2 contains 7.
Examine the output statement below and what it produces:
cout << “My school is “ << SCHOOL;
STRING
Given: string name = "Jayar";
What header is needed to be declared to be able to output the content of the string type variable name?
IOSTREAM
The standard C++ library includes the header file ______, where the standard input and output stream objects are declared.
3+7
Given: const char SCHOOL[20] = “FIT”;
int num1, num2;
Assume num1 contains 3 and num2 contains 7.
Examine the output statement below and what it produces:
cout << num1 << “+” << num2;
x = 5; y = 3;
Given the declaration,
int x, y;
cin >>y>>x;
When you run the program, you are asked to enter the values of x and y. You entered 3 and 5 successively, what are the values stored in x and y?
float to int
Which implicit conversion is not possible?
FALSE
The function that maps a real number to the least succeeding integer is floor.
TRUE
setprecision when used along with ‘fixed’ provides precision to floating point numbers correct to decimal numbers mentioned in the brackets of the setprecision.
10.6
Determine the output:
#include<iostream>
#include <math.h>
using namespace std;
int main(){
cout<<abs(-10.6);
return 0;
}
IMPLICIT
________ type conversion is a conversion performed by the compiler without the programmer's intervention.
TRUE
The floor functions maps a real number to the greatest preceding integer.
FALSE
Converting larger data type into smaller one is implicit type conversion.
FALSE
The operator used for taking the input is known as the insertion.
SPACE
Given the declaration,
int num1, num2;
cin >> num1>>num2;
The cin statement waits for two inputs from the keyboard separated by a _______.
NUMBER IS 7
Given: const char SCHOOL[20] = “FIT”;
int num1, num2;
Assume num1 contains 3 and num2 contains 7.
Examine the output statement below and what it produces:
cout << “Number is” << “ “ << num2;
TRUE
If there is a chained multiple extraction operators (>>) in cin, the inputted values separated by space/s are stored in the variables respectively.