Introduction & Basic Program Structure

Introduction & Basic Program Structure

University

10 Qs

quiz-placeholder

Similar activities

MakeCode Arcade Questions

MakeCode Arcade Questions

10th Grade - University

15 Qs

CS10337 - Lecture # 6

CS10337 - Lecture # 6

University

10 Qs

Quiz #2

Quiz #2

University

15 Qs

Latihan Soal Informatika : Berpikir Komputasional - 2

Latihan Soal Informatika : Berpikir Komputasional - 2

7th Grade - University

10 Qs

Decision-Making Process in Data Modelling

Decision-Making Process in Data Modelling

11th Grade - University

10 Qs

QUIZ-1 KELAS XI

QUIZ-1 KELAS XI

University

10 Qs

PT101: Quiz No. 1

PT101: Quiz No. 1

University

10 Qs

Quiz - Fundamentos JS

Quiz - Fundamentos JS

University

10 Qs

Introduction & Basic Program Structure

Introduction & Basic Program Structure

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Willone Lim

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Which of the following is a valid C main() declaration?

main() { ... }

void main() return 0;

int main() { return 0; }

int main;

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Every C program must have a main() function.

True

False

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In C, each statement must end with:

Colon, :

Semicolon, ;

Period, .

Parentheses, ()

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What will the output be?

gcc.exe: fatal error: no input files

Hello World

HelloWorld

gcc.exe: fatal error: no input files

"C:\path\to\your\compiler.exe" failed to launch (exit code: 0)

5.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Media Image

Which format specifier(s) are used for an integer in printf? Select more than one answer (Select all that apply)

%f

%d

%c

%i

%s

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What will the following code output?

A

Hello World

format '%i' expects argument of type 'int', but argument 2 has type 'char'

65

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Which of the following is the correct way to read an integer input into variable num?

scanf("%d", num);

scanf("%i", &num);

scanf("%s", &num);

scanf("%d", &num[]);

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?