100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

COSC 2436 ALL CHAPTER FINAL UPDATED ACTUAL Exam Questions and CORRECT Answers

Beoordeling
-
Verkocht
-
Pagina's
86
Cijfer
A+
Geüpload op
15-12-2024
Geschreven in
2024/2025

COSC 2436 ALL CHAPTER FINAL UPDATED ACTUAL Exam Questions and CORRECT Answers The devices that feed data and programs into computers are called ____ devices. - CORRECT ANSWER - input ____ represent information with a sequence of 0s and 1s. - CORRECT ANSWER - Digital signals A sequence of eight bits is called a___________. - CORRECT ANSWER - byte The term GB refers to ___. - CORRECT ANSWER - gigabyte

Meer zien Lees minder
Instelling
Cosc
Vak
Cosc











Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
Cosc
Vak
Cosc

Documentinformatie

Geüpload op
15 december 2024
Aantal pagina's
86
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

Voorbeeld van de inhoud

COSC 2436 ALL CHAPTER FINAL
UPDATED ACTUAL Exam Questions and
CORRECT Answers
The devices that feed data and programs into computers are called ____ devices. - CORRECT
ANSWER - input



____ represent information with a sequence of 0s and 1s. - CORRECT ANSWER - Digital
signals


A sequence of eight bits is called a___________. - CORRECT ANSWER - byte



The term GB refers to ___. - CORRECT ANSWER - gigabyte



consists of 65,536 characters. - CORRECT ANSWER - Unicode


A program called a(n) ____ combines the object program with the programs from libraries. -
CORRECT ANSWER - linker



____ is a valid char value. - CORRECT ANSWER - 'A'



An example of a floating point data type is ____. - CORRECT ANSWER - double



The length of the string "computer science" is ____. - CORRECT ANSWER - 16


In a C++ program, one and two are double variables and input values are 10.5 and 30.6. After the
statement cin >> one >> two; executes, ____. - CORRECT ANSWER - one = 10.5, two =
30.6

,Which of the following is the newline character? - CORRECT ANSWER - \n


Suppose that x is an int variable and y is a double variable and the input is:
10 20.7
Choose the values after the following statement executes: cin >> x >> y;. - CORRECT
ANSWER - x = 10, y = 20.7


Suppose that alpha is an int variable and ch is a char variable and the input is:
17 A
What are the values after the following statements execute?
cin >> alpha;

cin >> ch; - CORRECT ANSWER - alpha = 17, ch = 'A'


Suppose that ch1, ch2, and ch3 are variables of the type char and the input is:
AB
C
Choose the value of ch3 after the following statement executes:

cin >> ch1 >> ch2 >> ch3; - CORRECT ANSWER - 'C'


Suppose that x is an int variable, ch is a char variable, and the input is:
276.
Choose the values after the following statement executes:

cin >> ch >> x; - CORRECT ANSWER - ch = '276', x = '.'


Suppose that alpha, beta, and gamma are int variables and the input is:
100 110 120
200 210 220
300 310 320

,What is the value of gamma after the following statements execute?
cin >> alpha;
cin.ignore(100, '\n');
cin >> beta;
cin.ignore(100,'\n');

cin >> gamma; - CORRECT ANSWER - 300


Suppose that ch1 and ch2 are char variables and the input is:
WXYZ
What is the value of ch2 after the following statements execute?
cin >> ch1;
ch2 = cin.peek();

cin >> ch2; - CORRECT ANSWER -X


Manipulators without parameters are part of the ____ header file. - CORRECT
ANSWER - iostream


Consider the following program segment.
ifstream inFile; //Line 1
int x, y; //Line 2
... //Line 3
inFile >> x >> y; //Line 4


Which of the following statements at Line 3 can be used to open the file progdata.dat and input
data from this file into x and y at Line 4? - CORRECT ANSWER -
inFile.open("progdata.dat");


Suppose that ch1 and ch2 are char variables, alpha is an int variable, and the input is:
A 18

, What are the values after the following statement executes?
cin.get(ch1);
cin.get(ch2);

cin >> alpha; - CORRECT ANSWER - ch1 = 'A', ch2 = ' ', alpha = 18



The expression in an if statement is sometimes called a(n) ____. - CORRECT ANSWER -
decision maker


What is the output of the following C++ code?


int x = 35;
int y = 45;
int z;


if (x > y)
z = x + y;
else
z = y - x;


cout << x << " " << y << " " << z << endl; - CORRECT ANSWER - 35 45 10


When one control statement is located within another, it is said to be ____. - CORRECT
ANSWER - nested


What is the output of the following code?


if (6 > 8)
{
€9,97
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten


Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
MGRADES Stanford University
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
1123
Lid sinds
2 jaar
Aantal volgers
104
Documenten
68962
Laatst verkocht
7 uur geleden
MGRADES (Stanford Top Brains)

Welcome to MGRADES Exams, practices and Study materials Just think of me as the plug you will refer to your friends Me and my team will always make sure you get the best value from the exams markets. I offer the best study and exam materials for a wide range of courses and units. Make your study sessions more efficient and effective. Dive in and discover all you need to excel in your academic journey!

3,8

178 beoordelingen

5
76
4
31
3
47
2
9
1
15

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen