COMPUTER PROGRAMMING FINALS REVIEWER

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/176

flashcard set

Earn XP

Description and Tags

FINALS

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

177 Terms

1
New cards

TRUE

Each class of computer has its own particular machine language

2
New cards

TRUE

High-level language uses English-like instructions

3
New cards

TRUE

The execution of high-level language is slower compared to low-level languages.

4
New cards

FALSE

High level language is executed directly without any translation and require very less time for their execution.

5
New cards

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

6
New cards

TRUE

Computer cannot understand mnemonics in assembly language, thus a translator is used called Assembler.

7
New cards

FALSE

In OOP, problem is decomposed into a number of entities called procedures.

8
New cards

PROCEDURAL 

It is also be referred to as imperative programming. 

9
New cards

TRUE

When the program is finalized, free of errors and the logic works, a documentation is prepared

10
New cards

ALGORITHM

It is the step-by-step sequence of instructions that describe how data will be processed to produce the desired output.

11
New cards

TRUE

The first step in Requirements Analysis is to define the problem and the users.

12
New cards

FALSE

During system design, we write the program to solve the given problem using programming languages like C, C++, Java, etc.,

13
New cards

CODING

In this phase of Program Development Cycle, we construct the actual program.

14
New cards

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).

15
New cards

ASSEMBLER

Assembly language programs must be translated into machine instructions, using an ________

16
New cards

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?

17
New cards

TRUE

An algorithm is a step-by-step description of how to arrive at a solution in the easiest way.

18
New cards

MAINTENANCE

It is any activity designed to keep programs error-free, up-to-date and in good working condition.

19
New cards

SOURCE CODE

A programmer writes __________ using a programming language to create programs.

20
New cards

FALSE

Source code must be translated to machine language using a language barrier

21
New cards

OBJECT-ORIENTED

A programming paradigm that includes or relies on the concept of classes and objects.

22
New cards

FALSE

A coder is a person who writes a source code using programming languages to create computer programs.

23
New cards

TRUE

Machine Language uses only two symbols 1 & 0.

24
New cards

TRUE

The program design process describes the data for the solution of the problem.

25
New cards

TRUE

In maintenance phase, the programming team fixes program errors and updates the software.

26
New cards

PROGRAM DEVELOPMENT LIFE CYCLE

A set of steps or phases that are used to develop a program in any programming language.

27
New cards

TRUE

Even before the software is completed, it needs to be maintained and evaluated regularly

28
New cards

FALSE

In Program Development Cycle, when you analyze requirements you include already selecting the appropriate programming language to be used in creating the program.

29
New cards

SYNTAX ERROR

It is the most common error and incorrect use of programming language statements.

30
New cards

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.

31
New cards

TRUE

Programming is important to automate, collect, manage, calculate, and analyze the processing of data and information accurately.

32
New cards

SOURCE CODE

It is a text listing of commands to be compiled or assembled into an executable computer program.

33
New cards

FALSE

When writing pseudocode, we assume that the order of execution of the statements is from bottom to top.

34
New cards

TRUE

In machine language, OFF switch is represented as 0.

35
New cards

FALSE

The programs created using low-level language runs on different machines with little change or no change at all.

36
New cards

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.

37
New cards

PROCEDURAL

It is a programming style that allows splitting those instructions into procedures.

38
New cards

TRUE

The actual writing of the program is based on the design specifications

39
New cards

FALSE

System design involves the collection of information and the definition of the characteristics or features of the desired system.

40
New cards

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?

41
New cards

FLOWCHART

It is a pictorial representation of a step-by-step solution to a problem.

42
New cards

FALSE

Coding is the fourth step in Program Development Cycle.

43
New cards

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.

44
New cards

SEQUENCE, SELECTION, AND REPETITION

What are the three algorithm constructs? 

45
New cards

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

46
New cards

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

47
New cards

TRUE

The processing typically involves performing one or more calculations using the output items.

48
New cards

VERB

Each instruction in an algorithm should start with a __________.

49
New cards

TRUE

Use appropriate naming conventions and be consistent in writing pseudocodes.

50
New cards

PROCESSING

Write the algorithm in the ____________ column of the Input-Process-Output (IPO) chart.

51
New cards

INPUT

Most algorithms begin with instruction to enter the _______ items into the computer.

52
New cards

PARALLELOGRAM

It is a flowchart symbol that involves receiving data and displaying processed data

53
New cards

HOME PLATE-SHAPED PENTAGON

Identify the correct flowcharting symbol that represents a connector to a logical flow on a different page.

54
New cards

CIRCLE

Identify the correct flowcharting symbol that represents a connector to a logical flow on the same page.

55
New cards

TRUE

Only one flow line should come out from a process symbol.

56
New cards

TRUE

Flow lines indicate the approximate sequence in which instructions are executed.

57
New cards

INPUT

The processing typically involves performing one or more calculations using the ________ items.

58
New cards

OUTPUT

Most algorithms end with instruction to display, print, or store the _______ items.

59
New cards

TRUE

Every step in an algorithm has its own logical sequence so it is easy to debug.

60
New cards

DIAMOND

It is a flowchart symbol that denotes a decision to be made

61
New cards

FALSE

Decision based operations such as yes/no question or true/false are indicated by parallelogram in flowchart.

62
New cards

DIAMOND

Identify the correct flowcharting symbol that represents the statement "Is grade >= 70?"             

63
New cards

TRUE

Namespace std contains all the classes, objects and functions of the standard C++ library.

64
New cards

TRUE

#include <iostream> is the correct way of writing the preprocessor directive to include the contents of iostream in a C++ program

65
New cards

DENNIS RITCHIE

American computer scientist known for his invention of the C programming language 

66
New cards

FALSE

C++ is not case-sensitive programming language.

67
New cards

TRUE

C++ is regarded as a middle-level language because it has a combination of both high-level and low-level language features.

68
New cards

TRUE

Two slash signs inserted by the programmer in his C++ program indicate that the rest of the line is a comment.

69
New cards

0

The standard value that the return statement should return to signify successful execution of the program.

70
New cards

STRING

Which of the following is NOT a primitive data type in C++ programming?

71
New cards

==

The relational operator that can be used to test for equality of two expressions.

72
New cards

IDENTIFIER

A sequence of letters, digits or underscore that may be used as a name of a variable, function, or class.

73
New cards

10

Let a=5: a+=5; What is the Value of a?

74
New cards

FALSE

The ordinary arithmetic operations such as addition, subtraction, multiplication, division and modulus division needs the #include<math.h> pre-processor directive

75
New cards

C Language

C++ was developed by Bjarne Stroustrup as an enhancement to what programming language?

76
New cards

TRUE

Statically typed is a programming language characteristic in which variable types are explicitly declared.

77
New cards
78
New cards

TRUE

Preprocessor directives are not statements, so they do not end with a semicolon (;)

79
New cards

-

C++ performs mathematical expression based on the order of precedence. Given the expression 3 + (9 – 7) * 5 / 2, which operator will be performed first?

80
New cards

CONSTANT

It is an expression that has a value that cannot change during program execution.

81
New cards

0

What value is placed in var?  var = 12 > 9 ? 0 : 1;

82
New cards

CONDITIONAL OPERATOR

An operator that is also called ternary operator.

83
New cards

FALSE

cout automatically add line breaks at the end

84
New cards

COUT

The standard output by default is the screen, and the C++ stream object defined to access it is

85
New cards

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;  

86
New cards

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?

87
New cards

IOSTREAM

The standard C++ library includes the header file ______, where the standard input and output stream objects are declared.

88
New cards

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;

89
New cards

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?

90
New cards

float to int

Which implicit conversion is not possible?

91
New cards

FALSE

The function that maps a real number to the least succeeding integer is floor.

92
New cards

TRUE

setprecision when used along with ‘fixed’ provides precision to floating point numbers correct to decimal numbers mentioned in the brackets of the setprecision.

93
New cards

10.6

Determine the output:

#include<iostream>

#include <math.h> 

using namespace std;

 

int main(){

              cout<<abs(-10.6);

return 0;

}

94
New cards

IMPLICIT

________ type conversion is a conversion performed by the compiler without the programmer's intervention.

95
New cards

TRUE

The floor functions maps a real number to the greatest preceding integer.

96
New cards

FALSE

Converting larger data type into smaller one is implicit type conversion.

97
New cards

FALSE

The operator used for taking the input is known as the insertion.

98
New cards

SPACE

Given the declaration,

int num1, num2;

            cin >> num1>>num2;

The cin statement waits for two inputs from the keyboard separated by a _______.

99
New cards

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;      

100
New cards

TRUE

If there is a chained multiple extraction operators (>>) in cin, the inputted values separated by space/s are stored in the variables respectively.

Explore top flashcards

APUSH Period 3 Terms
Updated 68d ago
flashcards Flashcards (42)
Patosz definiciók
Updated 760d ago
flashcards Flashcards (117)
hamlet critic quotes
Updated 977d ago
flashcards Flashcards (65)
Voc 29+30
Updated 290d ago
flashcards Flashcards (151)
Unit 5 MWH
Updated 1075d ago
flashcards Flashcards (24)
chapter 5 quizlet
Updated 1011d ago
flashcards Flashcards (20)
APUSH Period 3 Terms
Updated 68d ago
flashcards Flashcards (42)
Patosz definiciók
Updated 760d ago
flashcards Flashcards (117)
hamlet critic quotes
Updated 977d ago
flashcards Flashcards (65)
Voc 29+30
Updated 290d ago
flashcards Flashcards (151)
Unit 5 MWH
Updated 1075d ago
flashcards Flashcards (24)
chapter 5 quizlet
Updated 1011d ago
flashcards Flashcards (20)