Quiz 1 - Programming Basics

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

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


Kaugnay na mga set ng pag-aaral

Systems of Linear Equations Elimination Method

View Set

Oregon 30-Hour Real Estate Finance Course Week 6

View Set

Organizational Behavior Chapter 6

View Set

Prep-U Chapter 30: Assessment and Management of Patients With Vascular Disorders and Problems of Peripheral Circulation

View Set

energy economics miscellaneous lessons 7-12 material

View Set

Chapter 7: Inventory and Cost of Goods sold

View Set

COMM 350 Ch 1-10, Morehead State, Dr. Abell

View Set

Organizational Behavior (Motivation & Trust)

View Set