Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 31 pages
Exam (elaborations)

CSCI 121 Exam 1 Study Questions with well explained answers

Document preview thumbnail
Preview 4 out of 31 pages

Computer Program - A set of instructions for a computer to follow Software - The collection of programs used by a computer Bit - A digit that can assume only the values 0 or 1 Byte - Eight-bit portion of memory High-level languages - Are designed to be easy for human beings to write programs in and be easy for human beings to understand Popular High Level Languages - C, C++, C#, Java, Python Compiler - A program that translates code in a high-level language (such as C++) into a machinelanguage program that the computer can directly understand and execute Linker - combines object code from a C++ program with the object code for program pieces Source Code - The input data from some other program Object Code - The output data that has been translated Five components of a computer: - Input Devices, Output Devices, Processer (CPU), Main Memory, Secondary Memory Three Properties of OOP - 1. encapsulation2. inheritance 3. polymorphism Steps of software life cycle - Planning Analysis design implementation Testing Maintenance Include directives and their purpose - #include iostream Tells the compiler where to find information about certain items that are used in your program Main function - int main() { } Main part of the program, braces indicate beginning and end of the main part of the program. Types of program errors: - error message warning messagerun-time errors Logic errors Type of comments: - // or /* ... */ Rules for variable names - -Must begin with a letter or underscore. -Followed by any sequence of letters, numbers of underscores (_) -No spaces -Case sensitive (uppercase and lowercase are different). Keywords and their meanings - words with predefined meanings that cannot be used as names for variables or anything else. italicized. do, for, if, else, bool, string, true, char, double, int, etc. Declare variables - tells the compiler and computer what kind of data you are storing in the variable Int - Declares the identifier to be a type int which means that when initializing, the variable after int MUST be a whole number


Document information

Uploaded on
May 26, 2024
Number of pages
31
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$10.19

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Brainarium
3.8
(333)
Sold
1977
Followers
1045
Items
23820
Last sold
1 day ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.