Weekend Sale - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 65percent

Welcome To DumpsPedia

Scripting-and-Programming-Foundations Sample Questions Answers

Questions 4

Which kind of language is HTML?

Options:

A.

Dynamically typed

B.

Markup

C.

Statically typed

D.

Object-oriented

Buy Now
Questions 5

A function determines the least common multiple (LCM) of two positive integers (a and b). What should be the input to the function?

Options:

A.

L only

B.

a * b

C.

a and L

D.

a and b

Buy Now
Questions 6

What is output by calling Greeting() twice?

Options:

A.

Hello!

B.

Hello!!

C.

Hello!Hello!

Buy Now
Questions 7

A particular sorting algorithm takes integer list [10, 6, 8] and incorrectly sorts the list to [6, 10, 8]. What is true about the algorithm’s correctness for sorting an arbitrary list of three integers?

Options:

A.

The algorithm is incorrect.

B.

The algorithm only works for [10, 6, 8].

C.

The algorithm’s correctness is unknown.

D.

The algorithm is correct.

Buy Now
Questions 8

Which two statement describe advantages to using programming libraries? Choose 2 answers

Options:

A.

Using libraries turns procedural code into object-oriented code.

B.

Using a library prevents a programmer from having to code common tasks by hand

C.

A program that uses libraries is more portable than one that does not

D.

Libraries always make code run faster.

E.

The programmer can improve productivity by using libraries.

F.

Using a library minimizes copyright issues in coding.

Buy Now
Questions 9

Which two types of operators are found in the code snippet not (g != S)?

Options:

A.

Equality and arithmetic

B.

Assignment and arithmetic

C.

Equality and logical

D.

Logical and arithmetic

Buy Now
Questions 10

A software developer determines the mathematical operations that a calculator program should support. Which two Waterfall approach phases are involved?

Options:

A.

Analysis and design

B.

Design and implementation

C.

Implementation and testing

D.

Design and testing

Buy Now
Questions 11

Which phase of a waterfall approach defines specifies on how to build a program?

Options:

A.

Analysis

B.

Implementation

C.

Design

D.

Testing

Buy Now
Questions 12

Which output results from the following pseudocode?

x = 5

do

x = x + 4

while x < 18

Put x to output

Options:

A.

9

B.

18

C.

21

D.

25

Buy Now
Questions 13

A function should convert a Fahrenheit temperature (F) to a Celsius temperature. What should be the output from the function?

Options:

A.

C only

B.

F only

C.

F and C

D.

F and 32

Buy Now
Questions 14

Which characteristic specifically describes an object-oriented language?

Options:

A.

Supports creating programs as items that have data plus operations.

B.

Supports creating programs as a set of functions.

C.

Requires a compiler to translate to machine code.

D.

Can be run on any machine that has an interpreter.

Buy Now
Questions 15

What is the proper way to declare a student's grade point average throughout the term it this item is needed in several places in a program?

Options:

A.

variable int gpa

B.

constant float gpa

C.

constant int gpa

D.

variable float gpa

Buy Now
Questions 16

What is a string?

Options:

A.

A built-in method

B.

A very precise sequence of steps

C.

A sequence of characters

D.

A name that refers to a value

Buy Now
Questions 17

What is required for all function calls?

Options:

A.

Parameters

B.

Input arguments

C.

Output values

D.

Function name

Buy Now
Questions 18

A programmer receives requirements from customers and decides to build a first version of a program. Which phase of an Agile approach is being carried out when the programmer starts writing the first version?

Options:

A.

Implementation

B.

Testing

C.

Design

D.

Analysis

Buy Now
Questions 19

What is the Agile phase that results in a list of objects to be written?

Options:

A.

Design

B.

Testing

C.

Implementation

D.

Analysis

Buy Now
Questions 20

A software developer creates a list of all objects and functions that will be used in a board game application and then begins to write the code for each object. Which two phases of the Agile approach are being carried out?

Options:

A.

Analysis and design

B.

Design and implementation

C.

Analysis and implementation

D.

Design and testing

Buy Now
Questions 21

Review the following sequence diagram:

What does a sequence diagram do?

Options:

A.

Shows interactions awl indicates an order of events

B.

Shows interactions but does not specify an order of events

C.

Shows sialic elements of software

D.

Shows an order of events but does not specify all interactions

Buy Now
Questions 22

Consider the given function:

function K(string s1, string s2)

Put s1 to output

Put " and " to output

Put s2 to output

What is the total output when K("sign", "horse") is called 2 times?

Options:

A.

sign and horse and sign and horse

B.

sign and horsesign and horse

C.

sign and horse

D.

sign and horse

E.

sign and horse sign and horse

Buy Now
Questions 23

What is the loop variable update statement in the following code?

Options:

A.

Put j to output

B.

Integer j = -1

C.

J < 24

D.

J = j + 3

Buy Now
Questions 24

One requirement for the language of a project is that it is based on a series of cells. Which type of language is characterized in this way?

Options:

A.

Functional

B.

Static

C.

Markup

D.

Compiled

Buy Now