The computer science professors take academic honesty and Longwood's Honor Code very seriously. Students that are academically dishonest are trying to gain an unfair advantage in a course, and we care deeply about establishing a fair environment for all our students.
Individual policies differ in some details, much as the real-world policies you'll have to obey after graduation may differ according to your particular job and situation. You will need to pay attention to the policy for each class, and ask if you find anything unclear. However, we would like to highlight a few broad rules that are most important:
Plagiarism is an important form of academic dishonesty, involving the use of another person's work without proper citation. This is true even if the work in question is a computer program: when you use someone's code, you should be careful to indicate specifically which parts of your program are original and which are taken from your source. For code, it is usually sufficient to place a comment above the line or lines that are not original.
The other major form of academic dishonesty is cheating: circumventing the rules and restrictions a professor has placed on an assignment. These restrictions come in various forms. A policy may treat two or three lines of program code differently from large blocks of code. Some assignments, and some professors, may entirely forbid you from looking at code from another student or from the Internet, while others may permit it or only partially restrict it. Make sure you understand what your professor is looking for!
Finally, remember that the faculty are here to help you. If you do not understand what is expected, ask your professor for clarification. If you ever feel that plagiarizing or cheating are your only option, you need to seek more help from the professor.