PRF192 - FE2

PRF192 - FE2

University

50 Qs

quiz-placeholder

Similar activities

MES3093: QUIZ

MES3093: QUIZ

University

50 Qs

Computer memory

Computer memory

University

45 Qs

Penilain Harian 2

Penilain Harian 2

9th Grade - University

50 Qs

ALGORITHM AND FLOWCHART

ALGORITHM AND FLOWCHART

12th Grade - University

51 Qs

Simulado_Python_ADS

Simulado_Python_ADS

University

52 Qs

Usability-UXD

Usability-UXD

University

51 Qs

CompTIA ITFundamentals CRAM

CompTIA ITFundamentals CRAM

6th Grade - University

46 Qs

IT alapismeretek

IT alapismeretek

10th Grade - Professional Development

49 Qs

PRF192 - FE2

PRF192 - FE2

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Nguyen Duc Chinh - HE150974

Used 62+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output when the sample code below is executed?

void foo(int *z) {

return(m+2);

}

int main() {

int a-45. *b. m-10;

b-foo(a);

printf("\n%d %b".a;b);

return 0;

}

45 12

45 10

compile error

10 45

12 12

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output when the sample code below is executed?

intx=1000

while (x++ < 1003)

printf("%d ".x);

printf("%d\n".x);

1000 1001 1002 1003

1000 1001 1002

1001 1002 1003 1004

1001 1002 1003

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct statement for input data?

note: scanf( "%d". age); thiếu &

scanf( "%d". age);

Scanf( "%d". age);

scanf( age);

scanf( "%d". age);

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the gets() function do?

This fuction fetches a single character from the standard input file

This fuction fetches a string from the standard input stdin (keyboard) and places it into a string which the programmer must provide

This fuction fetches an argument from the standard input file

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which value can not be assigned to an unsigned-short type?

10000

-3

1

0

59876

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Given x,y,z are of floating-point type, which of the following C expressions is INCORRECT?

x-y.z

all of the others

x=y^z

x=y->z

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Assume that the size of int data type is 4 bytes

What is the output when the sample code below is executed?

int a[5]-{0}.x - 2111223;

while (x>10) {

a[x%10-1]++;

x/-10;

}

printf("%d".a[1]);

2

1

6

3

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?

Discover more resources for Computers