I 4 test 3

I 4 test 3

12th Grade

46 Qs

quiz-placeholder

Similar activities

software dev

software dev

9th - 12th Grade

50 Qs

Java Fundamentals

Java Fundamentals

10th - 12th Grade

47 Qs

C++ Chapter 10

C++ Chapter 10

9th - 12th Grade

43 Qs

SAINS KOMPUTER TINGKATAN 4 BAB 1

SAINS KOMPUTER TINGKATAN 4 BAB 1

3rd Grade - University

50 Qs

SEGUNDO PARCIAL. Lenguaje de Programación C++

SEGUNDO PARCIAL. Lenguaje de Programación C++

12th Grade

50 Qs

ADVANCED JAVA WEEK 11 TO 14

ADVANCED JAVA WEEK 11 TO 14

12th Grade

50 Qs

Kelas 12

Kelas 12

12th Grade

45 Qs

Quiz on Programming Basics

Quiz on Programming Basics

3rd Grade - University

43 Qs

I 4 test 3

I 4 test 3

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Lawrence Nelson

Used 3+ times

FREE Resource

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)

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?