Quiz 1 - Programming Basics
If you were writing your source code in the JavaScript programming language, what file extension would you use to save your file? .script .js .java .py
.js
What is the standard extension to use for a Python source code file? .txt .py .doc empty extension
.py
Which language does not use a hybrid compiler/interpreter approach? C++ C# Python Java
C++
Why doesn't a Python file execute when you double-click it? You need to use the .exe file extension. Python code needs to be compiled to bytecode before it can be executed. Double-clicking does not run the Python Interpreter on the source.
Double-clicking does not run the Python Interpreter on the source.
Source code is written in rich text. True False
False
Which IDE feature allows you to get code suggestions while you are typing? Syntax Highlighting XCode Device Preview IntelliSense
IntelliSense
Which language is considered an interpreted language? C JavaScript C++ Objective-C
JavaScript
Why do computer instructions need to be sequential? The order in which these instructions are executed is important. Providing the instructions in the sequence also makes them exact. A sequence of instructions results in fewer crashes. A sequence of instructions results in fewer bugs.
The order in which these instructions are executed is important.
In programming, a crash is when your program stops early or freezes because something unexpected happened. False True
True
If you were developing an application for an iPhone, which IDE would you use? Android Studio RubyMine XCode
XCode
Which tool is used to write source code? a text editor a web browser a spreadsheet application a word processor
a text editor
Programming can be defined as: converting ideas into _____ that a computer can understand. instructions appeals recommendations
instructions
How would you write the "Hello, world!" program in Python? print("Hello, world!") document.write("Hello, world!"); std::cout<< "Hello, world!" put('Hello, world!')
print("Hello, world!")
Why are there many programming languages? to support different text entry formats to address many different computing needs to directly write machine language to offer a syntax closer to a human language
to address many different computing needs
