Java - Introduction to Programming

Java - Introduction to Programming

University

30 Qs

quiz-placeholder

Similar activities

Big data basic

Big data basic

University

26 Qs

Python Module 1

Python Module 1

University

25 Qs

PYTHON CONTEST

PYTHON CONTEST

University

25 Qs

Computer Classification

Computer Classification

University

34 Qs

NETZKNOTEN (Web Designing)

NETZKNOTEN (Web Designing)

University

25 Qs

BSEMC2A LABORATORY INFO MANAGEMENT

BSEMC2A LABORATORY INFO MANAGEMENT

University

25 Qs

TENTENTENTENENEN

TENTENTENTENENEN

University

25 Qs

TEST 2 COMPUTER LITERACY

TEST 2 COMPUTER LITERACY

University

25 Qs

Java - Introduction to Programming

Java - Introduction to Programming

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Mr. Asfar S- Assistant Professor- Computer Science NASC

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is a computer program?

A piece of hardware
A set of instructions for a computer
An image on screen
An email client

Answer explanation

A program tells the computer what to do using code.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is a programming language?

Excel
Photoshop
Java
USB

Answer explanation

Java is a popular programming language used to write software.

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Syntax in programming is similar to:

Maps
Grammar in English
Rules of cricket
Traffic signals

Answer explanation

Syntax refers to rules of writing code, like grammar in language.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these has correct Java syntax?

System.out.print("Hello");
print.System("Hello")
Hello("System.out")
output.println("Hello")

Answer explanation

Java uses System.out.print() for displaying output.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does a compiler do?

Runs code line-by-line
Writes code automatically
Translates entire code at once
Compiles images

Answer explanation

A compiler translates the entire code before running.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does an interpreter do?

Translates code line-by-line
Draws shapes
Converts images
Edits documents

Answer explanation

Interpreter translates and runs each line one at a time.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is a syntax error?

Mistake during user input
Wrong spelling in comments
Breaking language grammar rules
Overuse of print

Answer explanation

Syntax errors happen when you break grammar rules of code.

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?