PRF192

PRF192

Assessment

Quiz

Fun

KG

Medium

Created by

Duy Phong chuyên toán

Used 33+ times

FREE Resource

Student preview

quiz-placeholder

55 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[7]="Melodies";

char str[9]= 'Melodies';

char str[]=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 variable names are NOT valid?

go_cart

go4it

4season

run4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the followings can be passed to the functions?

Data type

Loop

Value

Operator

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the followings is TRUE about array

An array is data type, which represents different types of data within a single group.

An array is group of elements, which are of the same size and data type and have the same name.

Array bound specifies the minimum size of data that can be stored.

An array is special variable which contains the address of the memory location of the another variable.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose age is an integer variable. Select correct statements which declare a pointer of type integer and assign an address of the variable age to it.

*int p; p = &age;

int *p; p = &age;

int *p; p = age;

int p*; p = &age;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Function strlen() is for finding the number of characters in a string

True

False

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?