Computer Science Quiz

Quiz
•
Computers
•
University
•
Hard
Assistant Professor Jayakumar Paul Bosco
Used 4+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an array in programming?
C. A data structure that can only store integers
D. A type of loop in programming
B. A fixed-size sequenced collection of elements of the same data type
A. A variable that can store multiple data types
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can arrays be initialized?
D. Arrays cannot be initialized
B. Only at run time
A. Only at compile time
C. Both at compile time and run time
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between character arrays and strings?
B. Character arrays are stored in the String Constant Pool
A. Character arrays are immutable, strings are mutable
D. Character arrays have built-in methods to perform operations
C. Strings can be converted to character arrays using toCharArray() method
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for defining a function with arguments and return value?
D. int function()
C. void function()
B. int function(int x)
A. void function(int x)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the checkPrimeNumber function in the C program?
D. To convert a string to a character array
C. To calculate the Fibonacci series
B. To check if a number is prime
A. To swap two integers
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between Call by Value and Call by Reference?
C. Call by Value allows altering the values of actual variables
B. Call by Reference copies the values of variables
A. Call by Value uses pointer variables
D. Call by Reference is preferred for passing small values
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is recursion in programming?
A. The process of repeating items in a self-similar way
B. The process of swapping variables
C. The process of converting strings to arrays
D. The process of defining multiple functions
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
C Programming Array Concepts

Quiz
•
University
11 questions
WarStory-DataStructure2

Quiz
•
University
20 questions
NVIBES Tech Quiz Round 1

Quiz
•
University
16 questions
Linked List and Arrays in JAVA

Quiz
•
University
13 questions
Revision 2 MCA

Quiz
•
University
10 questions
Website Design

Quiz
•
KG - University
10 questions
Launchpad programming - day 7 morning (JS)

Quiz
•
University
20 questions
Fundamentals of Programming C++

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University