Search Header Logo

C Programming Basics

Authored by Kallamalla Vedasri

Computers

University

Used 1+ times

C Programming Basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is a correct syntax to output "Hello World" in C?

Console.WriteLine(“Hello World”);

System.out.println(“Hello World”);

cout<<”Hello World”;

printf(“Hello World”);

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you insert COMMENTS in C code?

— This is a comment

# This is a comment

// This is a comment

* This is a comment

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

When a variable is created in C, a memory address is assigned to the variable.

TRUE

FALSE

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In C, code statements must end with a semicolon (;)

TRUE

FALSE

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How can you create a variable with the numeric value 5?

val num = 5;

num = 5;

num = 5 int;

int num = 5;

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How can you create a variable with the floating number 2.8?

float num=2.8;

val num = 2.8;

num=2.8 float;

num=2.8 double;

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which operator is used to add together two values?

The & sign

The ADD keyword

The * sign

The+sign

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 Computers