Question

Programming languages allow the programmer to create his or her own functions which are called __________...

Programming languages allow the programmer to create his or her own functions which are called __________ __________ functions.

The function that returns the number of characters in a string is the __________ function.

__________ files contain records that must be processed in the order in which they were created.

The elements of an array are stored in __________ storage locations in the computer’s memory.

A variable that is declared outside all program modules, including the main module, has __________ scope.

If a bubble sort arranges a list of names in alphabetical order, from A to Z, the sort is __________ (ascending/descending).

A variable that is used to indicate whether or not a specific action has taken place is called a(n) __________.

The expression Floor(Random()*6) produces the numbers _____ through _____

In the statement: Open “MyDataFile” For Input As MyFile , the word Input tells us the file __________.

A(n) _______ __________ array named FullName is declared as FullName[x, y].

When a variable is passed by __________ to a submodule, that submodule receives only a copy of that variable.

The Declare statement allocates __________ storage locations to the array named Photos[23].

In the statement: Open “MyDataFile” For Input As MyFile , the word Input tells us the file __________.

The type of input that is provided by the user while a program is running is __________ input.

The items appearing in a subprogram header are known as __________.

Objects are made up of data and operations on that data, so we say that an object __________ data and operations.

When one loop is contained within another loop, we say these are __________ loops.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Programming languages allow the programmer to create his or her own functions which are called

USER DEFINED functions.

EXPLANATION : USER DEFINED functions are used by programmers to create there own functions.

The function that returns the number of characters in a string is the LENGTH function.

EXPLANATION : LENGTH function is used to calculate the length of string.

SEQUENTIAL files contain records that must be processed in the order in which they were created.

EXPLANATION : In sequential files we access in the order from start to end.

The elements of an array are stored in SEQUENCE OF CONSECUTIVE storage locations in the computer’s memory.

EXPLANATION : Elements of array are stored in consecutive memory storage.

A variable that is declared outside all program modules, including the main module, has GLOBAL scope.

EXPLANATION : Variables decalred outside functions including main function has Global scope.

If a bubble sort arranges a list of names in alphabetical order, from A to Z, the sort is ASCENDING (ascending/descending).

EXPLANATION : If output is A-Z then it is Ascending , if from Z-A descending.

A variable that is used to indicate whether or not a specific action has taken place is called a(n) FLAG.

EXPLANATION : The value of the flag is used to determine the next step of a program. Flags are often binary flags, which contain a boolean value (true or false).

The expression Floor(Random()*6) produces the numbers 0 through 5.

EXPLANATION : The range starts at 0 and maximum range of simple Random() is 0.9, hence 0 is starting range and end range is 0.9 * 6 = 5.4. After than Floor() will remove the fractional part resulting to 5

In the statement: Open “MyDataFile” For Input As MyFile , the word Input tells us the file MODE.

EXPLANATION : There are two arguments for opening a file first is file name and next is mode.

A(n) TWO DIMENSIONAL array named FullName is declared as FullName[x, y].

EXPLANATION : FullName[x,y] is a two dimensional array.

When a variable is passed by VALUE to a submodule, that submodule receives only a copy of that variable.

The Declare statement allocates 23 storage locations to the array named Photos[23].

EXPLANATION : Given Photos[23] so the storage allocated is also 23.

In the statement: Open “MyDataFile” For Input As MyFile , the word Input tells us the file MODE.

EXPLANATION : There are two arguments for opening a file first is file name and next is mode.

The type of input that is provided by the user while a program is running is CONSOLE input.

EXPLANATION : Input taken while running called console input.

The items appearing in a subprogram header are known as PARAMETERS.

EXPLANATION : The items appearing in a subprogram header are known as parameters.

Objects are made up of data and operations on that data, so we say that an object IS INSTANCE OF data and operations.

EXPLANATION : Class is collection of data and operations on that data. So object is instance of the class.

When one loop is contained within another loop, we say these are NESTED loops.

EXPLANATION : Loop inside anther loop called Nested loop.

Add a comment
Know the answer?
Add Answer to:
Programming languages allow the programmer to create his or her own functions which are called __________...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Visual C# Homework 2 You are to write a program which will create a class called...

    Visual C# Homework 2 You are to write a program which will create a class called Student Each student has a name age height and weight. These variables should be declared as private. Create the correct constructors and functions. In the main, you will create 5 students. Input the data for the 5 students from a file which already has information in it. Name the file “Information.txt”. After setting up all the data, it is time to sort based on...

  • Create a file called Sort.py (note the capitalization). Within that file, write two different Python functions....

    Create a file called Sort.py (note the capitalization). Within that file, write two different Python functions. Each function will take an array of integers as a parameter and sort those integers in increasing order. One will use insertion sort, and the other will use selection sort (described below). Simple functions will suffice here; do not create any classes. Your insertion sort function should be called insertion_sort(arr). Your selection sort function should be called selection_sort(arr). Selection sort must use a while...

  • Using C programming

    Using C, create a data file with the first number being an integer. The value of that integer will be the number of further integers which follow it in the file. Write the code to read the first number into the integer variable how_many.Please help me with the file :((This comes from this question:Write the code to dynamically allocate ONE integer variable using calloc (contiguous allocation) or malloc (memory allocation) and have it pointed to by a pointer (of type int...

  • #include <stdio.h> // Define other functions here to process the filled array: average, max, min, sort,...

    #include <stdio.h> // Define other functions here to process the filled array: average, max, min, sort, search // Define computeAvg here // Define findMax here // Define findMin here // Define selectionSort here ( copy from zyBooks 11.6.1 ) // Define binarySearch here int main(void) { // Declare variables FILE* inFile = NULL; // File pointer int singleNum; // Data value read from file int valuesRead; // Number of data values read in by fscanf int counter=0; // Counter of...

  • Write a menu based program implementing the following functions: (0) Write a function called displayMenu that...

    Write a menu based program implementing the following functions: (0) Write a function called displayMenu that does not take any parameters, but returns an integer representing your user's menu choice. Your program's main function should only comprise of the following: a do/while loop with the displayMenu function call inside the loop body switch/case, or if/else if/ ... for handling the calls of the functions based on the menu choice selected in displayMenu. the do/while loop should always continue as long...

  • C++ Programming

    PROGRAM DESCRIPTIONIn this project, you have to write a C++ program to keep track of grades of students using structures and files.You are provided a data file named student.dat. Open the file to view it. Keep a backup of this file all the time since you will be editing this file in the program and may lose the content.The file has multiple rows—each row represents a student. The data items are in order: last name, first name including any middle...

  • I've been assigned to create a new Java application called "CheckString" (without the quotation marks) according...

    I've been assigned to create a new Java application called "CheckString" (without the quotation marks) according to the following guidelines. ** Each method below, including main, should handle (catch) any Exceptions that are thrown. ** ** If an Exception is thrown and caught, print the Exception's message to the command line. ** Write a complete Java method called checkWord that takes a String parameter called word, returns nothing, and is declared to throw an Exception of type Exception. In the...

  • create a new Java application called "CheckString" (without the quotation marks) according to the following guidelines....

    create a new Java application called "CheckString" (without the quotation marks) according to the following guidelines. ** Each method below, including main, should handle (catch) any Exceptions that are thrown. ** ** If an Exception is thrown and caught, print the Exception's message to the command line. ** Write a complete Java method called checkWord that takes a String parameter called word, returns nothing, and is declared to throw an Exception of type Exception. In the method, check if the...

  • Write a C++ program that demonstrates use of programmer-defined data structures (structs), an array of structs, passing...

    Write a C++ program that demonstrates use of programmer-defined data structures (structs), an array of structs, passing an array of structs to a function, and returning a struct as the value of a function. A function in the program should read several rows of data from a text file. (The data file should accompany this assignment.) Each row of the file contains a month name, a high temperature, and a low temperature. The main program should call another function which...

  • For this c++ assignment, Overview write a program that will process two sets of numeric information....

    For this c++ assignment, Overview write a program that will process two sets of numeric information. The information will be needed for later processing, so it will be stored in two arrays that will be displayed, sorted, and displayed (again). One set of numeric information will be read from a file while the other will be randomly generated. The arrays that will be used in the assignment should be declared to hold a maximum of 50 double or float elements....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT