100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

COSC 1436 Final Solved Solutions 2025

Rating
-
Sold
-
Pages
28
Grade
A+
Uploaded on
19-02-2025
Written in
2024/2025

COSC 1436 Final Solved Solutions 2025

Institution
COSC
Course
COSC










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

Written for

Institution
COSC
Course
COSC

Document information

Uploaded on
February 19, 2025
Number of pages
28
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

COSC 1436 Final Solved Solutions
2025

The CPU has 2 main parts: - Answer - The control unit and the arithmetic unit



A byte has how many bits? - Answer - 8 bits



Programming Syntax - Answer - The rules of grammar used by a language



Algorithm - Answer - A set of well defined steps for performing a task or solving a problem



System Software - Answer - The programs that manage the computer hardware and the programs that
run on them



In a C++ program two slash marks (//) indicate - Answer - the beginning of a comment



Literal data signs - Answer - Values that do not change while the program is running



Variable definitions - Answer - Every variable needs a definition



Numeric data points in C++ can be classified into two general categories - Answer - integer and floating
point



What symbol is used o begin a pre-processor directive - Answer - # (pound sign)



Directives DO NOT have to end with what symbol? - Answer - ; (semi-colon)



All variables must be - Answer - operationally defined

,The first character of an identifier must be what? - Answer - an alphabetic character or an underscore



After the first character you may use what characters? - Answer - alphabetic characters, number, and
underscore characters



Which of the following definitions are syntactically correct? - Answer - int MyVar; & int myVar



Unsigned integers always treat the sign bit as what part of the number? - Answer - Magnitude



what form is this constant: 0x75A - Answer - Base 8



what character does char c = "a"; compile into - Answer - char c



Classic C-strings end with what null terminator - Answer - \0



what does a floating point number type default to - Answer - signed



what are true and false represented by in C++ - Answer - 0 for false values and any non-zero value for
true values



In C++ the following relationship regarding type size is always true for all platforms - Answer -
sizeof(short) <= sizeof(int) <= sizeof(long)



The following statement displays: cout << 1 % 4 - Answer - it will produce 1



What program causes the program to wait until information is typed at the keyboard and the enter key is
pressed - Answer - Cin object



What operator always follows the Cin object? - Answer - >>

, What operator always follows the Cout object? - Answer - <<



What operator is used for concatenation? - Answer - + Plus sign



what can be used to override the rules of operator precedence in a mathematical expression? - Answer -
( ) Parenthesis



In the following C++ statement, what will be executed first according to the order of precedence?



result = 6 - 3 * 2 + 7 - ; - Answer - 3 * 2



This I/O manipulator in a cout stream is used to establish a field width for the value immediately
following it - Answer - setw() (set width)



What is the value of number after the following statements execute?



int number = 10;



number += 5;



number -= 2;



number *= 3; - Answer - 39



Which statement is equivalent to the following?



x = 2 * x; - Answer - x *= 2;
$12.49
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
GRADEQUEEN

Get to know the seller

Seller avatar
GRADEQUEEN phoenix university
View profile
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
11 months
Number of followers
0
Documents
151
Last sold
-
GRADEQUEEN

TIGHT DEADLINE? I CAN HELP Grade queen specializes in providing guides that includes exams, test and quiz questions. we work every aspect and take into account your wishes everyday. Feel Free to contact me for any personalized exams you may be in search for. Thank you &amp; All the Best.

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

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

Frequently asked questions