Variables in C Quiz

Variables in C Quiz

University

20 Qs

quiz-placeholder

Similar activities

Mastering C# Coding Concepts

Mastering C# Coding Concepts

University

15 Qs

oops and inheritance

oops and inheritance

University

15 Qs

MarCom Quiz 2 (Final)

MarCom Quiz 2 (Final)

University

15 Qs

Java Fundamentals for Beginners

Java Fundamentals for Beginners

University

20 Qs

CODE 4 KITSW ROUND - 4

CODE 4 KITSW ROUND - 4

University

15 Qs

Soal dasar-dasar otomotif

Soal dasar-dasar otomotif

University

17 Qs

Signal and System

Signal and System

University

15 Qs

C Programming

C Programming

University

17 Qs

Variables in C Quiz

Variables in C Quiz

Assessment

Quiz

Others

University

Hard

Created by

Nandhini K

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in C?

A function in C

A type of loop in C

A way to represent memory location through symbols

A reserved keyword in C

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a rule for defining variables in C?

Variable names can contain special characters like @, #, $

Variable names must start with a digit

Variable names are case-insensitive

Variable names cannot be the same as C keywords

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for declaring a variable in C?

variable_name data_type;

data_type variable_name;

variable_name = data_type;

data_type = variable_name;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of variable retains its value between multiple function calls in C?

Static variable

Automatic variable

Global variable

Local variable

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the process of reserving memory space for a variable in C?

Variable Initialization

Variable Declaration

Variable Definition

Variable Assignment

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of variable is declared outside the function or block in C?

Global variable

Static variable

Local variable

Automatic variable

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default type of variables declared inside a block in C?

Automatic variable

Static variable

Global variable

Local variable

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?