Search Header Logo

Si Session 2/8/23

Authored by Fernando Hernandez

Other

University

Si Session 2/8/23
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Will output 10

Will output 9

Will output 11

I is out of scope

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will output?

x = 1

x=25

x=26

memory address of x

3.

MULTIPLE SELECT QUESTION

1 min • 1 pt

How can we properly declare multiple pointers?

int *myPtr1, *myPtr2;

You cant, must be one at at time

int* myPtr;

int *myPtr2

int* myPointer,myPointer2

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will be the output?

int y=9;   

int yPtr;   

yPtr = &y; 

      cout<<" y = " << y <<endl;   

cout<<" &y = "<< &y  <<" \n ";   

cout<<"yPtr = "<< yPtr <<" \n ";   

cout<< "yPtr = "<<*yPtr<<" \n ";

9

9

0x7fff9942bde4   

0x7fff9942bde4   

9

0x7fff9942bde4   

9

0x7fff9942bde4   

9

9

9

9

9

0x7fff9942bde4   

0x7fff9942bde4   

9

5.

OPEN ENDED QUESTION

3 mins • 1 pt

Media Image

What is the first function called? What is it doing?

Evaluate responses using AI:

OFF

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

int a= 12;

int b= 8;

swapFunc(a,b);

cout<< a << " " << b<<endl;

What will be the output?

12 8

8 12

8 8

12 12

7.

FILL IN THE BLANK QUESTION

3 mins • 1 pt

What will cause the loop to skip all odd numbers

for(int i=0;i<50;i++){

if(i%2!=0){//}

cout<<i<<endl;

}

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?