Which of the following returns a bool?

a. length
b. empty
c. capacity
d. resize


b. empty

Computer Science & Information Technology

You might also like to view...

Read the following scenario. Provide the command(s) in the context of the environment established in the scenario. Write your answers on the lines under each question.

1. List files in your current directory that are 5 days old. 2. List files in your home directory that are larger than 6 blocks 3. Find all hidden files pathnames, starting from your current directory. 4. Starting from your current directory, find and delete all instances of myfile. 5. Starting from your current directory, find and delete all instances of myfile and ask for confirmation before deletion. 6. Starting from your current directory, find all the files that their filenames are two characters. 7. Display the last 20 lines of the file called xyz. 8. Starting from your current directory, find all instances of the files with .cpp extension 9. Starting from your home directory, find all the files that their names start with letter A, B, C, or D. 10. Starting from your home directory, find all the files that their names end with letter A, B, C, or D. 11. Display first 5 lines of the file named Xfile 12. Display how many lines are in the file named Xfile 13. Display the first 3 fields of the file named Xfil, using the space character as field delimiter 14. Append the file named Xfile to a file named Zfile 15. Append files named Afile,Bfile and Cfile to a file named Zfile 16. Rename a file called Xfile to Zfile 17. Display the content of the Xfile one screen at a time. 18. Copy a file named Xfile to a file named Zfile and as ask for confirmation before coping the files 19. Display the last 10 lines of the Xfile 20. Link (create another reference name) Xfile to Zfile

Computer Science & Information Technology

Write an HTML page that plays some background music when the page is first loaded. Use a JavaScript function to do this.

What will be an ideal response?

Computer Science & Information Technology

If a function prototype using a call by reference using pointers is int CalcInfo(float * p1, float * p2); how would you write the same prototype using a call by reference using reference parameters?

A. int CalcInfo(float p1, float p2); B. int CalcInfo(float r1, float r2); C. int CalcInfo(&*p1, &*p2); D. int CalcInfo(float &r1, float &r2);

Computer Science & Information Technology

Loops are frequently used to validate data.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology