
I 4 test 3
Authored by Lawrence Nelson
Computers
12th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
46 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function adds a list of numbers and returns the sum. The function head is:
int sum(int list)
void sum(int list)
void sum(int *a, int b)
int sum(int *a, int b)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function adds a list of numbers and returns the sum. The function head is:
float sum(float list)
void sum(float list)
void sum(int *a, int b)
float sum(float *a, int b)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This loops through a string:
for (int i=0; i<100; i++)
for (char a= 0; a < 100; a++)
for (int i=0; str[i]!='\0'; i++)
for (int i=0; i!='\0'; i++)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider a void function called stuff(). Which of the following is a legal call to stuff()?
stuff();
int x = stuff()
cout << stuff();
stuff() = 8;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider a function called stuff(). Stuff takes an integer and returns a Boolean. Which of the following is a legal call to stuff()?
stuff();
if (stuff(8) == False)
cout << stuff();
stuff(2) = true;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function called stuff() takes an integer and changes its value. A possible function head is:
int stuff()
void stuff(int a)
int & stuff()
void stuff(int &a)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function called stuff() changes the values in a list. A possible function head is:
int stuff()
void stuff(char *a)
int * stuff()
void stuff(int &a, int b)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
44 questions
MICROSOFT OFFICE ICON
Quiz
•
KG - 12th Grade
50 questions
SYSTEM KOMPUTER
Quiz
•
12th Grade
50 questions
TEST EXCEL
Quiz
•
9th - 12th Grade
50 questions
LATIHAN PAT INFORMATIKA KELAS X
Quiz
•
9th - 12th Grade
50 questions
KOMPETENSI KEAHLIAN
Quiz
•
12th Grade
44 questions
Chapter 41 & 42 Fuel Injection
Quiz
•
12th Grade
50 questions
HTML
Quiz
•
8th Grade - University
50 questions
SAINS KOMPUTER TINGKATAN 4 BAB 1
Quiz
•
3rd Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade