Csci 240 - Study guides, Class notes & Summaries
Looking for the best study guides, study notes and summaries about Csci 240? On this page you'll find 18 study documents about Csci 240.
All 18 results
Sort by
-
CSCI 240 Final Exam UPDATED ACTUAL Questions and CORRECT Answers
- Exam (elaborations) • 19 pages • 2024
-
- $9.99
- + learn more
CSCI 240 Final Exam UPDATED ACTUAL 
Questions and CORRECT Answers 
The class X contains two data members: an integer called xVal and a float called xPerc. 
Which of the following is NOT a valid prototype for the class definition for X? 
a. void X( int, float ); 
b. void setxVal( int ); 
c. float getxPerc(); 
d. X( int, float ); 
e. void printX(); - CORRECT ANSWER- a. void X( int, float );
-
CSCI 240 FINAL EXAM 2024 ACTUAL QUESTIONS AND ANSWERS WITH COMPLETE SOLUTION
- Exam (elaborations) • 13 pages • 2024
-
- $14.99
- + learn more
CSCI 240 FINAL EXAM 2024 ACTUAL QUESTIONS AND ANSWERS WITH COMPLETE SOLUTION
-
CSCI 240 Final Exam Questions And Answers Rated 100% Correct!!
- Exam (elaborations) • 13 pages • 2024
-
- $7.99
- + learn more
The null terminator is __________. 
a. used to advance to a new line when executing a cout statement 
b. represented as '0' 
c. used to end a valid string 
d. a movie starring Arnold Schwarzenegger 
e. All of the statements (a-d) are correct 
f. Only statements b and c are correct - ️️f. Only statements b and c are correct. 
Which of the following statements (a-d) about classes is true? 
a. A class can contain both data members and methods 
b. The members of a class may be private ...
-
CSCI 240 FINAL EXAM 2024 ACTUAL QUESTIONS AND ANSWERS WITH COMPLETE SOLUTION
- Exam (elaborations) • 26 pages • 2024
-
- $12.49
- + learn more
CSCI 240 FINAL EXAM 2024 ACTUAL QUESTIONS AND ANSWERS WITH COMPLETE SOLUTION
-
CSCI 240 Final Exam Questions and Correct Verified Answers Latest Version
- Exam (elaborations) • 34 pages • 2024
- Available in package deal
-
- $13.49
- + learn more
The class X contains two data members: an integer called xVal and a float 
called xPerc. Which of the following is NOT a valid prototype for the class 
definition for X? 
a. void X( int, float ); 
b. void setxVal( int ); 
c. float getxPerc(); 
d. X( int, float ); 
e. void printX(); 
 a. void X( int, float ); 
An instance of a class is known as a/an __________. 
a. variable 
b. method 
c. object 
Master01 | September, 2024/2025 | Latest update 
1 | P a g e | © copyright 2024/2025 | Grade A+ 
d...
Get paid weekly? You can!
-
NIU CSCI 240 Exam 1 Study Guide Questions and Correct Verified Answers Latest Versio
- Exam (elaborations) • 22 pages • 2024
- Available in package deal
-
- $12.49
- + learn more
main() marks the beginning of a C++ program. What C++ reserved word 
precedes it? 
 int 
Most lines in a C++ program end with a 
 ; (semi-colon) 
According to the lecture notes, the two main conceptual components of a 
program are _____ and _____. 
 data and instructions 
Modify (rewrite) the following instruction so that the subtraction is evaluated 
first: 
i = a * b / c - d; 
 i= a*b/(c-d); 
About how many decimal places of accuracy does a float have? 
Master01 | September, 2024/2025 | Lat...
-
NIU CSCI 240 Exam 2 MC Questions and Correct Verified Answers Latest Version
- Exam (elaborations) • 16 pages • 2024
- Available in package deal
-
- $11.49
- + learn more
Write a complete function called calcTriArea that will calculate and return 
the area of a triangle. It takes two float/double values: the base and height 
as its arguments. The area of a triangle is one-half the base times the height. 
 double calcTriArea(double base, double height) 
 
 { 
 
 returns .5* base* height; 
 
 } 
Write a complete function called findLarge that will return the larger of two 
integers. It takes two integers (the values to be compared) as its arguments. 
Master01 | ...
-
CSCI 240 Final Exam Practice Questions and Answers 100% Pass
- Exam (elaborations) • 25 pages • 2024
-
- $12.49
- + learn more
CSCI 240 Final Exam Practice Questions 
and Answers 100% Pass 
The class X contains two data members: an integer called xVal and a float called xPerc. Which of the 
following is NOT a valid prototype for the class definition for X? 
a. void X( int, float ); 
b. void setxVal( int ); 
c. float getxPerc(); 
d. X( int, float ); 
e. void printX(); - ANSWER-a. void X( int, float ); 
An instance of a class is known as a/an __________. 
a. variable 
b. method 
c. object 
d. thing - ANSWER-c. object 
The...
-
NIU CSCI 240 Exam 1 Study Guide Questions And Answers Latest Updates
- Exam (elaborations) • 8 pages • 2024
-
- $7.99
- + learn more
cin >> i; - ️️The code above states that there will be a value inputed (allows the 
user to input a value)/ associated with i later on. For example it could be used in a way 
such as i++, if the input value of i is 1 the ++ will incrementally increase i by 1 thus 
making i 2. 
assuming that C and F are both declared as doubles, and F has a valid value. - 
️️What's wrong with it is you're always going to get 0 because it is integer division 
and 5 does not go into 9 evenly. Yo...
-
CSCI 240: Quizzes 10-12 Questions and Correct Verified Answers Latest Version
- Exam (elaborations) • 11 pages • 2024
- Available in package deal
-
- $10.49
- + learn more
Write the constructor for the Time class. It takes three integer arguments: the 
potential hour, minute, and second values for the Time object. The 
constructor should pass the individual arguments to the setHour, setMinute, 
and setSecond methods to initialize the data members. 
 Time :: Time ( int newHr, int newMin, int newSec ) 
 { 
 setHour ( newHr ); 
 setMinute ( newHr ); 
 setSecond( newSec ); 
 } 
Write the setHour method for the Time class. It takes an integer argument that 
will po...
That summary you just bought made someone very happy. Also get paid weekly? Sell your study resources on Stuvia! Discover all about earning on Stuvia