CSE Quiz 1 Java v C++

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

What do you put at the end of your C++ file name to compile it?

.cpp

Assembly language

a low-level symbolic code converted by an assembler

The word "main" is what?

function (method) identifier

What is the equivalent of javac in C++?

g++

Do you have an array list in C++?

No, have vectors instead.

Does C have a string type?

No, it uses an array of characters

What file is produced when compile a C++ code?

a.out (a.exe on windows)

iostream does what?

allows you to write functions

Are arguments passed to parameters or parameters passed to arguments?

arguments passed to parameters

JVM interprets byte code into what?

binary code for your machine

The word "public" is what?

process modifier

A variable that references a memory location.

reference variable

The word "void" in a method definition is what?

return type

Are the rules for naming variables different or the same in Java and C++?

same

What is the standard name space?

std

Can byte code be run on any system?

yes

Does C++ have a string class?

yes

Does Java compile things at runtime?

yes

Does instance and object mean the same thing?

yes

Does order matter in C++?

yes

In C++ do you have to explicitly tell the program to terminate?

yes

C++ is compiled for what?

hardware

How many meanings does static have in C++ defined by context?

3

Machine language

A set of primitive instructions built into every computer. (instructions are binary code)

Is C++ or Java case-sensitive?

Both

Does Java or C++ compile more?

C++

Is Java or C++ higher performing and quicker?

C++

People build lowest level of code in C++ or Java?

C++

Will C++ or Java not run on different machines?

C++

Does C++ have to have the same file name as class name?

No

Java is compiled for what?

JVM

What interprets code into other devices languages?

JVM

Does Java or C++ have an interpreter or virtual machine?

Java

Is Java or C++ designed to be safer but gives up performance?

Java

What do you compile Java code into?

byte code

What type of code is the class file?

byte code

What is static used for in Java?

class members

What is another name for a static variable?

class scoped variable

C++ is compiled or interpreted?

compiled

A computer program that transforms source code written in a programming language into another computer language.

compiler

What does the word "new" do in Java?

dynamically allocates memory

High-level language

english-like and easy to learn

Discrete value that can map to a data location.

primitive data

A software application that provides comprehensive facilities to computer programmers for software development.

integrated development environment (IDE)

Java is compiled or interpreted?

interpreted

What does a java code need to be run (executed)?

main method

Where does the code start executing in Java?

main method

Does not compiling everything give your more or less flexibility?

more

What does C++ use instead of packages?

name spaces

Is C++ a procedural or oop?

neither (in between)

In Java do you have to explicitly tell the program to terminate?

no

Is static more volatile (changeable) than dynamic?

no

Is Java a procedural or oop?

object-oriented programming

What is it called when you have the same method name, but different parameters?

overloading


संबंधित स्टडी सेट्स

FL Outline P&C General Review Quiz

View Set

Accounting Chapter 11: the Statement of Cash Flows

View Set

Chapter 4 - Learning and Transfer of Training

View Set

Information System Project Mgmt - Chapter 12 Quiz

View Set

FIRT - 1338 Fire Protection Systems

View Set