Copy_of_CS216_quiz_1_Review - 1 Academic Integrity Rules � No hardcoding results � No copy of code online � No hiring any online services � No code

Copy_of_CS216_quiz_1_Review - 1 Academic Integrity Rules �...

This preview shows page 1 - 2 out of 5 pages.

1. Academic Integrity Rules: · No hardcoding results · No copy of code online · No hiring any online services · No code sharing or student tests sharing · No questions on any online forum other than piazza 2. Unix command that will list files present in directory with a .c extension: ls *.c 3. Single Command that will copy to 216 directory the files ending in .txt extension that exist in parent while you’re in it: cp *.txt ~/216 “*.txt” may need to be replaced but the other parts of the command fit 4. Write Unix command that will copy the file ex.txt present in the ~/tmp directory to: To current directory: cp ~/tmp/ex.txt . Your home directory: cp ~/tmp/ex.txt /home To the parent’s directory of the current directory: cp ~/tmp/ex.txt .. To root directory: cp ~/tmp/ex.txt / 5. Write a Unix command that will copy the folder commands_info present in the lecture examples folder of the ~/216public directory to your ~/216 directory. 6. What is Size of a char: 1 byte 7. Always lock your computer because people can take your code!! (
Image of page 1
Image of page 2

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture