

InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
701. |
Solve : Replacing Algorithms? |
Answer» hi, |
|
702. |
Solve : How to run Java Program?? |
Answer» It is using the MS-DOS Prompt, am i right? |
|
703. |
Solve : W98Eject? |
Answer» I'm not sure if i'm in the right area but here goes. I just found this w98eject in my startup and not sure what it is or how it got there. My question is what is it and do I need it? I really am a dummy when it comes to most things concerning COMPUTERS. Ant help would be appreciated, Thank YOUI could only find out that it's RELATED to USB support for Sigmatel MP3 audio decoder. |
|
704. |
Solve : task manager help? |
Answer» i have 67 processes runnig on my TASK manager |
|
705. |
Solve : Basic Visual Basic 6.0 Help? |
Answer» Hi to you all Computer Expert 2. By putting money= 200 in a subroutine you're creating a scope problem; code it inline in the module. caliorg is undefined...you may not have posted enough code.i already have my money save as single money = 200 and i want to do a further calculation with it. Module: Public money as Single Public nUnit as interger Private Sub Form1_activate() money = 200 caliorg = 25.50 and nUnit is a number the user specify End Sub Private Sub Buy_Click() If Option1.Value = True Then money = money - (caliorg * nUnit) backpack.Caption = caliorg & " " & nUnit & "Unit" End If End Sub This it what i want to do but it doesnot work Quote 3. I can't make out from your code what you're trying to do but I think days only has scope within the subroutine and reverts back to zero after the subroutine ends. Try making days a global field.I want to click on a button that will change its number by 1 every time i click on it. So what i mean is that every time i click the button it will add up the number of 1 everytime. Quote 4. Not sure on this; you can always use the unload method on the form followed by the load method. Why would you need to do this? Forms are updated as the underlying data changes.True i dont really need this Quote 5. Use the rand() function.How can i limit the number. Let say i want the number to by random between 10 - 30 and it go to be single so sometime the number will be 15.67 or 20.64 ect. 2 & 3: It's time to start debugging your code. Best way is to set a well placed breakpoint, run the job interactively and as soon as you hit the breakpoint, step into the code and see how the program runs and what values the fields take on. There seems to be some doubt that the _Activate event ever runs. The VB package has a very full and rich help function which should answer most of your questions. 5: Code: [Select]Public Function Rand(ByVal Low As Long, _ ByVal High As Long) As Long Rand = Int((High - Low + 1) * Rnd) + Low End Function I mistyped RND as RAND in my earlier post. Sorry for the confusion. It might also be wise to execute a RANDOMIZE instruction in the FORM_LOAD event to seed the random number generator. 8-)You are a great help thankyouQuote 2 & 3: It's time to start debugging your code. Best way is to set a well placed breakpoint, run the job interactively and as soon as you hit the breakpoint, step into the code and see how the program runs and what values the fields take on. There seems to be some doubt that the _Activate event ever runs. The VB package has a very full and rich help function which should answer most of your questions. I don't understand why you need to use this function?If you don't mind to explain it to me.Thanks. As I know in vb if you want to convert string to int you only to write this code. For example : Dim total As Integer total = CInt(txtTotal.text) same if you want to convert label. caption. Eg : Dim total As Integer total = CInt(lblTotal.Caption) or if you want to convert it to Double just write: Dim total as Double total = CDbl(lbltotal.Caption) Which function are you talking about? The rand function was used as a teaching aid to show the original poster how to create random numbers. A function was used since by definition a function returns a result. If you're referring to the Int function, the integer portion of the result from the Rnd function is needed, so it was necessary to truncate the decimal portion. CInt would have rounded the result to the nearest even number. Fix could also have been used in this case. When dealing with VB functions, always read the fine print. 8-) Note: using the .text and .caption properties in numeric conversions will crash and burn your program should they resolve to non-numeric strings. |
|
706. |
Solve : computer language settings? |
Answer» please i need a professionals help.i bought my computer in czech republic and was told that the system is in english.when i brought it home and set it up ,its all in the czech languge. :-? |
|
707. |
Solve : database design? |
Answer» I am new to prog. WORLD. I am working on database. I often listen the terminology Master table and transactions table in database.can any on tell me what is this? is there any good site on database designing.Search on 'database design' came up with 20,400,000 websites - here's just one |
|
708. |
Solve : StrComp VB Fuction , Wont Work? |
Answer» Ok im trying to Learn how to Use ASP and VB Script |
|
709. |
Solve : Math operations in Bat files? |
Answer» Is there a way to do math operations, with variables, in bat filesYes, using the /a switch on the set statement. This is OS dependent. |
|
710. |
Solve : Hexidecimal? |
Answer» In my chess game, I'm trying to store a list of moves whereby one hexidecimal contains two coordinates. The board is SPLIT into squares, each square given an ID number. 0, 1, 2... 63.... I want the number to store the starting square and ending square like this. |
|
711. |
Solve : Hello here!? |
Answer» im confused my lil brain is scared and confused with all of the lans. what thedif.. :-? which do they do? :-? how can i chose which one i want to learn :-? |
|
712. |
Solve : Java or HTML or Dos? |
Answer» Hello, |
|
713. |
Solve : C++ / Real Time User Input? |
Answer» I am creating a C++ console program using (Dev-C++ 4.9.9.2) on a WinXP. |
|
714. |
Solve : Program wont work right.? |
Answer» Could you guys PLEASE check out this link: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=552053&SiteID=1 |
|
715. |
Solve : Freeze on bootup? |
Answer» OK here is my problem. EVERY time I boot up or restart the computer it freezes even before the memory check. This has happened the entire time I have had the computer. I live with it because if you reset the BIOS defaults every time you start it then it will start. After that it runs PERFECTLY. No freezing or trouble though it is a little slow sometimes. I am thinking that it is my BIOS, I have a M7VIT Pro MOTHERBOARD and I believe the bios is Phoenix BIOS. If it is not the BIOS then What could it be? If it is the BIOS then what can I do about it? Any info will be appreciated. Thank you. Joe1. MAKE certain all hardware is properly seated 2. Reset your BIOS to the default SETTINGS and go over all the settings to see if there may be a problem caused by the default settings. 1. Are you certain it is freezing? Could it be that that your videocard is simply not properly seated or not giving image all of the time? -- Check to see if the monitor cable is properly connected. 2. Does the computer continue to load (Make loading noises, blink HDD activity light, etcetera) - This is not related to computer programming. You should be more heedful and post in the appropriate section next time. |
|
716. |
Solve : C++ text? |
Answer» I NEED help changing the color of a certain cout statement. Here is the small code: |
|
717. |
Solve : C++ pause? |
Answer» OK, I'm trying to make the long jump from Visual Basic to C++. I'm reading a few online tutorials, and C++ isn't the monster I remember (if I can look at a C++ code block and say, "hey, that's just like JavaScript!", I MAY have it made). However, it's still a little confusing. an alternative Thank you. What? You are going to do THAT? All you need to do is char temp; cin >> temp; at the end of your program. Simple!Oh, OK. I thought that... well... whatever. That WORKS just as well, if not better. Like I said, sorry, this is really new to me. It's not easy LEARNING this stuff. EDIT: ACK! IT'S THE P2K (Post 2K) VIRUS!!! Seriously, look at it. It's calling me an expert, for some reason. |
|
718. |
Solve : Value of errorlevel of a batch file in java? |
Answer» How to GET the value of ERRORLEVEL from a batch into java class? |
|
719. |
Solve : opening files with extensions .cpi , .sys and .com? |
Answer» hi, |
|
720. |
Solve : Error Loading & Invalid Schedule File? |
Answer» You in for a treat, I have two! |
|
721. |
Solve : Emailing using Scripts? |
Answer» HEY all... I'd like to know if its POSSIBLE to CREATE and SEND emails using SCRIPTS... Thanks in advance... Johnny_Bravo, I sent a PM with the information.Thanks man |
|
722. |
Solve : Batch files & the registy? |
Answer» Hello, |
|
723. |
Solve : Odd remainder for a subtraction? |
Answer» Hello, I'm on Visual Basic .NET 2003. When did we start using thousandths for USD?Ask any stockbroker. The program title is "ChangeMaker". If you find the odd .005 piece please mail in care of CH. Sidewinder, your solution worked perfectly. Now, when the third decimal is a 1, I get the proper 0.001 remainer (my assumption that the result should be 0.009 was based on a lack of proper sleep; I came to CH in haste to correct this error in my thinking -- too late!). I actually don't use more than two decimal points, and thanks to this advice I have an easy way to restrict it. Two textboxes, so I don't have to multiply the total by 100 to get an integer subtraction... I can limit that decimal box to two characters... But I can still have remainders, if the end user chooses to, for example, exclude pennies with a total that would contain them. No big deal, though; I can still show it as normal. Oh, and I don't think my software can actually make change as in create it, but I'll be happy to ship in that 0.00001 cent leftover. |
|
724. |
Solve : download errors, rerun administrator account? |
Answer» can anyone please HELP me, everytime I try and download anything i get an error message TELLING me"you do not have access to make the REQUIRED system configuration modifications. Please rerun this installation from an administrators account" |
|
725. |
Solve : Best compiler for java?? |
Answer» Im taking the Java class for school. School is in 2 days, and they will probably ask me to use a specific compiler, but I want to GET ahead so Im not confused about anything while taking the class. What do you guys think is the best Java compiler? |
|
726. |
Solve : file encryption? |
Answer» :-/ I MUST STOP that. (So my parole officer KEEPS TELLING me.) |
|
727. |
Solve : Need help creating batch to add new users? |
Answer» I am trying to create a batch file that will make a new user in Windows 2000. Here are the requirements: |
|
728. |
Solve : Excel Help with formula? |
Answer» Good Morning: |
|
729. |
Solve : A little basic help with randum numbers in VB .NET? |
Answer» Hi guys! |
|
730. |
Solve : Bat File creation? |
Answer» Hi all, |
|
731. |
Solve : Visual Basic or C#?? |
Answer» Ive been learning about C++, but I would like to start with an easier language. Im going to be a freshmen this year, and Ill be in a java class, as its the only language tought in the school. But on top of that, in my spare time, I would like to learn either C# or Visual Basic. Based on what people have told me, they both are great languages to build applications and are good for beginner languages. Much more so than C++ anyway. So I would like to know which language is a more powerfull language. Also, even though I'm not very good with any language, I would like to have a career in PROGRAMMING in the future. Which brings me to one more question. Is C# or Visual Basic looked upon as being better when trying to get a job in the programming field? Thats the best way I could word that last question, but I hope you understand what I MEAN. |
|
732. |
Solve : Start a batch file through another program? |
Answer» i want to know if it is possible when i start a program in WINDOWS this automatically run a batch file i have made and saved in c:/ |
|
733. |
Solve : GDI32.DLL print justification? |
Answer» I write software in VB3 and VB6. I have just bought a new NEC PC, with XPPro SP2. Microsoft will not support me direct, NEC don't "support" the Op system. |
|
734. |
Solve : Publisher 2003? |
Answer» I am TRYING to make copies of business CARDS. Publisher will not ALLOW me to make a SHEET of 10 cards. What process do I GO through? |
|
735. |
Solve : ATAPI problems---!Help!? |
Answer» Hello everyone, |
|
736. |
Solve : VB.NET ASP.nET and DAAB - textbox on webform? |
Answer» Hi |
|
737. |
Solve : Word Macro .. help needed ..? |
Answer» Hello, |
|
738. |
Solve : need a clue? |
Answer» hi. first post. thanks for reading: |
|
739. |
Solve : Excel program/formula help needed!? |
Answer» I really NEED help on my Excel PROJECT. I need a FORMULA I put in on Sheet 1 to roll over to the other sheets. How do I do that?This might help you out: |
|
740. |
Solve : How do I delay the closing of a .BAT file?? |
Answer» How do I delay the CLOSING of a .BAT FILE? |
|
741. |
Solve : Mircosoft window programming?? |
Answer» what programming lang. is the base of Mircosoft windows?From what I've read much of Windows is written in C and C++. Probably a bit of Assembler in there too. Google button, UW yea i did but its my first reaction to a question " whats that do?" lol thanks for the link |
|
742. |
Solve : Executing a batch file? |
Answer» how do execute a batch file without a start COMMAND? |
|
743. |
Solve : VB : Data environment connection : database? |
Answer» I hav used DATA ENVIRONMENT to make a DATABASE connection. |
|
744. |
Solve : a LANGUAGE TO LEARN? |
Answer» What other languages do you KNOW? PASCAL, Fortran, DELL, JAVA?BUMP |
|
745. |
Solve : Visual basic forms + website? |
Answer» I taught ma self VB via the internet. I learnt how to design the databases,tables and the insertions.But one of ma friend told me that i can connect these databases to the WEBSITE wic i designed some TIME back. But i dont knw the procedure and how i can do it. I used Dream weaver in designing the website but i have failed to connect the vb forms with ma website. I need yo helpOkay: http://dictionary.reference.com/ http://grammar.ccc.commnet.edu/grammar/ (I don't know much about VB, SORRY.) |
|
746. |
Solve : Programming Chess Game? |
Answer» Hi. I am making a chess game, in Blitz Basic but it's not the language I'm having difficulty with but the concepts. The basics are there and you can move pieces around. If anyone could help it'd be appreciated. I can send it to you if you like. Probably the highest level language i have seen.....[highlight]function statements are replaced by icons[/highlight], very easy to pickup. What? How is that a high level language?Yes I once used something similar to that called The Games Factory. GX1_Man, they are basically a bit like a "programming wizard". You have the "play" area where you drag and drop objects and things, you can set them to various modes such as wall, ladder, whatever. The actually programming part consists of various wizard like questions. For example, you'd create a new line about collision. You'd then select from a menu two object types you've created on the play area, then you'd add the actions you'd like, for example alien collides with player, playerlives = playerlives -1. Well that is how TGF worked, by a quick glance at the website that is how that works too. Although easy to use, their problem is that you can only really make what they are geared to make, that is arcadeish style games, and I don't think it would be suitable for creating a chess game, especially when it comes to AI. But thanks for the suggestion anyway, johnchain.No, I meant high level language as in not by complexity....you know.... Assembly being low level.... C being mid-level Visual Basic being High Level GML as stated on the website is like a combination of C++ and Visual Basic.http://en.wikipedia.org/wiki/High-level_programming_languageYes, yes, but does anyone have any actual HELP for my problems!? |
|
747. |
Solve : Chinese Language in Java? |
Answer» Hi everyone. I have JTextArea in my application. Now I just want to input Chinese characters directly from keyboard. I have set Chinese font and it can display chinese font if I copy and paste chinese text in it. The only thing left is that when I type something from keyboard, it displays english language. I know there is something related to keymaps. I realy appretiate if youplz give me Chinese keymap that I can directly use to input chinese. I am using JDK1.4 and I have windows Xp with chinese font installed. |
|
748. |
Solve : making a ping script in win-xp? |
Answer» Hi all |
|
749. |
Solve : programming lang? |
Answer» i dont know which lang to learn Java, Java 2, C, C++, C# C++ would be a bit more of a challenge - it is OO-based. what do you mean 00-based?? :-?Object orrientated. Or whatever I can't spell.oh ok.. i think im going to do programming for a hobbyDo you have any programming experiance? And what is your PARTICULAR reason for wanting to program for Linux (is that your OS)?dont laugh but ive programmed in truebasic and thats pretty much it.. it is my os for my computer in my room and it will also be on my new macbook when i get it.. and couldnt i use c for in windows kinda?Any programming language is a good start. I say C for Linux because it is the major programming language used for developing the operating system. The great bulk of the kernel, drivers, libraries etc. are coded in C. Some stuff is in C++. I find object-oriented programming languages less intuitive than procedural languages, but that is very much a matter of training and personal preference.Quote I find object-oriented programming languages less intuitive than procedural languages, but that is very much a matter of training and personal preference. Does that mean you like it more or less? whats the difference between the two?Quote Does that mean you like it more or less?Hah! I'm too old, or dense, or both, to get on with OO. Procedural languages harmonise better with the way I think - step by step, one thing at a time... (No, I don't do parallelism and semaphores either...)im still confused on the difference between the two :-?Well procedural is mostly do this do that blah blah blah. OO is all about objects. X does this, X does that, X relates to Y in this way, etc.oh kool thanksProcedural is easier to understand what's going on... OO is easier to make "windows" applications, meaning it has buttons and scroll bars and things. But it's rarely used for games.i love this forum.... i learn new stuff daily Why is procedural seen as easier. Object Orientated programs are basically designed for simplicity. Create and object->make it do something. I think it is SIMPLER in many cases. And I am not sure, but I think all OO languages are high level languages. Learn C for linux and just in general. Good place to start and know how your computer works at the same time. They call it the "high low-level" language. Since it can touch parts of your hardware while being easy to read and understand.Quote while being easy to read and understand.Can you read and understand this? #include <stdio.h> main(t,_,a) char *a; {return!0<t?t<3?main(-79,-13,a+main(-87,1-_, main(-86, 0, a+1 )+a)):1,t<_?main(t+1, _, a ):3,main ( -94, -27+t, a )&&t == 2 ?_<13 ?main ( 2, _+1, "%s %d %d\n" ):9:16:t<0?t<-72?main(_, t,"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+\ ,/+#n+,/#;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l q#'+d'K#!/\ +k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# ){n\ l]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#\ n'wk nw' iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \ ;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;\ #'rdq#w! nr'/ ') }+}{rl#'{n' ')# }'+}##(!!/") :t<-50?_==*a ?putchar(a[31]):main(-65,_,a+1):main((*a == '/')+t,_,a\ +1 ):0<t?main ( 2, 2 , "%s"):*a=='/'||main(0,main(-61,*a, "!ek;dc \ [emailprotected]'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry"),a+1);} Compile and run if you're curious. You'll be surprised at the results.Rob if your going to post Code , at least try to format it into Brain Usable Segments. I COULD Go trough that and tell you what it would do.... But its a Mess why would you write it like that?it's for the purpose of code obfuscation http://en.wikipedia.org/wiki/Obfuscated_codei kinda thought so. But why would one use Obfuscated Code to show SOMEONE how complicated it is? it doesn't show it's Real Difficulty thats kinda like posting the contents of a compiled EXE and saying this is what OO looks like Code: [Select]MZ1 ! ! Ð ËË€üu8<w4.ƒ>} u .€> tè& r P.¡} ÄÄXƒÄÏ Àu3Ûë <u3À»Ï.ÿ.y PSQRVWŒÈŽØŽÀ¾€ ¿Š »š Yº° ÄÄX r.£} .Æ _^ZY[Xà VCDEX.DLL VDDRegisterInit VDDDispatch ‡Û‡Û‡Û‡Û‡Ûÿÿÿÿ@È MSCDEX00 ¸3Í!€ûtëP?€ÿ2tëH?´°Í/?ûuë9?&Ž, ´IÍ!´5°/Í!.‰y .Œ{ º ´%°/Í!ºÐ ±ÓêƒÂ´1° Í!¸ LÍ!@John Chain, try making a chess game in OO. It's hard enough in procedural They are both designed for different needs.To be honest, I would have thought that a chess game would be the perfect candidate for OO code. The ELEMENTS of chess lend themselves readily to description as objects. I would make an exception to my preference for procedural coding.Quote i kinda thought so. like the wiki says, it has its uses. http://en.wikipedia.org/wiki/Obfuscated_code#Uses_for_obfuscation How would OO be easier? What about the AI?class brain { brain { iq = 100; inebriation = 1; confidence = 10; } drink { this.inebriation++; this.iq -= 10; this.confidence++; } think { if (this.inebriation > 3 || this.iq < 50) { result = rand(0, 2000000); } // etc... } }im so confused |
|
750. |
Solve : biginner? |
Answer» can someone pls send me some tutorial WEB SITES on introductory computer science.I found 4.4 MILLION possibilities. Happy READING |
|