Tag: programming languages

Questions Related to programming languages

  1. Refactor your code often

  2. Throw away obsolete code

  3. Debugging is for wimps

  4. Communicate often with the customer


Correct Option: C

What is the relationship between Java and JavaScript?

  1. Netscape invented JavaScript as a stripped-down "lite" version of Java

  2. Java borrowed ideas from JavaScript and made it a full-fledged programming language

  3. They both originate from the same research at Sun Microsystems

  4. There is none; it's all just marketing


Correct Option: D

Why do some consider Ruby to be more "purely" object-oriented than other more popular OOP languages such as Java and C++?

  1. Because Ruby forces object orientation and does not permit procedural or functional style code

  2. Because Ruby makes no distinction between objects and primitive types

  3. Because Ruby's syntax is similar to that of Perl

  4. Because Ruby programmers are full of themselves


Correct Option: B
  1. When the application is running behind a firewall

  2. Never; any program that accepts input can be exploited

  3. When the application is written in Perl using the language's "taint mode"

  4. When the user is your own mother


Correct Option: B
  1. Use more global variables

  2. Keep variable and function names down to one or two letters

  3. Insert comments throughout your source code files

  4. Use pointer arithmetic wherever possible


Correct Option: C
  1. Andrew S. Tanenbaum

  2. Guido van Rossum

  3. Niklaus Wirth

  4. Bjarne Stroustrup


Correct Option: A
  1. The code that would have been written last month if your project was on deadline

  2. The amount of code that you can produce in a month on your salary

  3. The fallacy that assigning more staff to a programming job will complete it faster

  4. The fact that like Sysiphus pushing the boulder you can never finish debugging


Correct Option: C