2
\$\begingroup\$

Preliminary question: is it valid to score Excel in keystrokes? I guess it is, but I'm not sure what our policy is.

Assuming it is (or, in general, for languages that are scored in keystrokes), does Ctrl-C count as one keystroke or two?

If it is two, would uppercase "A" be two keystrokes as well? Can for example be assumed that Caps-Lock is initially on?

In case some context is needed: this is the answer that uses Ctrl-C in Excel and caused me to ask about this.

\$\endgroup\$
  • 1
    \$\begingroup\$ Well shift+a (i.e. capital A), is one byte or character, so that would be 1 byte. ^C could be represented as control+C. or 0x03 ETX, meaning it depends on context \$\endgroup\$ – Downgoat Mar 17 '17 at 22:48
  • \$\begingroup\$ Related and the dupe link thereof. \$\endgroup\$ – AdmBorkBork Mar 17 '17 at 22:48
  • \$\begingroup\$ @Downgoat The capital "A" characeter is indeed one byte (in most encodings). But my premise is that the language is being scored in keystrokes. So, how many keystrokes is capital "A"? \$\endgroup\$ – Luis Mendo Mar 17 '17 at 22:51
  • \$\begingroup\$ Yet another reason to just score everything by bytes... \$\endgroup\$ – Mego Mar 17 '17 at 22:54
  • \$\begingroup\$ @Mego That may be the case, but doesn't answer my question \$\endgroup\$ – Luis Mendo Mar 17 '17 at 22:55
  • \$\begingroup\$ @LuisMendo Hence why it's a comment and not an answer. \$\endgroup\$ – Mego Mar 17 '17 at 22:55
  • \$\begingroup\$ I think we should ask this first- "Does modifiers (Shift, Ctrl, Alt, etc) count as one keystroke?" \$\endgroup\$ – Matthew Roh Mar 19 '17 at 8:07
  • \$\begingroup\$ I think scoring by keystrokes is not a valid way to score a submission (unless there's a meta post I don't know about). Since you are coming up with a different scoring method, I'm not sure why the number of keystrokes matters. \$\endgroup\$ – Nathan Merrill Mar 21 '17 at 3:21
  • \$\begingroup\$ @NathanMerrill I thought there was, but I can't find a meta post. My question didn't meant to come up with a new method. Rather, that method of scoring is used in the linked answer, so I just wanted to know if counting as a single keystroke was valid or not \$\endgroup\$ – Luis Mendo Mar 21 '17 at 10:23
5
\$\begingroup\$

One Keystroke

A key sequence such as Ctrl+C is the 'C' key event with a 'Ctrl' key modifier. It's one singular input to the computer. This reasoning is used in some programming languages including Java

\$\endgroup\$
  • 1
    \$\begingroup\$ Yup. ^C is 1 keystroke. It qualifies as one ascii byte. +1 :) \$\endgroup\$ – Matthew Roh Mar 18 '17 at 1:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .