C Programming Tutorial 2 (Chapter 2)

C Programming Tutorial 2 (Chapter 2)

Professional Development

15 Qs

quiz-placeholder

Similar activities

BÀI TẬP_KIỂU DỮ LIỆU VÀ KHAI BÁO BIẾN

BÀI TẬP_KIỂU DỮ LIỆU VÀ KHAI BÁO BIẾN

Professional Development

10 Qs

SOM-SESSION 12 -4TH SEM

SOM-SESSION 12 -4TH SEM

Professional Development

15 Qs

CA Inter C-2 redemption of Preference Shares and Issue of Bo

CA Inter C-2 redemption of Preference Shares and Issue of Bo

Professional Development

15 Qs

TalentNext Test Day-13-Core Java Topics

TalentNext Test Day-13-Core Java Topics

Professional Development

10 Qs

Infallible Vedas (DYS 2)

Infallible Vedas (DYS 2)

Professional Development

18 Qs

QuickBooks Review #2

QuickBooks Review #2

Professional Development

19 Qs

MGNF-14

MGNF-14

Professional Development

20 Qs

Building Laws Quiz 4- BP344

Building Laws Quiz 4- BP344

KG - Professional Development

15 Qs

C Programming Tutorial 2 (Chapter 2)

C Programming Tutorial 2 (Chapter 2)

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Easy

Created by

Anna Sukri

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C language, “scanf” command is used to accept the user input from the keyboard. The format of scanf is:

scanf {"The text to be displayed"};

scanf [“The text to be displayed”];

scanf <"The text to be displayed">;

scanf ("The text to be displayed");

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

____________ represent grammar errors in the use of the programming language.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a data type in C programming?

int

float

char

string

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax to declare an integer variable named "x"?

integer x;

x = int;

int x;

x = integer;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code snippet?

int x = 5;

int y = x++;

printf ("%d %d", x, y);

5 6

6 5

5 5

6 6

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a loop statement in C programming?

if

else

for

switch

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to read input from the user in C programming?

scanf ("%d", x);

read ("%d", x);

scanf ("%d", &x);

input ("%d", &x);

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 Professional Development