When the number "B10101010", or "0xaa" is shifted out LSBFIRST to a 74HC595 8-bit shift register, pin Q7's state is:
a) LOW (connected to GND)
b) completely unconnected
What is the state of pin Q7' of the 74HC595 when the same number is shifted out?
True or false: you can access the characters of a String by treating it as an array like this: String a = "lol"; char b = a[1]; in Arduino.
Can you print this to the Serial Monitor: 鐵路華工紀念碑 ?
What is the ASCII number of this character: 鐵
How does pin Q7' relate to pin Q7?
Name the short lead of an LED.
Name the long lead of an LED.
Direct current flows from:
a) From ground up to V+
b) From V+ to ground
c) Any way it wants
A correct answer is worth 10 points.
A wrong answer is worth 1 point.
An indirect answer is worth 2 points.
An unanswered question is worth 0 points.
Who will win?
Note: more questions can be posted before day of answer release without notice. Answers will be released on 2012/05/20.
When the number "B10101010", or "0xaa" is shifted out LSBFIRST to a 74HC595 8-bit shift register, pin Q7's state is:
a) LOW (connected to GND)
b) completely unconnected
Does a 74HC595 has a Q7 pin?
What is the state of pin Q7' of the 74HC595 when the same number is shifted out?
Same
True or false: you can access the characters of a String by treating it as an array like this: String a = "lol"; char b = a[1];
dkl65:
4) Can you print this to the Serial Monitor: ??????? ?
Any string is just a series of bytes. (or bits, if you want to think of it that way) So, yes, you can find a way to store such a string in a C++ constant or variable, and send it to the serial monitor. However, whether the serial monitor will display it correctly is another matter.
Name the short lead of an LED.
Mini-Me
8 ) Name the long lead of an LED.
Harold
Direct current flows from:
a) From ground up to V+
b) From V+ to ground
c) Any way it wants
Electron, or hole current?
More questions to come (maybe)!
What is your name? What is your quest? What is your favourite color?
These questions really aren't defined well enough to answer. In most of them I think I know the answer you are after, but the (lack of) wording makes it difficult to be sure.
dkl65:
When the number "B10101010", or "0xaa" is shifted out LSBFIRST to a 74HC595 8-bit shift register, pin Q7's state is:
a) LOW (connected to GND)
b) completely unconnected
What is "shifted out." Does this imply that SRCLK and and RCLK remain unchanged? "Shifting out" a data pattern from one device isn't the same as "shifting in" a pattern from another. For example, if clock was never toggled and only SER (Pin 14) was toggled, then Q7 remains unchanged.
dkl65:
2) What is the state of pin Q7' of the 74HC595 when the same number is shifted out?
Again, depends on how the clocks are being used and definition of "shifted out". Assuming the clocks were not toggled, I would expect Q'7/Q'H (aka serial out, depending on the manufacturer of the chip) to remain unchanged.
dkl65:
3) True or false: you can access the characters of a String by treating it as an array like this: String a = "lol"; char b = a[1]; in Arduino.
True
dkl65:
4) Can you print this to the Serial Monitor: ??????? ?
No
dkl65:
5) What is the ASCII number of this character: ?
There isn't one, it isn't an ASCII Character. It is Unicode.
dkl65:
6) How does pin Q7' relate to pin Q7?
Pin Q7' of What?
dkl65:
7) Name the short lead of an LED.
Name the long lead of an LED.
What about surface mount LEDs? Perhaps you meant Negative (Cathode) and Positive (Anode) sides of a through-hole LED?
Direct current flows from:
a) From ground up to V+
b) From V+ to ground
c) Any way it wants[/quote]
Based on Conventional or Electron Flow?
b) completely unconnected.
It can also be called "high impendance".
Code used:
void updateLEDs(int value){
digitalWrite(latch, LOW); //Pulls the chips latch low
shiftOut(data, clock, LSBFIRST, value); //Shifts out the 8 bits to the shift register
digitalWrite(latch, HIGH); //Pulls the latch high displaying the data
}
about 2.11V
True.
No.
Instead, it prints “éµè•¯è¯å•¥ç´å¿µç”
Trick question! It is not an ASCII character.
They don't have any relation.
Cathode.
8 ) Anode.
a) from ground up to V+.
V+ is positively charged, and ground is neutral. V+ will pull electrons toward it. "Current is often regarded as flowing from + to -; a legacy of ancient misunderstandings".
Scores:
James C4S: 38
johnwasser: 35
robtillaart: 14
justjed: 6
dkl65:
4) No.
Instead, it prints “é?µè•¯è?¯å•¥ç´€å¿µç”
Scores:
justjed: 6
Actually, if you read the question again, it asks, "Can you print this to the Serial Monitor ...?". Obviously, you can, as demonstrated by the quoted output. That the software doesn't correctly display it as ideograms in the correct codepage is immaterial, as the question didn't contain that as a criterion. Had it asked, "Can you print this correctly IN the Serial Montor", that would be different.
7 and 8 aren't, technically, questions. Taking 'Name' as 'give a name to', I did.
Therefore, my score is at least 32.
Of course, you can argue that I'm being needlessly pedantic, and in reality, I just thought I'd have some fun with it. Those test questions make assumptions, presumably supplied by the context of the class in which they're being asked, but we here don't know what those are. And English is terribly imprecise. Of course, I don't expect most instructors to have much of a sense of humor about this, and count yourself fortunate if you find one who does.
7 and 8 aren't, technically, questions. Taking 'Name' as 'give a name to', I did.
Yes, you did. But you named them incorrectly; that is worth 1 point each.
Of course, you can argue that I'm being needlessly pedantic
If that means that you are trying to find faults within the question, and argue that you are correct, then you are being "needlessly pendantic". You are interpreting the questions in an alternate, incorrect way, which some people love to do.
The Serial monitor cannot write Chinese. But I can.
dkl65:
You are interpreting the questions in an alternate, incorrect way, which some people love to do..
This demonstrates the reason why precision is needed when asking engineering questions.
For example, your first question would have been significantly more clear if you had included the code you posted with the answer. Of course, a schematic along with it would have been ideal... Just like when people coming here asking questions about their projects.
dkl65:
You are interpreting the questions in an alternate, incorrect way, which some people love to do.
The alternate way isn't incorrect. And, while I admit to a predilection for narrowness in language usage, particularly in technical environments, there's more too it than that. For example, if you rely on manufacturers always following a particular standard when producing LEDs, you will eventually find yourself with a non-working circuit. See LED polarity. As someone who sometimes has difficulty learning certain electronic things, due to prior misunderstandings arising from either overly-simplified or poorly written explanations, I also hope to help you avoid the same pitfall. There's an adage which is perhaps useful: "The good thing about standards is that there are so many to choose from". I hope that when you encounter an LED which doesn't follow the short/long convention, you will not be surprised.
Maybe it would be too pretentious, but see also Koan. (And don't forget the 'having fun' part either.) ]