Some simple programmer questions. Write down your answer if u interested . enjoy it :)
-
I) Computer operations (make the answer less than 4 lines for each question) 1. List troubleshooting steps if your Windows is unable to boot. 2. If a PC cannot access Internet (no virus, browser is fine), how to troubleshoot the network problem? 3. If a PC is installed Linux, describe steps to install Windows on the same PC and test it. II) Computer science (make the answer less than 4 lines for each question) 4. How to calculate the execution time of a simple instruction “a=3” without writing a program? III) Programming 5 How to write code to delete a specific node in a single link list (单链表)that takes O(1) time? That is, the time deleting a node is the same (independent from the length of the list.) Input is a pointer to the node to be deleted. Show your algorithm in pseudo code. Hint: just 3 steps. 6 Class A generates random integers between -100 and 100 at a random frequency between 0 and 2 seconds. Class B decrements a counter when class A generated a negative integer and increments when class A generated a positive integer. Class B's counter needs to be updated in real time as class A generates numbers. Show Java/C++ code when A and B are different threads. IV) Design 7. A video software has 3 buttons: Play, Pause, Step Forward. Initially, only play button is visible. When user clicks play button, it starts to play video and only pause button is visible. Click pause, only play and step forward buttons are visible. Complete the state machine table below with 3 states: Play, Pause, Null. State\Event |Click Play button|Click Pause button|Click Step Forward button Init: Play: Pause: 8. In a simple game, a ball is moving along a line from the left end toward the right end. Show UML class diagram
- Kick it, then buy a nrw one. 2) Use a stop watch. 3) Dont do it, your computer will fail to boot. 4) Google it. 5) The state machikne was designed by Microsoft so its broken beyond use. 8) Take a photo of a football pitch and paste it in.
Truth is the subjection of reality to an individuals perception
-
I) Computer operations (make the answer less than 4 lines for each question) 1. List troubleshooting steps if your Windows is unable to boot. 2. If a PC cannot access Internet (no virus, browser is fine), how to troubleshoot the network problem? 3. If a PC is installed Linux, describe steps to install Windows on the same PC and test it. II) Computer science (make the answer less than 4 lines for each question) 4. How to calculate the execution time of a simple instruction “a=3” without writing a program? III) Programming 5 How to write code to delete a specific node in a single link list (单链表)that takes O(1) time? That is, the time deleting a node is the same (independent from the length of the list.) Input is a pointer to the node to be deleted. Show your algorithm in pseudo code. Hint: just 3 steps. 6 Class A generates random integers between -100 and 100 at a random frequency between 0 and 2 seconds. Class B decrements a counter when class A generated a negative integer and increments when class A generated a positive integer. Class B's counter needs to be updated in real time as class A generates numbers. Show Java/C++ code when A and B are different threads. IV) Design 7. A video software has 3 buttons: Play, Pause, Step Forward. Initially, only play button is visible. When user clicks play button, it starts to play video and only pause button is visible. Click pause, only play and step forward buttons are visible. Complete the state machine table below with 3 states: Play, Pause, Null. State\Event |Click Play button|Click Pause button|Click Step Forward button Init: Play: Pause: 8. In a simple game, a ball is moving along a line from the left end toward the right end. Show UML class diagram
sonicryu wrote:
1. List troubleshooting steps if your Windows is unable to boot.
Curse the computer, Microsoft, CreativeLabs (regardless of whether or not there's any of their hardware in the machine). Then install Linux.
sonicryu wrote:
2. If a PC cannot access Internet (no virus, browser is fine), how to troubleshoot the network problem?
Watch the blinkenlights on the router. Pretty, aren't they?
sonicryu wrote:
3. If a PC is installed Linux, describe steps to install Windows on the same PC and test it.
Slap the person who asked you to do that. Go on, slap 'em hard. Now, look 'em square in the eye and say, "stop talkin', fool - go make me a sammich"
sonicryu wrote:
4. How to calculate the execution time of a simple instruction “a=3” without writing a program?
Consider that since the value is never used, a good optimizing compiler can reduce this to a NOP. Then grab a beer and congratulate yourself on a job well done.
sonicryu wrote:
5 How to write code to delete a specific node in a single link list (单链表)that takes O(1) time? That is, the time deleting a node is the same (independent from the length of the list.) Input is a pointer to the node to be deleted. Show your algorithm in pseudo code. Hint: just 3 steps.
Three steps, eh? Wasteful people. Here's the two-step BASIC pseudocode:
100 TYPE SOME CODES WITh TEH KEYBOARDS 200 GOTO 100
sonicryu wrote:
6 Class A generates random integers between -100 and 100 at a random frequency between 0 and 2 seconds. Class B decrements a counter when class A generated a negative integer and increments when class A generated a positive integer. Class B's counter needs to be updated in real time as class A generates numbers. Show Java/C++ code when A and B are different threads.
This is a terrible place to use classes. I refuse to denigrate myself by feeding into this perversion of OOP. For shame...
sonicryu wrote:
7. A video software has 3 buttons: Play, Pause, Step Forward. Initially, only play button is visible. When user clicks play button, it starts to play video and only pause button is visibl
-
sonicryu wrote:
1. List troubleshooting steps if your Windows is unable to boot.
Curse the computer, Microsoft, CreativeLabs (regardless of whether or not there's any of their hardware in the machine). Then install Linux.
sonicryu wrote:
2. If a PC cannot access Internet (no virus, browser is fine), how to troubleshoot the network problem?
Watch the blinkenlights on the router. Pretty, aren't they?
sonicryu wrote:
3. If a PC is installed Linux, describe steps to install Windows on the same PC and test it.
Slap the person who asked you to do that. Go on, slap 'em hard. Now, look 'em square in the eye and say, "stop talkin', fool - go make me a sammich"
sonicryu wrote:
4. How to calculate the execution time of a simple instruction “a=3” without writing a program?
Consider that since the value is never used, a good optimizing compiler can reduce this to a NOP. Then grab a beer and congratulate yourself on a job well done.
sonicryu wrote:
5 How to write code to delete a specific node in a single link list (单链表)that takes O(1) time? That is, the time deleting a node is the same (independent from the length of the list.) Input is a pointer to the node to be deleted. Show your algorithm in pseudo code. Hint: just 3 steps.
Three steps, eh? Wasteful people. Here's the two-step BASIC pseudocode:
100 TYPE SOME CODES WITh TEH KEYBOARDS 200 GOTO 100
sonicryu wrote:
6 Class A generates random integers between -100 and 100 at a random frequency between 0 and 2 seconds. Class B decrements a counter when class A generated a negative integer and increments when class A generated a positive integer. Class B's counter needs to be updated in real time as class A generates numbers. Show Java/C++ code when A and B are different threads.
This is a terrible place to use classes. I refuse to denigrate myself by feeding into this perversion of OOP. For shame...
sonicryu wrote:
7. A video software has 3 buttons: Play, Pause, Step Forward. Initially, only play button is visible. When user clicks play button, it starts to play video and only pause button is visibl
Shog9 wrote:
"stop talkin', fool - go make me a sammich"
That alone was worth a 5! Excellent post. BDF
-
sonicryu wrote:
1. List troubleshooting steps if your Windows is unable to boot.
Curse the computer, Microsoft, CreativeLabs (regardless of whether or not there's any of their hardware in the machine). Then install Linux.
sonicryu wrote:
2. If a PC cannot access Internet (no virus, browser is fine), how to troubleshoot the network problem?
Watch the blinkenlights on the router. Pretty, aren't they?
sonicryu wrote:
3. If a PC is installed Linux, describe steps to install Windows on the same PC and test it.
Slap the person who asked you to do that. Go on, slap 'em hard. Now, look 'em square in the eye and say, "stop talkin', fool - go make me a sammich"
sonicryu wrote:
4. How to calculate the execution time of a simple instruction “a=3” without writing a program?
Consider that since the value is never used, a good optimizing compiler can reduce this to a NOP. Then grab a beer and congratulate yourself on a job well done.
sonicryu wrote:
5 How to write code to delete a specific node in a single link list (单链表)that takes O(1) time? That is, the time deleting a node is the same (independent from the length of the list.) Input is a pointer to the node to be deleted. Show your algorithm in pseudo code. Hint: just 3 steps.
Three steps, eh? Wasteful people. Here's the two-step BASIC pseudocode:
100 TYPE SOME CODES WITh TEH KEYBOARDS 200 GOTO 100
sonicryu wrote:
6 Class A generates random integers between -100 and 100 at a random frequency between 0 and 2 seconds. Class B decrements a counter when class A generated a negative integer and increments when class A generated a positive integer. Class B's counter needs to be updated in real time as class A generates numbers. Show Java/C++ code when A and B are different threads.
This is a terrible place to use classes. I refuse to denigrate myself by feeding into this perversion of OOP. For shame...
sonicryu wrote:
7. A video software has 3 buttons: Play, Pause, Step Forward. Initially, only play button is visible. When user clicks play button, it starts to play video and only pause button is visibl
-
sonicryu wrote:
1. List troubleshooting steps if your Windows is unable to boot.
Curse the computer, Microsoft, CreativeLabs (regardless of whether or not there's any of their hardware in the machine). Then install Linux.
sonicryu wrote:
2. If a PC cannot access Internet (no virus, browser is fine), how to troubleshoot the network problem?
Watch the blinkenlights on the router. Pretty, aren't they?
sonicryu wrote:
3. If a PC is installed Linux, describe steps to install Windows on the same PC and test it.
Slap the person who asked you to do that. Go on, slap 'em hard. Now, look 'em square in the eye and say, "stop talkin', fool - go make me a sammich"
sonicryu wrote:
4. How to calculate the execution time of a simple instruction “a=3” without writing a program?
Consider that since the value is never used, a good optimizing compiler can reduce this to a NOP. Then grab a beer and congratulate yourself on a job well done.
sonicryu wrote:
5 How to write code to delete a specific node in a single link list (单链表)that takes O(1) time? That is, the time deleting a node is the same (independent from the length of the list.) Input is a pointer to the node to be deleted. Show your algorithm in pseudo code. Hint: just 3 steps.
Three steps, eh? Wasteful people. Here's the two-step BASIC pseudocode:
100 TYPE SOME CODES WITh TEH KEYBOARDS 200 GOTO 100
sonicryu wrote:
6 Class A generates random integers between -100 and 100 at a random frequency between 0 and 2 seconds. Class B decrements a counter when class A generated a negative integer and increments when class A generated a positive integer. Class B's counter needs to be updated in real time as class A generates numbers. Show Java/C++ code when A and B are different threads.
This is a terrible place to use classes. I refuse to denigrate myself by feeding into this perversion of OOP. For shame...
sonicryu wrote:
7. A video software has 3 buttons: Play, Pause, Step Forward. Initially, only play button is visible. When user clicks play button, it starts to play video and only pause button is visibl
Thanks - I don't think I fully understood UML until just now.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
I) Computer operations (make the answer less than 4 lines for each question) 1. List troubleshooting steps if your Windows is unable to boot. 2. If a PC cannot access Internet (no virus, browser is fine), how to troubleshoot the network problem? 3. If a PC is installed Linux, describe steps to install Windows on the same PC and test it. II) Computer science (make the answer less than 4 lines for each question) 4. How to calculate the execution time of a simple instruction “a=3” without writing a program? III) Programming 5 How to write code to delete a specific node in a single link list (单链表)that takes O(1) time? That is, the time deleting a node is the same (independent from the length of the list.) Input is a pointer to the node to be deleted. Show your algorithm in pseudo code. Hint: just 3 steps. 6 Class A generates random integers between -100 and 100 at a random frequency between 0 and 2 seconds. Class B decrements a counter when class A generated a negative integer and increments when class A generated a positive integer. Class B's counter needs to be updated in real time as class A generates numbers. Show Java/C++ code when A and B are different threads. IV) Design 7. A video software has 3 buttons: Play, Pause, Step Forward. Initially, only play button is visible. When user clicks play button, it starts to play video and only pause button is visible. Click pause, only play and step forward buttons are visible. Complete the state machine table below with 3 states: Play, Pause, Null. State\Event |Click Play button|Click Pause button|Click Step Forward button Init: Play: Pause: 8. In a simple game, a ball is moving along a line from the left end toward the right end. Show UML class diagram
sonicryu wrote:
1. List troubleshooting steps if your Windows is unable to boot.
Get a hammer. Enjoy.
sonicryu wrote:
2. If a PC cannot access Internet (no virus, browser is fine), how to troubleshoot the network problem?
Get a hammer. Enjoy.
sonicryu wrote:
3. If a PC is installed Linux, describe steps to install Windows on the same PC and test it.
Install a virtual machine. use it.
sonicryu wrote:
4. How to calculate the execution time of a simple instruction “a=3” without writing a program?
Using one already done. Or as it in the codeproject (not in the lounge).
sonicryu wrote:
5 How to write code to delete a specific node in a single link list (单链表)that takes O(1) time? That is, the time deleting a node is the same (independent from the length of the list.) Input is a pointer to the node to be deleted. Show your algorithm in pseudo code. Hint: just 3 steps.
- Go through ALL the list (even if you have find the desired element) and hold into a pointer the address of the element before the one you want to delete. - Get the pointer to the next element to the one you want to delete and delete it. - Change the pointer in the position that you have in the memory and that's all. - As I have one more line to describe three steps you can always get a hammer with this operation included and enjoy.
sonicryu wrote:
6 Class A generates random integers between -100 and 100 at a random frequency between 0 and 2 seconds. Class B decrements a counter when class A generated a negative integer and increments when class A generated a positive integer. Class B's counter needs to be updated in real time as class A generates numbers. Show Java/C++ code when A and B are different threads.
ClassB.value += ClassA.out; You have not told us that it must increment by one or more...
sonicryu wrote:
7. A video software has 3 buttons: Play, Pause, Step Forward. Initially, only play button is visible. When user clicks play button, it starts to play video and only pause button is visible. Click pause, only play and step forward buttons are visible. Complete the state machin
-
I) Computer operations (make the answer less than 4 lines for each question) 1. List troubleshooting steps if your Windows is unable to boot. 2. If a PC cannot access Internet (no virus, browser is fine), how to troubleshoot the network problem? 3. If a PC is installed Linux, describe steps to install Windows on the same PC and test it. II) Computer science (make the answer less than 4 lines for each question) 4. How to calculate the execution time of a simple instruction “a=3” without writing a program? III) Programming 5 How to write code to delete a specific node in a single link list (单链表)that takes O(1) time? That is, the time deleting a node is the same (independent from the length of the list.) Input is a pointer to the node to be deleted. Show your algorithm in pseudo code. Hint: just 3 steps. 6 Class A generates random integers between -100 and 100 at a random frequency between 0 and 2 seconds. Class B decrements a counter when class A generated a negative integer and increments when class A generated a positive integer. Class B's counter needs to be updated in real time as class A generates numbers. Show Java/C++ code when A and B are different threads. IV) Design 7. A video software has 3 buttons: Play, Pause, Step Forward. Initially, only play button is visible. When user clicks play button, it starts to play video and only pause button is visible. Click pause, only play and step forward buttons are visible. Complete the state machine table below with 3 states: Play, Pause, Null. State\Event |Click Play button|Click Pause button|Click Step Forward button Init: Play: Pause: 8. In a simple game, a ball is moving along a line from the left end toward the right end. Show UML class diagram
sonicryu wrote:
4. How to calculate the execution time of a simple instruction “a=3” without writing a program?
With a very precise stopwatch and lightning fast reflexes.
Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Individuality is fine, as long as we do it together - F. Burns
-
- Kick it, then buy a nrw one. 2) Use a stop watch. 3) Dont do it, your computer will fail to boot. 4) Google it. 5) The state machikne was designed by Microsoft so its broken beyond use. 8) Take a photo of a football pitch and paste it in.
Truth is the subjection of reality to an individuals perception
fat_boy wrote:
- Dont do it, your computer will fail to boot.
It is a trick question, Everyone knows that you can only add linex to a windows mcn not the other way around. But why do it?:(( -- modified at 15:45 Thursday 8th November, 2007
-
I remember my CS days when I got the VCR state machine. The prof gave me extra credit for being the most complete he had seen. Blowing the curve was my favorite past time in college. Now enough tooting my own horn, do you think we are that stupid?
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest HemingwayCurve is a strange name for a professor.
-
- Post a question on Code Project 2) Post a question on Code Project 3) Post a question on Code Project 4) Post a question on Code Project 5) Post a question on Code Project 6) Post a question on Code Project 7) Post a question on Code Project 8) Post a question on Code Project
:laugh:
Kind regards, Pawel Krakowiak
-
Curve is a strange name for a professor.
I just spent the last few minutes cleaning the soda from my monitor and keyboard. I was drinking when I read your reply.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway -
I) Computer operations (make the answer less than 4 lines for each question) 1. List troubleshooting steps if your Windows is unable to boot. 2. If a PC cannot access Internet (no virus, browser is fine), how to troubleshoot the network problem? 3. If a PC is installed Linux, describe steps to install Windows on the same PC and test it. II) Computer science (make the answer less than 4 lines for each question) 4. How to calculate the execution time of a simple instruction “a=3” without writing a program? III) Programming 5 How to write code to delete a specific node in a single link list (单链表)that takes O(1) time? That is, the time deleting a node is the same (independent from the length of the list.) Input is a pointer to the node to be deleted. Show your algorithm in pseudo code. Hint: just 3 steps. 6 Class A generates random integers between -100 and 100 at a random frequency between 0 and 2 seconds. Class B decrements a counter when class A generated a negative integer and increments when class A generated a positive integer. Class B's counter needs to be updated in real time as class A generates numbers. Show Java/C++ code when A and B are different threads. IV) Design 7. A video software has 3 buttons: Play, Pause, Step Forward. Initially, only play button is visible. When user clicks play button, it starts to play video and only pause button is visible. Click pause, only play and step forward buttons are visible. Complete the state machine table below with 3 states: Play, Pause, Null. State\Event |Click Play button|Click Pause button|Click Step Forward button Init: Play: Pause: 8. In a simple game, a ball is moving along a line from the left end toward the right end. Show UML class diagram
-
Curve is a strange name for a professor.
AHAHAHAHAHAHA Extra points for that :laugh:
"There are three sides to every story. Yours, mine and the truth" ~ unknown
-
AHAHAHAHAHAHA Extra points for that :laugh:
"There are three sides to every story. Yours, mine and the truth" ~ unknown
Make sure you give Mr. Lynch points to for being a good sport too. I'm sure he's going to give me grief until the Savior of your choice comes back. Thumbs up buddy :)
-
That picture is the starting frame of a lesbian-teen porn movie, isn't it? The greedy looks of the 'tutor' :rolleyes:
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
Douglas Adams, "Dirk Gently's Holistic Detective Agency"