C Programming Tutorial 2 (Chapter 2)

C Programming Tutorial 2 (Chapter 2)

Professional Development

15 Qs

quiz-placeholder

Similar activities

TUTORIAL 2 CHAPTER 2 C PROGRAMMING VERSION 2

TUTORIAL 2 CHAPTER 2 C PROGRAMMING VERSION 2

Professional Development

15 Qs

Technical Quiz Round 1

Technical Quiz Round 1

Professional Development

20 Qs

CPR_Quiz_Arrays and strings

CPR_Quiz_Arrays and strings

Professional Development

20 Qs

C++ Operators

C++ Operators

Professional Development

20 Qs

ESOL Testing and Evaluation Day 2

ESOL Testing and Evaluation Day 2

Professional Development

10 Qs

C Basic

C Basic

Professional Development

10 Qs

Programming in C Lab Exam

Programming in C Lab Exam

Professional Development

10 Qs

Basics of Python Programming Unit-1

Basics of Python Programming Unit-1

University - Professional Development

20 Qs

C Programming Tutorial 2 (Chapter 2)

C Programming Tutorial 2 (Chapter 2)

Assessment

Quiz

Professional Development

Professional Development

Easy

Created by

Anna Sukri

Used 3+ times

FREE Resource

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);

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?