CSC 200 Module 2

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

double grade = 4.0;

Which of the following is the correct syntax for declaring a real number variable named grade and initializing its value to 4.0 (Java)?

System.out.println("Hello, world!");

Which of the following is the correct syntax to output a message (Java)?

public static void example(){

Which of the following method headers uses the correct syntax (Java)?

Procedural language with object-oriented features

Which paradigm most accurately describes C++?

statement

A ________ is an instruction to do something in a programming language such as manipulating a piece of data, performing a calculation, or producing some output (Python).

braces {}

A group of statements, such as the body of a function, must be enclosed in ________ (C++).

main

Every C++ program must have a function named ________.

indentation

Python code blocks are delimited by ________.

Single quotes, double quotes, triple quotes

Strings can be enclosed using what (Python)?

Variables Methods

The basic components of a Python class include which of the following? Select all that apply.

False

True or false? Before a Python script can run, it must be compiled.

True

True or false? Python is an interpreted language.

interpreter

What executes Bytecode (Java)?

Debugging

What is the process of locating and correcting the errors (bugs) in a program called (Python)?

10

What is the value of variable x after the following code executes (Java)? int x = 3; x = x + 2; x = x + x;

Compiler

What translates a Java program into Bytecode?

compiler

What translates a high-level language into machine code?

Assembler

What translates an assembly-language program?


Kaugnay na mga set ng pag-aaral

Chapter 15 Personal Construct theory

View Set

Final Chapters: Operations (Practice Questions)

View Set

Accounting 210 Exam 1 Study Guide

View Set

Chapter 7- Pectoral girdle, clavicle & Scapulae

View Set