recategorized by
2,611 views
12 votes
12 votes
State whether the following statements are True or False with reasons for your answer:

Coroutine is just another name for a subroutine.
recategorized by

2 Answers

9 votes
9 votes

True. The subroutine is a special case of a co-routine. A co-routine is a generalized form of a subroutine which is non-preemptive multitasking.

https://en.wikipedia.org/wiki/Coroutine

edited by
3 votes
3 votes

TRUE: A subroutine and a function are essentially the same thing, with one difference: A function returns some sort of value (usually via the stack or CPU register), while a subroutine does not. Whether subroutine or function, it is a block of executable code, having exactly one point of entry. A co-routine is also a block of executable code, and, just like a subroutine, it has one point of entry. However, it also has one or more points of re-entry.

ref: https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&cad=rja&uact=8&ved=0ahUKEwjawbP86t3WAhWLOo8KHXxhCpsQFgg5MAM&url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F24780935%2Fdifference-between-subroutine-co-routine-function-and-thread&usg=AOvVaw3yAD5Td224hZer_CQWxfAQ

Answer:

Related questions

3 votes
3 votes
1 answer
1
gatecse asked May 3, 2021
2,325 views
State whether the following statements are True or False with reasons for your answer:A two pass assembler uses its machine opcode table in the first pass of assembly.
5 votes
5 votes
1 answer
2
gatecse asked May 3, 2021
1,278 views
State whether the following statements are True or False with reasons for your answerA symbol declared as ‘external’ in an assembly language program is assigned an ad...
19 votes
19 votes
2 answers
3
Kathleen asked Oct 5, 2014
2,891 views
State whether the following statements are True or False with reasons for your answerA subroutine cannot always be used to replace a macro in an assembly language program...
22 votes
22 votes
3 answers
4
Kathleen asked Oct 5, 2014
7,237 views
Let $p$ and $q$ be propositions. Using only the Truth Table, decide whether $p \Longleftrightarrow q$ does not imply $p \to \lnot q$is True or False.