Lab 2 Activity

Lab 2 Activity

University

10 Qs

quiz-placeholder

Similar activities

Techii Quizzz

Techii Quizzz

University

10 Qs

MINDZONE-2.3

MINDZONE-2.3

University

10 Qs

Data Types in C++

Data Types in C++

University

10 Qs

VKU JF - Bộ 2

VKU JF - Bộ 2

University

14 Qs

CSCI 1301 - Chapter 5 A

CSCI 1301 - Chapter 5 A

University

8 Qs

Java Lesson 4

Java Lesson 4

5th Grade - University

10 Qs

IEEE Coding Competition

IEEE Coding Competition

University

13 Qs

The Ultimate C++ Quiz

The Ultimate C++ Quiz

5th Grade - Professional Development

7 Qs

Lab 2 Activity

Lab 2 Activity

Assessment

Quiz

Other

University

Medium

Created by

Saif Eldeen Radwan

Used 6+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first line of a C program that includes the standard I/O library?

#include <conio.h>

#include <stdio.h>

#include <stdlib.h>

#include <math.h>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a basic component of a C program?

Preprocessor commands

Functions

Variables

HTML tags

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for declaring an integer variable in C?

int var;

integer var;

var int;

variable int;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store floating-point numbers in C?

int

char

float

void

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following statement?
printf("Hello World!");

HelloWorld!

Hello World!

"Hello World!"

Compilation Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which format specifier is used to read an integer input in C?

%d

%c

%f

%s

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the range of a signed 2-byte integer in C?

0 to 65535

-32768 to 32767

-65535 to 65535

-127 to 128

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?