Number Systems
Conversion
Division
Textbox Properties
Other Stuff
100
The decimal number system is called
Base 10
100
What is data promotion? What is data demotion?
Promotion: converting from one type to another when the result is stored in MORE bits than the original. Demotion is the opposite.
100
What is ALWAYS the result when one integer is divided by another?
An integer (remainder is dropped)
100
The maximum number of characters that are stored in a textbox are determined by
The Maxlength property
100
What is the purpose of putting code in the form_1 load event handler?
This code gets executed when the form loads
200
The binary number system is called
base 2
200
Assigning an integer to a character data type would be considered promotion or demotion?
Demotion (int stores in 32 bits, character in 8 bits)
200
What is done to avoid integer division problems?
Convert one of the numbers to double or float
200
Finish this code for assigning the first character of txtChar->Text to the character variable mychar?
mychar=txtChar->Text ;
200
An ASCII character is stored in
An eight bit byte
300
Binary number system allows what two digits?
0 and 1
300
What type of conversion (promotion or demotion) can cause data loss?
demotion
300
What type of division is needed to return the remainder portion of integer division?
Modulus division (%)
300
Values in text boxes should always be aligned this way
right
300
What does a control table list?
All the interface objects, their usage & the associated events
400
True or False binary numbers cannot be used to represent character data.
False
400
Give me an example of a data promotion
Double to float, int, char or bool Float to int, char or bool Int to char or bool Char to bool
400
When the real number 10.86 truncated, what is the result?
10
400
What does the backcolor property do in a textbox?
Set the color of the background of the textbox.
400
Will a compiler warning stop the program from running?
No, it warns you of a possible problem, but continues (this happens when you have data loss, or variables you declare but don’t use)
500
Eight bits can represent how many different values?
256 (0-to 255)
500
Give me an example of a data demotion (and loss)?
Double to anyting Float t int Char int to char Char to bool
500
An integer divided by a non 0 integer always results in
An integer
500
What does the read only text box property do when it is set to false?
Does not allow a user to input into the box.
500
Give me a shorthand code that accomplishes the same as Num=Num+1;
Num+=1;
Continue
ESC
Reveal Correct Response
Spacebar
M
e
n
u
Team 1
0
+
-
C++ Data Conersion
No teams
1 team
2 teams
3 teams
4 teams
5 teams
6 teams
7 teams
8 teams
9 teams
10 teams
Custom
Press
F11
Select menu option
View > Enter Fullscreen
for full-screen mode
Edit
•
Print
•
Download
•
Embed
•
Share
JeopardyLabs