Upgrade to remove ads
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.

nahihirapan lng na questions

        Help!  

Question
Answer
It is the data type of the value the function returns.   Return Type  
🗑
A function with no return value is _______________.   Void function  
🗑
Which of the following is NOT a proper function prototype (definition)?   func(int x)  
🗑
A function can be called from another function using its ____________   name  
🗑
To execute the codes of function, the user-defined function needs to be __________.   invoked  
🗑
Which if the following is a way to pass an argument in C++?   Call by Value and Call by Reference  
🗑
In the function void primeNumber (int n); which of the following is NOT true?   Function is overloaded  
🗑
What are the advantages of passing arguments by reference?   Changes to parameter values within the function also affects the original arguments  
🗑
Which of the following function declaration using the default argument is correct?   int foo(int x, int y =5, int z=10)  
🗑
Which of the following does return a precision number?   double myGrade (double p, double q)  
🗑
Which of the following is a complete function?   int functCall (int x) {return x = x+1;}  
🗑
In C++, arguments to functions always appear within ______________. Group of answer choices   parenthesis  
🗑
If the user didn’t supply the user value means, then what value will the function take?   its default value  
🗑
In a program you saw the following: int myFunctionTools(int x) float myFunctionTools(float x) double myFunctionTools(double x, double y) What‘s the best description of the given functions?   Functions are overloaded  
🗑
To call the function startCall() with the number 4432 and 3, what would you write in the main() function?   startCall(4432, 3);  
🗑
When a parameter is passed to a function, it is called ______________.   Argument  
🗑
Which of the following is not correct about the linked list?   Random access is not possible.  
🗑
It holds the information content or data to be represented by the node.   Data Item  
🗑
It is the process of going through all the nodes from one end to another end of a linked list   Traversing  
🗑
What is the basic component of a linked list?   Node  
🗑
A type of Linked list that where the last item contains link of the first element as next and the first element has a link to the last element as previous   Circular Linked list  
🗑
A type of Linked list where items can be navigated forward and backward.   Doubly Linked list  
🗑
An operation wherein data is added to the existing data of a file   Append  
🗑
Which of the following header file is required for creating and reading files?   fstream  
🗑
By default, all the files in C++ are opened in _________ mode.   Text  
🗑
Which stream class is used to both read and write on files?   fstream  
🗑
Which member function is used to determine whether the stream object is currently associated with a file?   is_open  
🗑
It is an identifiable entity with some characteristics and behavior   Object  
🗑
What is the additional feature in classes that were not in structures?   Member Functions  
🗑
Blueprint of an object   Class  
🗑
What symbol is used to define a function outside of the class?   ::  
🗑
Which of the following are available only in the class hierarchy chain?   Protected data members  
🗑
Which of the following concepts of OOPS means exposing only necessary information to the client?   Encapsulation  
🗑
Which of the following term is used for a function defined inside a class?   Member function  
🗑
Which of the following statements is correct in C++? Group of answer choices Structure members are private by default Structures can have functions as members Classes cannot have data as protected members. Class members are public by default.   Structures can have functions as members  
🗑
A Function that has its definition or its prototype within the class definition like any other variable.   Member Functions  
🗑
Compares up to num characters of the C string str1 to those of the C string str2   strncmp()  
🗑
Returns true provided character expression is a lowercase letter otherwise it returns false   islower()  
🗑
Which properly declares a variable of struct Person?   Person;  
🗑
Which of the following statements assigns a value to the hourlyWage member of the employee? hourlyWage.employee = 29.75; employee:hourlyWage = 7.50; employee->hourlyWage = 50.00; employee.hourlyWage = 75.00;   employee.hourlyWage = 75.00;  
🗑
If you have a structure named Person, how can you create a structure variable named s1 and s2?   Person s1, s2;  
🗑
What is the output of the program? #include <iostream> using namespace std; int main() { int myArray[] = {1,2,3,4,5,6}; for (int i = 0; i<6; i++) { cout << myArray[i] << " "; } }   1 2 3 4 5 6  
🗑
What is the correct definition of an array?   An array is a series of elements of the same type in contiguous memory locations  
🗑
What is the index number of the last element of an array with 100 elements?   99  
🗑
In order to have an array with 2 rows and 9 columns, the correct declaration should be:   int x[2][9];  
🗑
n a given array int x[3][4] = {{0,1,2,3}, {4,5,6,7}, {8,9,10,11}}; how many columns are there?   4  
🗑
Which of the following is a two-dimensional array?   int myArray2D[8][24];  
🗑
Which of the following function allows you to read on a character?   get()  
🗑
Compares up to num characters of the C string str1 to those of the C string str2   strncmp()  
🗑
Returns true if the provided character expression is a printing character other than whitespace, a digit, or a letter; otherwise returns false.   isprint()  
🗑
Returns true provided character expression is a lowercase letter otherwise it returns false   islower()  
🗑
Compares the C string str1 to the C string str2   strcmp()  
🗑
The sequence of contiguous characters in memory is called _____________   Character strings  
🗑
The append operator is denoted by:   +=  
🗑
What does concatenation mean?   Merging two strings  
🗑
Returns true if character expression is either a letter or a digit otherwise false   isalnum ()  
🗑
The same as the two-argument strcmp except that at most Limit characters are compared.   strncmp()  
🗑
Which of the following functions gets the length of a string?   length  
🗑
Which of the following is illegal? Group of answer choices int *ip; int *pi = 0; string s, *sp = 0; int i; double * dp = &i;   int *ip;  
🗑
A symbol used to access the value of an address   *  
🗑
Choose the right option: string* x, y;   x is a pointer to a string, y is a string  
🗑
Which of the following is NOT true about dynamic arrays?   Memory space is allocated during compile time  
🗑
It stores the memory address as its value   Pointer  
🗑


   

Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
 
To hide a column, click on the column name.
 
To hide the entire table, click on the "Hide All" button.
 
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
 
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.

 
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how
Created by: bobo ni jabez