Java - Introduction to Programming

Java - Introduction to Programming

University

30 Qs

quiz-placeholder

Similar activities

OOPs Fundamentals

OOPs Fundamentals

University

25 Qs

Quiz 2

Quiz 2

University

25 Qs

OOP_Final Exam

OOP_Final Exam

University

25 Qs

Web Mania - (Round 1)

Web Mania - (Round 1)

University

25 Qs

Java Variables, Class and Objects

Java Variables, Class and Objects

University

25 Qs

computers

computers

University

25 Qs

python collection

python collection

University

29 Qs

JavaScript

JavaScript

University

30 Qs

Java - Introduction to Programming

Java - Introduction to Programming

Assessment

Quiz

Computers

University

Medium

Created by

Mr. Asfar S- Assistant Professor- Computer Science NASC

Used 1+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?