CSC 101 Programming 1 Midterm Exam

CSC 101 Programming 1 Midterm Exam

University

51 Qs

quiz-placeholder

Similar activities

2EB Quiz 04 Dec 2024

2EB Quiz 04 Dec 2024

University

50 Qs

Java Unit 1 MCQ Test

Java Unit 1 MCQ Test

University

50 Qs

Programming Test 1

Programming Test 1

University

51 Qs

Latihan Pra UTS Algoritma dan Pemrograman 2 (Python)

Latihan Pra UTS Algoritma dan Pemrograman 2 (Python)

University

50 Qs

Java Language Quiz

Java Language Quiz

University

50 Qs

Quiz JavaScript

Quiz JavaScript

University

51 Qs

D & A Quiz

D & A Quiz

University

50 Qs

JavaScript-ITELECTIVE

JavaScript-ITELECTIVE

University

50 Qs

CSC 101 Programming 1 Midterm Exam

CSC 101 Programming 1 Midterm Exam

Assessment

Quiz

Computers

University

Medium

Created by

Sharita Eleccion

Used 8+ times

FREE Resource

51 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an algorithm?

A set of instructions that a computer follows to solve a problem

A programming language

A type of data structure

A computer hardware component

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

A __________ is a counting loop.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a function in a program?

To perform a specific task or calculation

To define a class

To import external libraries

To create a user interface

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which section of a Java program contains the main method?

Documentation Section

Package Statement

Import Statements

Main Method Class

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A non-static method can access any static method without creating an instance of the class.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? public class MyClass { public static void main(String[] args) { System.out.println("Hello World"); } }

Hello World

MyClass

Hello World!

hello world

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

All Java programs begin execution in this method:


start()

main()

runUntilHalt(int)

main(String[])

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?