Coding

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

What is the result of 11%3?

2

What is the result of the integer division of 13 divided by 5?

2 (but it should be 2.6)

Which expression is invalid code?

2(5+3)

Which expression is true?

2>5 or 6<=8

What is the result of this expression 5*(3-2)?

5

What is the variable Sum after the following pseudocode?

5

What is the result of this expression 6+3/3?

7 (should be 3)

Which is the assignment operator?

=

To avoid an infinite loop, what must the code include?

A way to meet the exit condition

Software Dev Cycle where you solve the problem with pseudocode:

Design

Software Dev Cycle where you add comments

Documentation

Software Dev Cycle where you code the application

Implementation

What is the correct order elements should be put in a for loop?

Initialization, Condition, Incrementing

A program's output produces incorrect result is what type of error?

Logic

Which expression is a valid assignment statement?

MPG=miles/gallons

Software Dev Cycle where you identify the specifications:

Requirements

A program that terminate unexpectedly on execution is an what they of error

Run-Time

Which of the following stores a value that can be changed:

Variable

The stage of software development cycle when you are testing the program for accuracy?

Verification

Which expression increments the variable (adds 1)?

a=a+1

Which of the following is NOT part of the testing a program?

checking for comments

What is the process of converting source code into machine code?

compiling

Which of the following stores a value that CANNOT be changed?

constant

What is the process for fixing an error in a program?

debugging

What must be done before a variable can be used?

declared

Which is a pre-test loop?

do-while

3.14159 (pi) is an example of:

floating point number

Which situation is considered ethical?

giving proper credit to pre-existing code

Which expression executes its block of code only when the test is true?

if

Which of the following expressions does NOT loop?

if - else

Which of the following would LEAST likely be found in a software developer's job description?

install cables

Number of people in the room is an example of:

integer

Which of the following is a valid identifier?

milesDriven

What is a loop within a loop or an if within an if?

nested

Which of the follwing is NOT a career field in computer programming/software design?

network administrator

Which of the following might be declared as a constant?

numbers of inches in a foot

Why would a function/method be used?

reuse the same code

Definition of an algorithm

steps to solve a problem

Person's first name is an example of:

string

Something that prevents a program from compiling is what they of error?

syntax

When varNum=9, how does the expression (varNum>7) evaluate?

true

What is coding?

typing a program in a computer language


Set pelajaran terkait

Biology Test 2 (Chordates + Fishes + Amphibians + Reptiles + Birds + Mammals)

View Set