PRF192

PRF192

University

10 Qs

quiz-placeholder

Similar activities

Soal Individu Sistem Komputer

Soal Individu Sistem Komputer

9th Grade - University

10 Qs

Java Arrays Quiz

Java Arrays Quiz

University

10 Qs

C Programming Quiz

C Programming Quiz

University

15 Qs

BÀI 9: BÀI TRÌNH CHIẾU CỦA EM

BÀI 9: BÀI TRÌNH CHIẾU CỦA EM

4th Grade - University

10 Qs

Session 15 + 16 : Function

Session 15 + 16 : Function

University

13 Qs

Quiz 2 Sistem Operasi Komputer

Quiz 2 Sistem Operasi Komputer

10th Grade - University

10 Qs

Đề cương Tin Lớp 5

Đề cương Tin Lớp 5

5th Grade - University

12 Qs

PRF192

PRF192

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Medium

Created by

Giyuu undefined

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the proper declaration of a string named str which stores the value "Melodies"

char str[]="Melodies";

char str[7]="Melodies";

char str[9]= 'Melodies';

char str[]=Melodies;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What can NOT be included in the variable name in C?

Digits

Underscore (_)

Letters

Dash (-)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data type occupied 1 byte?

float

double

char

int

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What is the correct prototype in C? (choose 3)

doFunc(); char;

int doFunc(int, int);

void doFunc(int x, int y);

char doFunc()

float doFunc(void);

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

int y = 30;

void foo(int *x){

 x= &y;

 *x=12;

}

int main(){

 int v=10;

 foo(&v);

 printf("%d",v);

 printf("\n");

 return 0;

}

10

8

14

address of x

12

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the only function all C programs must contain?

system()

start()

main()

program()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

puts() function can display only one string at a time where as gets() is capable of receiving only one string at a time and can receive a multi-word string.

True

False

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?