FA Module 1

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

What is the size of int data type in C++

4

When you want to assign value to a variable, in pseudocode use the symbol ____.

:=

Which of the following is not true in implicit type conversion?

A force type conversion

Problem Specification: Jay-ar wants to compute for the area of a circle. Which of the following serves as the output item?

Area = PI r2

Problem Specification: Jay-ar wants to compute for the area of a circle. Which of the following serves as the processing item?

Area = PI r2

In writing Pseudocode, which of the following is best used when there are many possible outcomes to a condition?

CASE - OTHERS - ENDCASE

You can perform implicit type conversion on:

Converting float to an int

The last step in Program Development Cycle is ____________.

Documentation and Maintenance

A statement used to close the IF block.

ENDIF

To iterate is to repeat a set of instructions in order to generate a sequence of outcomes. Which of the following keyword is used for iteration?

FOR - ENDFOR

Which of the following keyword is used for iteration that has iteration bounds in the format?

FOR - ENDFOR

In writing Pseudocode, which of the following is best used in two conditions?

IF - ELSE IF — ENDIF

In drawing the flowchart in getting the sum of the two numbers. Using N1 and N2 as the two numbers, and SUM as the total of the two numbers. Answer the question that follows. Which statement should be written in the first parallelogram after the terminal START?

INPUT N1, N2

__________ Type conversion is a conversion performed by the computer without the programmer's intervention

Implicit

Problem Specification: Jay-ar wants to determine if the inputted number is a positive number. Which of the following serves as the input item?

Number

Problem Specification: Jay-ar wants to determine if the inputted number is a positive number. Which of the following serves as the processing item?

Number > 0

In drawing the flowchart in getting the sum of the two numbers. Using N1 and N2 as the two numbers, and SUM as the total of the two numbers. Answer the question that follows. Which statement should be written in the second parallelogram?

OUTPUT SUM

Which keyword is used to show your output to a screen or the relevant output device?

PRINT

Which of the following is not true about pseudocode?

Pseudocode is a formal way of writing a program.

The first step in Program Development Cycle is ____________.

Requirement Analysis

The correct keyword to initialize values is ________.

SET

In drawing the flowchart in getting the sum of the two numbers. Using N1 and N2 as the two numbers, and SUM as the total of the two numbers. Answer the question that follows. Which statement should be written in the process box?

SUM = N1 + N2

Which of the following steps is not required during the Testing and Debugging phase?

Select the appropriate programming language.

Which of the following statement is true about high-level language?

Writing instructions in a high-level language is easier.

Why can typecasting be dangerous

You may temporarily lose part of the data

The function accepts an integer value and returns an integer value that has the same magnitude but positive sign

abs()

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

algorithm

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

algorithm

This testing is performed by real users of the software application in a real environment.

beta

A flowchart shape that is used to show a jump from one point in the process flow to another on the same page.

circle

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

circle

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

coding

It is a sequence of instructions written to perform a specified task for a computer

computer program

What is type casting?

converting one data type into another

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

cout

It means detecting, locating, and removing all errors in a computer program.

debugging

It is a manual testing of the solution design to make sure that it is free of errors and that the logic works.

desk-checking

A flowchart shape that is used for making decisions

diamond

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

diamond

Identify the correct flowcharting symbol that represents the statement "S = S + no"

diamond

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

diamond

Which of the following is not a language translator?

editor

______ Is a function that inserts new line character and flushes the stream.

endl

The extraction of operator will extract characters from the keyboard until you didn't press ___ key

enter

All are ways in expressing an algorithm except one.

expressions

The ">>" symbol used in cin statement is called _____

extraction operator

A run time error is a mistake that the programmer made while designing the solution to a problem.

false

All the instructions of high-level language are written in the form of binary numbers 1's & 0's.

false

C and C++ are a most popular a programming language which uses interpreter

false

Coding is the fourth step in Program Development Cycle.

false

Computer hardware can understand only the high-level languages

false

Cout automatically add line breaks at the end

false

Decision symbol represent the direction of flow of control and relationship among different symbols of flowchart.

false

Each instruction should start with a noun.

false

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

false

Explicit type conversion is a conversion performed by the compiler without programmers intervention

false

Flow lines indicate the approximate sequence in which instructions are executed

false

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

false

If the flowchart becomes complex, it is better to use intersection of flow lines.

false

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

false

In drawing a proper flowchart, all necessary requirements should be listed out in chronological order.

false

In machine language, OFF switch is designated by a 1.

false

In pseudocode, steps are linked by connecting lines and directional arrows.

false

Integer is larger than float data type in size

false

Keywords are written fully in lowercase.

false

Program instructions that take input from input devices and display output on output devices are indicated with process symbol in a flowchart

false

Program instructions that take input from input devices and display output on output devices are indicated with process symbol in a flowchart.

false

Pseudocode can be compiled or interpreted by the computer.

false

Round() is used to round the given number to the closest highest integer

false

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

false

The Instructions written in 0s and 1s are called source code.

false

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

false

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

false

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

false

There could be two or more flow lines that should enter a decision symbol.

false

Usually, there is a particular code syntax to write a pseudocode

false

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

false

Programming paradigm is a way to classify programming languages based on their _________

features

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

flowchart

What can be used to input a string with blank spaces ?

getline()

A keyword is a word that is reserved by a program because the word has a special meaning. Keywords are used to the following except ______.

hardware operations

Identify the correct flowcharting symbol that represents the statement "x = 0"

hexagon

It is a flowchart symbol that contains the initial values of variables or variable declaration.

hexagon

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

input

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

input

Which library is used for basic input-output library in this program

iostream

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 1

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 < 3Line 7 PRINT sum

line 7

A type of error that occurs when there is a mistake in a program's source code that results in incorrect or unexpected behavior.

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?

logical error

Instructions in _______ are written in 0s and 1.

machine language

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

maintenance

Which header file do you need to include to use typecasting

none

The following are called programming languages except ___________

oreo

Identify the correct flowcharting symbol that represents the statement "START"

oval

Identify the correct flowcharting symbol that represents the statement "PRINT Stud, Ave"

parallelogram

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

procedural

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

processing

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

program development life cycle

It is the process of designing, writing, testing, debugging/ troubleshooting, and maintaining the source code of computer programs.

programming

An English-like nonstandard language that lets you state your solution to a problem.

pseudocode

The following programming languages uses the compilation process except _____

python

A flowchart shape that show a process or action step.

rectangle

Identify the correct flowcharting symbol that represents the statement "ctr = ctr + 1"

rectangle

What flowchart symbol is used for the given expression below? average = ( x + y ) / 2

rectangle

During this phase of Program Development Cycle, it involves the collection of information and the definition of the characteristics or features of the desired system.

requirement analysis

It is a software error that occurs while a program is being executed.

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?

run-time error

It consists of rules governing the structure and content of the statement that should be followed in a programming language.

syntax

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

syntax error

When the programmer runs the programs, it points to a certain line of code and tells there is a missing semicolon (;) at the end of the statement. What do you think is this type of error?

syntax error

All arithmetic processes such as adding, subtracting, multiplication and division are indicated by action or process symbol.

true

Avoid the intersection of flow lines if you want to make it more effective and better way of communication.

true

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

true

Computer languages are the languages through which the user can communicate with the computer by writing program instructions.

true

Developing a program involves steps similar to any problem-solving task.

true

Documentation phase ends by writing a manual that provides an overview of the program's functionality, tutorials for the beginner, in-depth explanations of major program features, reference documentation of all program commands and a thorough description of the error messages generated by the program.

true

Each instruction in the algorithm will describe an action that the computer needs to take.

true

Every programmer has his or her own version of a pseudocode.

true

Explicit type conversion requires a type casting operator

true

Flowcharts play an extremely important role in displaying information and assisting reasoning.

true

High-level language uses English-like instructions

true

In Procedure-oriented programming, A main program centrally controls all the procedures.

true

In low-level language, there is more chance for errors and it is very difficult to find errors, debug and modify.

true

In machine language, OFF switch is represented as 0.

true

Interpreter or compiler is used to convert high-level language to low-level language.

true

Machine Language uses only two symbols 1 & 0.

true

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

true

Multiple insertion operations (<<) maybe change in a single statement

true

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

true

Programmers often use flowchart as a program-planning tool to solve a problem

true

Programming is important for learning to innovate, create eco-friendly solutions for global problems.

true

Programming is important for speeding up the input and output processes in a machine.

true

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

true

Pseudocode is a more plain and human understandable form of algorithm where natural language is also combined with the high-level programming language constructs.

true

Pseudocode is called false code because it has no syntax like any of the programming language

true

Pseudocode is different from algorithm by the fact that they are expressed in program language like constructs.

true

Pseudocode represents the algorithm of the program in natural language and mathematical notations.

true

Terminal is the first and last symbols in the flowchart.

true

The << symbol used for displaying the output is known as the insertion operator

true

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

true

The flowchart should be clear, neat and easy to follow.

true

The tool you use should be a compiler and/or an interpreter, depending on the language you're working with and your needs.

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.

true

To insert a line break, a new line character shall be inserted at the exact position the lines should be broken.

true

Use appropriate naming conventions and be consistent in writing pseudocodes.

true

When coding, follow the syntax to prevent committing errors.

true

When we want to develop a program using any programming language, we follow a sequence of steps called phases

true

Whenever flowchart becomes complex or it spreads over more than one page, it is useful to use connectors to avoid any confusions.

true

The function is to run the value toward zero and returns the nearest integral value .

trunc()


Kaugnay na mga set ng pag-aaral

Consumer Behavior Ch. 14 Dr. Myles Landers

View Set

Biology | Semester 2 | Tonicity Practice | Study Guide

View Set