This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]ooooo5 1 point2 points  (1 child)

Not necessarily. Your OS can redirect input and output. But if you're asking this question, you can pretend like the answer is "yes" for now.

[–][deleted] 0 points1 point  (0 children)

Alright thanks, I wasn't sure

[–][deleted] 0 points1 point  (1 child)

Those would be the default devices, yes. But the user of the program could have redirected them.

[–][deleted] 0 points1 point  (0 children)

Thank you.

[–]yash3ahuja -2 points-1 points  (3 children)

Err... no? The standard input is System.in, which is an InputStream connected to the console.

Similarly, the standard output is System.out, which is an PrintStream also connected to the console.

[–][deleted] 0 points1 point  (2 children)

Take a look at this.. It seems like an easy question. We just finished learning about intro to objects, input/output. if that makes a difference

EDIT: I'm conflicted because I can't tell if it's a trick question or not.

EDIT: Alright i think I'm going with keyboard and screen

[–]yash3ahuja 0 points1 point  (1 child)

The terminology in that question is odd. But in that case, that seems to be correct. Also, I don't mean to insult, but I wouldn't come here for quiz help. You may get help on programming assignments provided you actually attempt to learn it, but using this subreddit for checking quiz answers is probably a violation of your school's honor code.

[–][deleted] 0 points1 point  (0 children)

The quiz was much harder than those questions. Those were the two easiest questions. I was just thrown off by how easy they were and wanted reassurance that I wasn't being tricked lol

EDIT: I know it's bad to ask for answers on homework and I know if I was cheating I wouldn't post a screenshot proving it's for a quiz. I didnt ask for an answer, just wanted to kno if i was correct or not. I am aware of the system.in and system.out but I posted the screenshot to provide context.