C Programming - Syntax and Variables Quiz

C Programming - Syntax and Variables Quiz

University

10 Qs

quiz-placeholder

Similar activities

แบบทดสอบวิทยาการคอมพิวเตอร์ final final finallll

แบบทดสอบวิทยาการคอมพิวเตอร์ final final finallll

University

15 Qs

QUIZ SOBRE LA COCA

QUIZ SOBRE LA COCA

University

10 Qs

B1-3.Ünite C

B1-3.Ünite C

University

11 Qs

C Formatted scanf

C Formatted scanf

University

5 Qs

Programming practices - C programming

Programming practices - C programming

University

9 Qs

CP-2-Unit-I

CP-2-Unit-I

University

12 Qs

C Programming First Quiz - Sec H

C Programming First Quiz - Sec H

University

10 Qs

TECHIE QUIZ

TECHIE QUIZ

12th Grade - University

15 Qs

C Programming - Syntax and Variables Quiz

C Programming - Syntax and Variables Quiz

Assessment

Quiz

Other

University

Easy

Created by

Sushma Sushma

Used 1+ times

FREE Resource

AI

Enhance your content

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 of the following is the correct syntax to declare an integer variable in C?

int x;

integer x;

num x;

var x;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol is used to end a statement in C?

.

,

;

:

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to print output in C?

scanf()

cout

print()

printf()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you take input from the user in C?

input()

scanf()

gets()

cin

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in C?

1var

var_name

var-name

@var

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the keyword to define a float variable in C?

floating

real

float

decimal

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following line do? int a = 10;

Declares a float variable

Declares and initializes an integer

Assigns 10 to a float

None of the above

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?