Quiz 1 - Intro to C

Quiz 1 - Intro to C

University

10 Qs

quiz-placeholder

Similar activities

Unit 3 I/O functions

Unit 3 I/O functions

University

5 Qs

เกมส์ เรื่อง โครงสร้างโปรแกรมภาษาซี

เกมส์ เรื่อง โครงสร้างโปรแกรมภาษาซี

KG - University

8 Qs

Cơ sở lập trình_chương 4

Cơ sở lập trình_chương 4

University

15 Qs

BASIC C PROGRAMMING

BASIC C PROGRAMMING

University

15 Qs

java

java

University - Professional Development

8 Qs

Informatika x

Informatika x

University

10 Qs

ENT110 C Programming Quiz2

ENT110 C Programming Quiz2

University

10 Qs

Basic C Knowledge Exercise

Basic C Knowledge Exercise

University

10 Qs

Quiz 1 - Intro to C

Quiz 1 - Intro to C

Assessment

Quiz

Computers, Other

University

Medium

Created by

KU AZIR

Used 24+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Declare an integer variable named num.

float num;

int num;

char num;

double num;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Initialize the variable num to 0.

num == 0;

0

num = 0;

int num = 0;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Read and store the value entered by user to num.

scanf (“%i”, &num);

scanf ("%f", &num);

"%i", #

scanf ("%i", num);

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4.Multiply the current value of num into 2 and assign the new value to num.

num =+ 2;

num = num * num;

num = 2 * 2;

num = num * 2;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5.Display the value of num.

printf (The value of num is: num);

printf ("The value of num is: %i,);

printf ("The value of num is:%i, num);

printf ("The value of num is: %i, &num);

6.

OPEN ENDED QUESTION

3 mins • 1 pt

Declare a floating points number named val.

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

3 mins • 1 pt

Initialize the variable val to 1.

Evaluate responses using AI:

OFF

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?